Package org.kiwiproject.consul.model.acl
Class ImmutableAclResponse
java.lang.Object
org.kiwiproject.consul.model.acl.AclResponse
org.kiwiproject.consul.model.acl.ImmutableAclResponse
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableAclResponse
extends AclResponse
Immutable implementation of
AclResponse.
Use the builder to create immutable instances:
ImmutableAclResponse.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAclResponse. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAclResponse.Builderbuilder()Creates a builder forImmutableAclResponse.static ImmutableAclResponsecopyOf(AclResponse instance) Creates an immutable copy of aAclResponsevalue.booleanThis instance is equal to all instances ofImmutableAclResponsethat have equal attribute values.inthashCode()Computes a hash code from attributes:createIndex,modifyIndex,id,name,type,rules.id()name()rules()toString()Prints the immutable valueAclResponsewith attribute values.type()final ImmutableAclResponsewithCreateIndex(BigInteger value) Copy the current immutable object by setting a value for thecreateIndexattribute.final ImmutableAclResponseCopy the current immutable object by setting a present value for the optionalidattribute.final ImmutableAclResponseCopy the current immutable object by setting an optional value for theidattribute.final ImmutableAclResponsewithModifyIndex(BigInteger value) Copy the current immutable object by setting a value for themodifyIndexattribute.final ImmutableAclResponseCopy the current immutable object by setting a present value for the optionalnameattribute.final ImmutableAclResponseCopy the current immutable object by setting an optional value for thenameattribute.final ImmutableAclResponseCopy the current immutable object by setting a present value for the optionalrulesattribute.final ImmutableAclResponseCopy the current immutable object by setting an optional value for therulesattribute.final ImmutableAclResponseCopy the current immutable object by setting a present value for the optionaltypeattribute.final ImmutableAclResponseCopy the current immutable object by setting an optional value for thetypeattribute.
-
Method Details
-
createIndex
- Specified by:
createIndexin classAclResponse- Returns:
- The value of the
createIndexattribute
-
modifyIndex
- Specified by:
modifyIndexin classAclResponse- Returns:
- The value of the
modifyIndexattribute
-
id
- Specified by:
idin classAclResponse- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein classAclResponse- Returns:
- The value of the
nameattribute
-
type
- Specified by:
typein classAclResponse- Returns:
- The value of the
typeattribute
-
rules
- Specified by:
rulesin classAclResponse- Returns:
- The value of the
rulesattribute
-
withCreateIndex
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
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
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
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
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
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
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
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
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
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
This instance is equal to all instances ofImmutableAclResponsethat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:createIndex,modifyIndex,id,name,type,rules. -
toString
Prints the immutable valueAclResponsewith attribute values. -
copyOf
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
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
-