Package org.kiwiproject.consul.model.acl
Class ImmutableRolePolicyLink
java.lang.Object
org.kiwiproject.consul.model.acl.Role.RolePolicyLink
org.kiwiproject.consul.model.acl.ImmutableRolePolicyLink
@Generated("org.immutables.processor.ProxyProcessor")
public final class ImmutableRolePolicyLink
extends Role.RolePolicyLink
Immutable implementation of
Role.RolePolicyLink.
Use the builder to create immutable instances:
ImmutableRolePolicyLink.builder().
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds instances of typeImmutableRolePolicyLink. -
Method Summary
Modifier and TypeMethodDescriptionbuilder()Creates a builder forImmutableRolePolicyLink.static ImmutableRolePolicyLinkcopyOf(Role.RolePolicyLink instance) Creates an immutable copy of aRole.RolePolicyLinkvalue.booleanThis instance is equal to all instances ofImmutableRolePolicyLinkthat have equal attribute values.inthashCode()Computes a hash code from attributes:id,name.id()name()toString()Prints the immutable valueRolePolicyLinkwith attribute values.final ImmutableRolePolicyLinkCopy the current immutable object by setting a present value for the optionalidattribute.final ImmutableRolePolicyLinkCopy the current immutable object by setting an optional value for theidattribute.final ImmutableRolePolicyLinkCopy the current immutable object by setting a present value for the optionalnameattribute.final ImmutableRolePolicyLinkCopy the current immutable object by setting an optional value for thenameattribute.
-
Method Details
-
id
- Specified by:
idin classRole.RolePolicyLink- Returns:
- The value of the
idattribute
-
name
- Specified by:
namein classRole.RolePolicyLink- Returns:
- The value of the
nameattribute
-
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
-
equals
This instance is equal to all instances ofImmutableRolePolicyLinkthat have equal attribute values. -
hashCode
public int hashCode()Computes a hash code from attributes:id,name. -
toString
Prints the immutable valueRolePolicyLinkwith attribute values. -
copyOf
Creates an immutable copy of aRole.RolePolicyLinkvalue. 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 RolePolicyLink instance
-
builder
Creates a builder forImmutableRolePolicyLink.ImmutableRolePolicyLink.builder() .id(String) // optionalid.name(String) // optionalname.build();- Returns:
- A new ImmutableRolePolicyLink builder
-