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