@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTokenListResponse extends TokenListResponse
TokenListResponse.
Use the builder to create immutable instances:
ImmutableTokenListResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTokenListResponse.Builder
Builds instances of type
ImmutableTokenListResponse. |
| Modifier and Type | Method and Description |
|---|---|
String |
accessorId() |
static ImmutableTokenListResponse.Builder |
builder()
Creates a builder for
ImmutableTokenListResponse. |
static ImmutableTokenListResponse |
copyOf(TokenListResponse instance)
Creates an immutable copy of a
TokenListResponse value. |
BigInteger |
createIndex() |
Date |
createTime() |
String |
description() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTokenListResponse that have equal attribute values. |
String |
hash() |
int |
hashCode()
Computes a hash code from attributes:
accessorId, description, policies, createIndex, modifyIndex, local, createTime, hash. |
boolean |
local() |
BigInteger |
modifyIndex() |
com.google.common.collect.ImmutableList<Token.PolicyLink> |
policies() |
String |
toString()
Prints the immutable value
TokenListResponse with attribute values. |
ImmutableTokenListResponse |
withAccessorId(String value)
Copy the current immutable object by setting a value for the
accessorId attribute. |
ImmutableTokenListResponse |
withCreateIndex(BigInteger value)
Copy the current immutable object by setting a value for the
createIndex attribute. |
ImmutableTokenListResponse |
withCreateTime(Date value)
Copy the current immutable object by setting a value for the
createTime attribute. |
ImmutableTokenListResponse |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableTokenListResponse |
withHash(String value)
Copy the current immutable object by setting a value for the
hash attribute. |
ImmutableTokenListResponse |
withLocal(boolean value)
Copy the current immutable object by setting a value for the
local attribute. |
ImmutableTokenListResponse |
withModifyIndex(BigInteger value)
Copy the current immutable object by setting a value for the
modifyIndex attribute. |
ImmutableTokenListResponse |
withPolicies(Iterable<? extends Token.PolicyLink> elements)
Copy the current immutable object with elements that replace the content of
policies. |
ImmutableTokenListResponse |
withPolicies(Token.PolicyLink... elements)
Copy the current immutable object with elements that replace the content of
policies. |
public String accessorId()
accessorId in class BaseTokenResponseaccessorId attributepublic String description()
description in class BaseTokenResponsedescription attributepublic com.google.common.collect.ImmutableList<Token.PolicyLink> policies()
policies in class BaseTokenResponsepolicies attributepublic BigInteger createIndex()
createIndex in class BaseTokenResponsecreateIndex attributepublic BigInteger modifyIndex()
modifyIndex in class BaseTokenResponsemodifyIndex attributepublic boolean local()
local in class BaseTokenResponselocal attributepublic Date createTime()
createTime in class BaseTokenResponsecreateTime attributepublic String hash()
hash in class BaseTokenResponsehash attributepublic final ImmutableTokenListResponse withAccessorId(String value)
accessorId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for accessorIdthis objectpublic final ImmutableTokenListResponse withDescription(String value)
description attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for descriptionthis objectpublic final ImmutableTokenListResponse withPolicies(Token.PolicyLink... elements)
policies.elements - The elements to setthis objectpublic final ImmutableTokenListResponse withPolicies(Iterable<? extends Token.PolicyLink> elements)
policies.
A shallow reference equality check is used to prevent copying of the same value by returning this.elements - An iterable of policies elements to setthis objectpublic final ImmutableTokenListResponse withCreateIndex(BigInteger value)
createIndex attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for createIndexthis objectpublic final ImmutableTokenListResponse withModifyIndex(BigInteger value)
modifyIndex attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for modifyIndexthis objectpublic final ImmutableTokenListResponse withLocal(boolean value)
local attribute.
A value equality check is used to prevent copying of the same value by returning this.value - A new value for localthis objectpublic final ImmutableTokenListResponse withCreateTime(Date value)
createTime attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for createTimethis objectpublic final ImmutableTokenListResponse withHash(String value)
hash attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for hashthis objectpublic boolean equals(@Nullable Object another)
ImmutableTokenListResponse that have equal attribute values.public int hashCode()
accessorId, description, policies, createIndex, modifyIndex, local, createTime, hash.public String toString()
TokenListResponse with attribute values.public static ImmutableTokenListResponse copyOf(TokenListResponse instance)
TokenListResponse value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableTokenListResponse.Builder builder()
ImmutableTokenListResponse.
ImmutableTokenListResponse.builder()
.accessorId(String) // required accessorId
.description(String) // required description
.addPolicies|addAllPolicies(com.orbitz.consul.model.acl.Token.PolicyLink) // policies elements
.createIndex(java.math.BigInteger) // required createIndex
.modifyIndex(java.math.BigInteger) // required modifyIndex
.local(boolean) // required local
.createTime(Date) // required createTime
.hash(String) // required hash
.build();
Copyright © 2019. All rights reserved.