@NotThreadSafe public static final class ImmutableTokenListResponse.Builder extends Object
ImmutableTokenListResponse.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
ImmutableTokenListResponse.Builder |
accessorId(String accessorId)
Initializes the value for the
accessorId attribute. |
ImmutableTokenListResponse.Builder |
addAllPolicies(Iterable<? extends Token.PolicyLink> elements)
Adds elements to
policies list. |
ImmutableTokenListResponse.Builder |
addPolicies(Token.PolicyLink... elements)
Adds elements to
policies list. |
ImmutableTokenListResponse.Builder |
addPolicies(Token.PolicyLink element)
Adds one element to
policies list. |
ImmutableTokenListResponse |
build()
Builds a new
ImmutableTokenListResponse. |
ImmutableTokenListResponse.Builder |
createIndex(BigInteger createIndex)
Initializes the value for the
createIndex attribute. |
ImmutableTokenListResponse.Builder |
createTime(Date createTime)
Initializes the value for the
createTime attribute. |
ImmutableTokenListResponse.Builder |
description(String description)
Initializes the value for the
description attribute. |
ImmutableTokenListResponse.Builder |
from(BaseTokenResponse instance)
Fill a builder with attribute values from the provided
com.orbitz.consul.model.acl.BaseTokenResponse instance. |
ImmutableTokenListResponse.Builder |
from(TokenListResponse instance)
Fill a builder with attribute values from the provided
com.orbitz.consul.model.acl.TokenListResponse instance. |
ImmutableTokenListResponse.Builder |
hash(String hash)
Initializes the value for the
hash attribute. |
ImmutableTokenListResponse.Builder |
local(boolean local)
Initializes the value for the
local attribute. |
ImmutableTokenListResponse.Builder |
modifyIndex(BigInteger modifyIndex)
Initializes the value for the
modifyIndex attribute. |
ImmutableTokenListResponse.Builder |
policies(Iterable<? extends Token.PolicyLink> elements)
Sets or replaces all elements for
policies list. |
@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder from(BaseTokenResponse instance)
com.orbitz.consul.model.acl.BaseTokenResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder from(TokenListResponse instance)
com.orbitz.consul.model.acl.TokenListResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder accessorId(String accessorId)
accessorId attribute.accessorId - The value for accessorIdthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder description(String description)
description attribute.description - The value for descriptionthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder addPolicies(Token.PolicyLink element)
policies list.element - A policies elementthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder addPolicies(Token.PolicyLink... elements)
policies list.elements - An array of policies elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder policies(Iterable<? extends Token.PolicyLink> elements)
policies list.elements - An iterable of policies elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder addAllPolicies(Iterable<? extends Token.PolicyLink> elements)
policies list.elements - An iterable of policies elementsthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder createIndex(BigInteger createIndex)
createIndex attribute.createIndex - The value for createIndexthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder modifyIndex(BigInteger modifyIndex)
modifyIndex attribute.modifyIndex - The value for modifyIndexthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder local(boolean local)
local attribute.local - The value for localthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder createTime(Date createTime)
createTime attribute.createTime - The value for createTimethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutableTokenListResponse.Builder hash(String hash)
hash attribute.hash - The value for hashthis builder for use in a chained invocationpublic ImmutableTokenListResponse build()
ImmutableTokenListResponse.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.