@NotThreadSafe public static final class ImmutablePolicyListResponse.Builder extends Object
ImmutablePolicyListResponse.
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 |
|---|---|
ImmutablePolicyListResponse |
build()
Builds a new
ImmutablePolicyListResponse. |
ImmutablePolicyListResponse.Builder |
createIndex(BigInteger createIndex)
Initializes the value for the
createIndex attribute. |
ImmutablePolicyListResponse.Builder |
datacenters(Optional<String> datacenters)
Initializes the optional value
datacenters to datacenters. |
ImmutablePolicyListResponse.Builder |
datacenters(String datacenters)
Initializes the optional value
datacenters to datacenters. |
ImmutablePolicyListResponse.Builder |
from(BasePolicyResponse instance)
Fill a builder with attribute values from the provided
com.orbitz.consul.model.acl.BasePolicyResponse instance. |
ImmutablePolicyListResponse.Builder |
from(PolicyListResponse instance)
Fill a builder with attribute values from the provided
com.orbitz.consul.model.acl.PolicyListResponse instance. |
ImmutablePolicyListResponse.Builder |
hash(String hash)
Initializes the value for the
hash attribute. |
ImmutablePolicyListResponse.Builder |
id(String id)
Initializes the value for the
id attribute. |
ImmutablePolicyListResponse.Builder |
modifyIndex(BigInteger modifyIndex)
Initializes the value for the
modifyIndex attribute. |
ImmutablePolicyListResponse.Builder |
name(String name)
Initializes the value for the
name attribute. |
@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder from(BasePolicyResponse instance)
com.orbitz.consul.model.acl.BasePolicyResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder from(PolicyListResponse instance)
com.orbitz.consul.model.acl.PolicyListResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder id(String id)
id attribute.id - The value for idthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder name(String name)
name attribute.name - The value for namethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder datacenters(String datacenters)
datacenters to datacenters.datacenters - The value for datacentersthis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder datacenters(Optional<String> datacenters)
datacenters to datacenters.datacenters - The value for datacentersthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder hash(String hash)
hash attribute.hash - The value for hashthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder createIndex(BigInteger createIndex)
createIndex attribute.createIndex - The value for createIndexthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePolicyListResponse.Builder modifyIndex(BigInteger modifyIndex)
modifyIndex attribute.modifyIndex - The value for modifyIndexthis builder for use in a chained invocationpublic ImmutablePolicyListResponse build()
ImmutablePolicyListResponse.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.