@NotThreadSafe public static final class ImmutablePutOptions.Builder extends Object
ImmutablePutOptions.
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 |
|---|---|
ImmutablePutOptions.Builder |
acquire(Optional<String> acquire)
Initializes the optional value
acquire to acquire. |
ImmutablePutOptions.Builder |
acquire(String acquire)
Initializes the optional value
acquire to acquire. |
ImmutablePutOptions |
build()
Builds a new
ImmutablePutOptions. |
ImmutablePutOptions.Builder |
cas(long cas)
Initializes the optional value
cas to cas. |
ImmutablePutOptions.Builder |
cas(Optional<Long> cas)
Initializes the optional value
cas to cas. |
ImmutablePutOptions.Builder |
dc(Optional<String> dc)
Initializes the optional value
dc to dc. |
ImmutablePutOptions.Builder |
dc(String dc)
Initializes the optional value
dc to dc. |
ImmutablePutOptions.Builder |
from(PutOptions instance)
Fill a builder with attribute values from the provided
PutOptions instance. |
ImmutablePutOptions.Builder |
release(Optional<String> release)
Initializes the optional value
release to release. |
ImmutablePutOptions.Builder |
release(String release)
Initializes the optional value
release to release. |
ImmutablePutOptions.Builder |
token(Optional<String> token)
Initializes the optional value
token to token. |
ImmutablePutOptions.Builder |
token(String token)
Initializes the optional value
token to token. |
@CanIgnoreReturnValue public final ImmutablePutOptions.Builder from(PutOptions instance)
PutOptions 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 invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder cas(long cas)
cas to cas.cas - The value for casthis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder cas(Optional<Long> cas)
cas to cas.cas - The value for casthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder acquire(String acquire)
acquire to acquire.acquire - The value for acquirethis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder acquire(Optional<String> acquire)
acquire to acquire.acquire - The value for acquirethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder release(String release)
release to release.release - The value for releasethis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder release(Optional<String> release)
release to release.release - The value for releasethis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder dc(String dc)
dc to dc.dc - The value for dcthis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder dc(Optional<String> dc)
dc to dc.dc - The value for dcthis builder for use in a chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder token(String token)
token to token.token - The value for tokenthis builder for chained invocation@CanIgnoreReturnValue public final ImmutablePutOptions.Builder token(Optional<String> token)
token to token.token - The value for tokenthis builder for use in a chained invocationpublic ImmutablePutOptions build()
ImmutablePutOptions.IllegalStateException - if any required attributes are missingCopyright © 2019. All rights reserved.