@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","AclResponse"}) @Immutable public final class ImmutableAclResponse extends AclResponse
AclResponse.
Use the builder to create immutable instances:
ImmutableAclResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableAclResponse.Builder
Builds instances of type
ImmutableAclResponse. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableAclResponse.Builder |
builder()
Creates a builder for
ImmutableAclResponse. |
static ImmutableAclResponse |
copyOf(AclResponse instance)
Creates an immutable copy of a
AclResponse value. |
BigInteger |
createIndex() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableAclResponse that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
createIndex, modifyIndex, id, name, type, rules. |
Optional<String> |
id() |
BigInteger |
modifyIndex() |
Optional<String> |
name() |
Optional<String> |
rules() |
String |
toString()
Prints the immutable value
AclResponse with attribute values. |
Optional<String> |
type() |
ImmutableAclResponse |
withCreateIndex(BigInteger value)
Copy the current immutable object by setting a value for the
createIndex attribute. |
ImmutableAclResponse |
withId(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
id attribute. |
ImmutableAclResponse |
withId(String value)
Copy the current immutable object by setting a present value for the optional
id attribute. |
ImmutableAclResponse |
withModifyIndex(BigInteger value)
Copy the current immutable object by setting a value for the
modifyIndex attribute. |
ImmutableAclResponse |
withName(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
name attribute. |
ImmutableAclResponse |
withName(String value)
Copy the current immutable object by setting a present value for the optional
name attribute. |
ImmutableAclResponse |
withRules(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
rules attribute. |
ImmutableAclResponse |
withRules(String value)
Copy the current immutable object by setting a present value for the optional
rules attribute. |
ImmutableAclResponse |
withType(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
type attribute. |
ImmutableAclResponse |
withType(String value)
Copy the current immutable object by setting a present value for the optional
type attribute. |
public BigInteger createIndex()
createIndex in class AclResponsecreateIndex attributepublic BigInteger modifyIndex()
modifyIndex in class AclResponsemodifyIndex attributepublic Optional<String> id()
id in class AclResponseid attributepublic Optional<String> name()
name in class AclResponsename attributepublic Optional<String> type()
type in class AclResponsetype attributepublic Optional<String> rules()
rules in class AclResponserules attributepublic final ImmutableAclResponse withCreateIndex(BigInteger value)
createIndex attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for createIndexthis objectpublic final ImmutableAclResponse withModifyIndex(BigInteger value)
modifyIndex attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for modifyIndexthis objectpublic final ImmutableAclResponse withId(String value)
id attribute.value - The value for idthis objectpublic final ImmutableAclResponse 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 ImmutableAclResponse withName(String value)
name attribute.value - The value for namethis objectpublic final ImmutableAclResponse 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 ImmutableAclResponse withType(String value)
type attribute.value - The value for typethis objectpublic final ImmutableAclResponse 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 ImmutableAclResponse withRules(String value)
rules attribute.value - The value for rulesthis objectpublic final ImmutableAclResponse 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)
ImmutableAclResponse that have equal attribute values.public int hashCode()
createIndex, modifyIndex, id, name, type, rules.public String toString()
AclResponse with attribute values.public static ImmutableAclResponse copyOf(AclResponse instance)
AclResponse 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 ImmutableAclResponse.Builder builder()
ImmutableAclResponse.Copyright © 2018. All rights reserved.