@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAclToken extends AclToken
AclToken.
Use the builder to create immutable instances:
ImmutableAclToken.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAclToken.Builder
Builds instances of type
ImmutableAclToken. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAclToken.Builder |
builder()
Creates a builder for
ImmutableAclToken. |
static ImmutableAclToken |
copyOf(AclToken instance)
Creates an immutable copy of a
AclToken value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAclToken that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
id, name, type, rules. |
Optional<String> |
id() |
Optional<String> |
name() |
Optional<String> |
rules() |
String |
toString()
Prints the immutable value
AclToken with attribute values. |
Optional<String> |
type() |
ImmutableAclToken |
withId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
id attribute. |
ImmutableAclToken |
withId(String value)
Copy the current immutable object by setting a present value for the optional
id attribute. |
ImmutableAclToken |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableAclToken |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableAclToken |
withRules(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
rules attribute. |
ImmutableAclToken |
withRules(String value)
Copy the current immutable object by setting a present value for the optional
rules attribute. |
ImmutableAclToken |
withType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
type attribute. |
ImmutableAclToken |
withType(String value)
Copy the current immutable object by setting a present value for the optional
type attribute. |
public final ImmutableAclToken withId(String value)
id attribute.value - The value for idthis objectpublic final ImmutableAclToken withId(Optional<String> optional)
id attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for idthis objectpublic final ImmutableAclToken withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableAclToken withName(Optional<String> optional)
name attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for namethis objectpublic final ImmutableAclToken withType(String value)
type attribute.value - The value for typethis objectpublic final ImmutableAclToken withType(Optional<String> optional)
type attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for typethis objectpublic final ImmutableAclToken withRules(String value)
rules attribute.value - The value for rulesthis objectpublic final ImmutableAclToken withRules(Optional<String> optional)
rules attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for rulesthis objectpublic boolean equals(@Nullable Object another)
ImmutableAclToken that have equal attribute values.public int hashCode()
id, name, type, rules.public String toString()
AclToken with attribute values.public static ImmutableAclToken copyOf(AclToken instance)
AclToken value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableAclToken.Builder builder()
ImmutableAclToken.
ImmutableAclToken.builder()
.id(String) // optional id
.name(String) // optional name
.type(String) // optional type
.rules(String) // optional rules
.build();
Copyright © 2019. All rights reserved.