Package com.orbitz.consul.model.acl
Class ImmutableTokenListResponse
- java.lang.Object
-
- com.orbitz.consul.model.acl.BaseTokenResponse
-
- com.orbitz.consul.model.acl.TokenListResponse
-
- com.orbitz.consul.model.acl.ImmutableTokenListResponse
-
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTokenListResponse extends TokenListResponseImmutable implementation ofTokenListResponse.Use the builder to create immutable instances:
ImmutableTokenListResponse.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutableTokenListResponse.BuilderBuilds instances of typeImmutableTokenListResponse.
-
Method Summary
Modifier and Type Method Description java.lang.StringaccessorId()static ImmutableTokenListResponse.Builderbuilder()Creates a builder forImmutableTokenListResponse.static ImmutableTokenListResponsecopyOf(TokenListResponse instance)Creates an immutable copy of aTokenListResponsevalue.java.math.BigIntegercreateIndex()java.util.DatecreateTime()java.lang.Stringdescription()booleanequals(java.lang.Object another)This instance is equal to all instances ofImmutableTokenListResponsethat have equal attribute values.java.lang.Stringhash()inthashCode()Computes a hash code from attributes:accessorId,description,policies,createIndex,modifyIndex,local,createTime,hash.booleanlocal()java.math.BigIntegermodifyIndex()com.google.common.collect.ImmutableList<Token.PolicyLink>policies()java.lang.StringtoString()Prints the immutable valueTokenListResponsewith attribute values.ImmutableTokenListResponsewithAccessorId(java.lang.String value)Copy the current immutable object by setting a value for theaccessorIdattribute.ImmutableTokenListResponsewithCreateIndex(java.math.BigInteger value)Copy the current immutable object by setting a value for thecreateIndexattribute.ImmutableTokenListResponsewithCreateTime(java.util.Date value)Copy the current immutable object by setting a value for thecreateTimeattribute.ImmutableTokenListResponsewithDescription(java.lang.String value)Copy the current immutable object by setting a value for thedescriptionattribute.ImmutableTokenListResponsewithHash(java.lang.String value)Copy the current immutable object by setting a value for thehashattribute.ImmutableTokenListResponsewithLocal(boolean value)Copy the current immutable object by setting a value for thelocalattribute.ImmutableTokenListResponsewithModifyIndex(java.math.BigInteger value)Copy the current immutable object by setting a value for themodifyIndexattribute.ImmutableTokenListResponsewithPolicies(Token.PolicyLink... elements)Copy the current immutable object with elements that replace the content ofpolicies.ImmutableTokenListResponsewithPolicies(java.lang.Iterable<? extends Token.PolicyLink> elements)Copy the current immutable object with elements that replace the content ofpolicies.
-
-
-
Method Detail
-
accessorId
public java.lang.String accessorId()
- Specified by:
accessorIdin classBaseTokenResponse- Returns:
- The value of the
accessorIdattribute
-
description
public java.lang.String description()
- Specified by:
descriptionin classBaseTokenResponse- Returns:
- The value of the
descriptionattribute
-
policies
public com.google.common.collect.ImmutableList<Token.PolicyLink> policies()
- Specified by:
policiesin classBaseTokenResponse- Returns:
- The value of the
policiesattribute
-
createIndex
public java.math.BigInteger createIndex()
- Specified by:
createIndexin classBaseTokenResponse- Returns:
- The value of the
createIndexattribute
-
modifyIndex
public java.math.BigInteger modifyIndex()
- Specified by:
modifyIndexin classBaseTokenResponse- Returns:
- The value of the
modifyIndexattribute
-
local
public boolean local()
- Specified by:
localin classBaseTokenResponse- Returns:
- The value of the
localattribute
-
createTime
public java.util.Date createTime()
- Specified by:
createTimein classBaseTokenResponse- Returns:
- The value of the
createTimeattribute
-
hash
public java.lang.String hash()
- Specified by:
hashin classBaseTokenResponse- Returns:
- The value of the
hashattribute
-
withAccessorId
public final ImmutableTokenListResponse withAccessorId(java.lang.String value)
Copy the current immutable object by setting a value for theaccessorIdattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for accessorId- Returns:
- A modified copy of the
thisobject
-
withDescription
public final ImmutableTokenListResponse withDescription(java.lang.String value)
Copy the current immutable object by setting a value for thedescriptionattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for description- Returns:
- A modified copy of the
thisobject
-
withPolicies
public final ImmutableTokenListResponse withPolicies(Token.PolicyLink... elements)
Copy the current immutable object with elements that replace the content ofpolicies.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withPolicies
public final ImmutableTokenListResponse withPolicies(java.lang.Iterable<? extends Token.PolicyLink> elements)
Copy the current immutable object with elements that replace the content ofpolicies. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of policies elements to set- Returns:
- A modified copy of
thisobject
-
withCreateIndex
public final ImmutableTokenListResponse 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 ImmutableTokenListResponse 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
-
withLocal
public final ImmutableTokenListResponse withLocal(boolean value)
Copy the current immutable object by setting a value for thelocalattribute. A value equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for local- Returns:
- A modified copy of the
thisobject
-
withCreateTime
public final ImmutableTokenListResponse withCreateTime(java.util.Date value)
Copy the current immutable object by setting a value for thecreateTimeattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createTime- Returns:
- A modified copy of the
thisobject
-
withHash
public final ImmutableTokenListResponse withHash(java.lang.String value)
Copy the current immutable object by setting a value for thehashattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for hash- Returns:
- A modified copy of the
thisobject
-
equals
public boolean equals(@Nullable java.lang.Object another)This instance is equal to all instances ofImmutableTokenListResponsethat have equal attribute values.- Overrides:
equalsin classjava.lang.Object- Returns:
trueifthisis equal toanotherinstance
-
hashCode
public int hashCode()
Computes a hash code from attributes:accessorId,description,policies,createIndex,modifyIndex,local,createTime,hash.- Overrides:
hashCodein classjava.lang.Object- Returns:
- hashCode value
-
toString
public java.lang.String toString()
Prints the immutable valueTokenListResponsewith attribute values.- Overrides:
toStringin classjava.lang.Object- Returns:
- A string representation of the value
-
copyOf
public static ImmutableTokenListResponse copyOf(TokenListResponse instance)
Creates an immutable copy of aTokenListResponsevalue. 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 TokenListResponse instance
-
builder
public static ImmutableTokenListResponse.Builder builder()
Creates a builder forImmutableTokenListResponse.ImmutableTokenListResponse.builder() .accessorId(String) // requiredaccessorId.description(String) // requireddescription.addPolicies|addAllPolicies(com.orbitz.consul.model.acl.Token.PolicyLink) //policieselements .createIndex(java.math.BigInteger) // requiredcreateIndex.modifyIndex(java.math.BigInteger) // requiredmodifyIndex.local(boolean) // requiredlocal.createTime(Date) // requiredcreateTime.hash(String) // requiredhash.build();- Returns:
- A new ImmutableTokenListResponse builder
-
-