Package org.kiwiproject.consul.model.acl
Class ImmutableAclTokenId
java.lang.Object
org.kiwiproject.consul.model.acl.AclTokenId
org.kiwiproject.consul.model.acl.ImmutableAclTokenId
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableAclTokenId
extends AclTokenId
Immutable implementation of
AclTokenId.
Use the builder to create immutable instances:
ImmutableAclTokenId.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableAclTokenId. -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableAclTokenId.Builderbuilder()Creates a builder forImmutableAclTokenId.static ImmutableAclTokenIdcopyOf(AclTokenId instance) Creates an immutable copy of aAclTokenIdvalue.booleanThis instance is equal to all instances ofImmutableAclTokenIdthat have equal attribute values.inthashCode()Computes a hash code from attributes:id.id()toString()Prints the immutable valueAclTokenIdwith attribute values.final ImmutableAclTokenIdCopy the current immutable object by setting a value for theidattribute.
-
Method Details
-
id
- Specified by:
idin classAclTokenId- Returns:
- The value of the
idattribute
-
withId
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id- Returns:
- A modified copy of the
thisobject
-
equals
This instance is equal to all instances ofImmutableAclTokenIdthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id. -
toString
Prints the immutable valueAclTokenIdwith attribute values. -
copyOf
Creates an immutable copy of aAclTokenIdvalue. 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 AclTokenId instance
-
builder
Creates a builder forImmutableAclTokenId.ImmutableAclTokenId.builder() .id(String) // requiredid.build();- Returns:
- A new ImmutableAclTokenId builder
-