@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableTokenResponse extends TokenResponse
TokenResponse.
Use the builder to create immutable instances:
ImmutableTokenResponse.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTokenResponse.Builder
Builds instances of type
ImmutableTokenResponse. |
| Modifier and Type | Method and Description |
|---|---|
String |
accessorId() |
static ImmutableTokenResponse.Builder |
builder()
Creates a builder for
ImmutableTokenResponse. |
static ImmutableTokenResponse |
copyOf(TokenResponse instance)
Creates an immutable copy of a
TokenResponse value. |
BigInteger |
createIndex() |
Date |
createTime() |
String |
description() |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTokenResponse that have equal attribute values. |
String |
hash() |
int |
hashCode()
Computes a hash code from attributes:
accessorId, description, policies, createIndex, modifyIndex, local, createTime, hash, secretId. |
boolean |
local() |
BigInteger |
modifyIndex() |
com.google.common.collect.ImmutableList<Token.PolicyLink> |
policies() |
String |
secretId() |
String |
toString()
Prints the immutable value
TokenResponse with attribute values. |
ImmutableTokenResponse |
withAccessorId(String value)
Copy the current immutable object by setting a value for the
accessorId attribute. |
ImmutableTokenResponse |
withCreateIndex(BigInteger value)
Copy the current immutable object by setting a value for the
createIndex attribute. |
ImmutableTokenResponse |
withCreateTime(Date value)
Copy the current immutable object by setting a value for the
createTime attribute. |
ImmutableTokenResponse |
withDescription(String value)
Copy the current immutable object by setting a value for the
description attribute. |
ImmutableTokenResponse |
withHash(String value)
Copy the current immutable object by setting a value for the
hash attribute. |
ImmutableTokenResponse |
withLocal(boolean value)
Copy the current immutable object by setting a value for the
local attribute. |
ImmutableTokenResponse |
withModifyIndex(BigInteger value)
Copy the current immutable object by setting a value for the
modifyIndex attribute. |
ImmutableTokenResponse |
withPolicies(Iterable<? extends Token.PolicyLink> elements)
Copy the current immutable object with elements that replace the content of
policies. |
ImmutableTokenResponse |
withPolicies(Token.PolicyLink... elements)
Copy the current immutable object with elements that replace the content of
policies. |
ImmutableTokenResponse |
withSecretId(String value)
Copy the current immutable object by setting a value for the
secretId attribute. |
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 String secretId()
secretId in class TokenResponsesecretId attributepublic final ImmutableTokenResponse 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 ImmutableTokenResponse 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 ImmutableTokenResponse withPolicies(Token.PolicyLink... elements)
policies.elements - The elements to setthis objectpublic final ImmutableTokenResponse 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 ImmutableTokenResponse 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 ImmutableTokenResponse 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 ImmutableTokenResponse 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 ImmutableTokenResponse 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 ImmutableTokenResponse 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 final ImmutableTokenResponse withSecretId(String value)
secretId attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for secretIdthis objectpublic boolean equals(@Nullable Object another)
ImmutableTokenResponse that have equal attribute values.public int hashCode()
accessorId, description, policies, createIndex, modifyIndex, local, createTime, hash, secretId.public String toString()
TokenResponse with attribute values.public static ImmutableTokenResponse copyOf(TokenResponse instance)
TokenResponse 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 ImmutableTokenResponse.Builder builder()
ImmutableTokenResponse.
ImmutableTokenResponse.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
.secretId(String) // required secretId
.build();
Copyright © 2019. All rights reserved.