@NotThreadSafe public static final class ImmutableAclResponse.Builder extends Object
ImmutableAclResponse.
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 |
|---|---|
ImmutableAclResponse |
build()
Builds a new
ImmutableAclResponse. |
ImmutableAclResponse.Builder |
createIndex(BigInteger createIndex)
Initializes the value for the
createIndex attribute. |
ImmutableAclResponse.Builder |
from(AclResponse instance)
Fill a builder with attribute values from the provided
AclResponse instance. |
ImmutableAclResponse.Builder |
id(Optional<String> id)
Initializes the optional value
id to id. |
ImmutableAclResponse.Builder |
id(String id)
Initializes the optional value
id to id. |
ImmutableAclResponse.Builder |
modifyIndex(BigInteger modifyIndex)
Initializes the value for the
modifyIndex attribute. |
ImmutableAclResponse.Builder |
name(Optional<String> name)
Initializes the optional value
name to name. |
ImmutableAclResponse.Builder |
name(String name)
Initializes the optional value
name to name. |
ImmutableAclResponse.Builder |
rules(Optional<String> rules)
Initializes the optional value
rules to rules. |
ImmutableAclResponse.Builder |
rules(String rules)
Initializes the optional value
rules to rules. |
ImmutableAclResponse.Builder |
type(Optional<String> type)
Initializes the optional value
type to type. |
ImmutableAclResponse.Builder |
type(String type)
Initializes the optional value
type to type. |
public final ImmutableAclResponse.Builder from(AclResponse instance)
AclResponse instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder createIndex(BigInteger createIndex)
createIndex attribute.createIndex - The value for createIndexthis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder modifyIndex(BigInteger modifyIndex)
modifyIndex attribute.modifyIndex - The value for modifyIndexthis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder id(String id)
id to id.id - The value for idthis builder for chained invocationpublic final ImmutableAclResponse.Builder id(Optional<String> id)
id to id.id - The value for idthis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder name(String name)
name to name.name - The value for namethis builder for chained invocationpublic final ImmutableAclResponse.Builder name(Optional<String> name)
name to name.name - The value for namethis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder type(String type)
type to type.type - The value for typethis builder for chained invocationpublic final ImmutableAclResponse.Builder type(Optional<String> type)
type to type.type - The value for typethis builder for use in a chained invocationpublic final ImmutableAclResponse.Builder rules(String rules)
rules to rules.rules - The value for rulesthis builder for chained invocationpublic final ImmutableAclResponse.Builder rules(Optional<String> rules)
rules to rules.rules - The value for rulesthis builder for use in a chained invocationpublic ImmutableAclResponse build()
ImmutableAclResponse.IllegalStateException - if any required attributes are missingCopyright © 2018. All rights reserved.