Package com.orbitz.consul.model.acl
Class ImmutableAclResponse
- java.lang.Object
-
- com.orbitz.consul.model.acl.AclResponse
-
- com.orbitz.consul.model.acl.ImmutableAclResponse
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableAclResponse extends AclResponseImmutable implementation ofAclResponse.Use the builder to create immutable instances:
ImmutableAclResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableAclResponse.BuilderBuilds instances of typeImmutableAclResponse.
-
Method Summary
Modifier and Type Method Description static ImmutableAclResponse.Builderbuilder()Creates a builder forImmutableAclResponse.static ImmutableAclResponsecopyOf(AclResponse instance)Creates an immutable copy of aAclResponsevalue.java.math.BigIntegercreateIndex()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableAclResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:createIndex,modifyIndex,id,name,type,rules.java.util.Optional<java.lang.String>id()java.math.BigIntegermodifyIndex()java.util.Optional<java.lang.String>name()java.util.Optional<java.lang.String>rules()java.lang.StringtoString()Prints the immutable valueAclResponsewith attribute values.java.util.Optional<java.lang.String>type()ImmutableAclResponsewithCreateIndex(java.math.BigInteger value)Copy the current immutable object by setting a value for thecreateIndexattribute.ImmutableAclResponsewithId(java.lang.String value)Copy the current immutable object by setting a present value for the optionalidattribute.ImmutableAclResponsewithId(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for theidattribute.ImmutableAclResponsewithModifyIndex(java.math.BigInteger value)Copy the current immutable object by setting a value for themodifyIndexattribute.ImmutableAclResponsewithName(java.lang.String value)Copy the current immutable object by setting a present value for the optionalnameattribute.ImmutableAclResponsewithName(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thenameattribute.ImmutableAclResponsewithRules(java.lang.String value)Copy the current immutable object by setting a present value for the optionalrulesattribute.ImmutableAclResponsewithRules(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for therulesattribute.ImmutableAclResponsewithType(java.lang.String value)Copy the current immutable object by setting a present value for the optionaltypeattribute.ImmutableAclResponsewithType(java.util.Optional<java.lang.String> optional)Copy the current immutable object by setting an optional value for thetypeattribute.
-
-
-
Method Detail
-
createIndex
public java.math.BigInteger createIndex()
- Specified by:
createIndexin classAclResponse- Returns:
- The value of the
createIndexattribute
-
modifyIndex
public java.math.BigInteger modifyIndex()
- Specified by:
modifyIndexin classAclResponse- Returns:
- The value of the
modifyIndexattribute
-
id
public java.util.Optional<java.lang.String> id()
- Specified by:
idin classAclResponse- Returns:
- The value of the
idattribute
-
name
public java.util.Optional<java.lang.String> name()
- Specified by:
namein classAclResponse- Returns:
- The value of the
nameattribute
-
type
public java.util.Optional<java.lang.String> type()
- Specified by:
typein classAclResponse- Returns:
- The value of the
typeattribute
-
rules
public java.util.Optional<java.lang.String> rules()
- Specified by:
rulesin classAclResponse- Returns:
- The value of the
rulesattribute
-
withCreateIndex
public final ImmutableAclResponse withCreateIndex(java.math.BigInteger value)
Copy the current immutable object by setting a value for thecreateIndexattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createIndex- Returns:
- A modified copy of the
thisobject
-
withModifyIndex
public final ImmutableAclResponse withModifyIndex(java.math.BigInteger value)
Copy the current immutable object by setting a value for themodifyIndexattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for modifyIndex- Returns:
- A modified copy of the
thisobject
-
withId
public final ImmutableAclResponse withId(java.lang.String value)
Copy the current immutable object by setting a present value for the optionalidattribute.- Parameters:
value- The value for id- Returns:
- A modified copy of
thisobject
-
withId
public final ImmutableAclResponse withId(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for theidattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for id- Returns:
- A modified copy of
thisobject
-
withName
public final ImmutableAclResponse withName(java.lang.String value)
Copy the current immutable object by setting a present value for the optionalnameattribute.- Parameters:
value- The value for name- Returns:
- A modified copy of
thisobject
-
withName
public final ImmutableAclResponse withName(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for thenameattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for name- Returns:
- A modified copy of
thisobject
-
withType
public final ImmutableAclResponse withType(java.lang.String value)
Copy the current immutable object by setting a present value for the optionaltypeattribute.- Parameters:
value- The value for type- Returns:
- A modified copy of
thisobject
-
withType
public final ImmutableAclResponse withType(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for thetypeattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for type- Returns:
- A modified copy of
thisobject
-
withRules
public final ImmutableAclResponse withRules(java.lang.String value)
Copy the current immutable object by setting a present value for the optionalrulesattribute.- Parameters:
value- The value for rules- Returns:
- A modified copy of
thisobject
-
withRules
public final ImmutableAclResponse withRules(java.util.Optional<java.lang.String> optional)
Copy the current immutable object by setting an optional value for therulesattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for rules- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableAclResponsethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:createIndex,modifyIndex,id,name,type,rules.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueAclResponsewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableAclResponse copyOf(AclResponse instance)
Creates an immutable copy of aAclResponsevalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable AclResponse instance
-
builder
public static ImmutableAclResponse.Builder builder()
Creates a builder forImmutableAclResponse.ImmutableAclResponse.builder() .createIndex(java.math.BigInteger) // requiredcreateIndex.modifyIndex(java.math.BigInteger) // requiredmodifyIndex.id(String) // optionalid.name(String) // optionalname.type(String) // optionaltype.rules(String) // optionalrules.build();- Returns:
- A new ImmutableAclResponse builder
-
-