@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableDeleteOptions extends DeleteOptions
DeleteOptions.
Use the builder to create immutable instances:
ImmutableDeleteOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableDeleteOptions.Builder
Builds instances of type
ImmutableDeleteOptions. |
BLANK, RECURSE| Modifier and Type | Method and Description |
|---|---|
static ImmutableDeleteOptions.Builder |
builder()
Creates a builder for
ImmutableDeleteOptions. |
static ImmutableDeleteOptions |
copyOf(DeleteOptions instance)
Creates an immutable copy of a
DeleteOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableDeleteOptions that have equal attribute values. |
Optional<Long> |
getCas() |
Optional<String> |
getDatacenter() |
Optional<Boolean> |
getRecurse() |
int |
hashCode()
Computes a hash code from attributes:
cas, recurse, datacenter, isRecurse. |
boolean |
isRecurse() |
String |
toString()
Prints the immutable value
DeleteOptions with attribute values. |
ImmutableDeleteOptions |
withCas(long value)
Copy the current immutable object by setting a present value for the optional
cas attribute. |
ImmutableDeleteOptions |
withCas(Optional<Long> optional)
Copy the current immutable object by setting an optional value for the
cas attribute. |
ImmutableDeleteOptions |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableDeleteOptions |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
ImmutableDeleteOptions |
withRecurse(boolean value)
Copy the current immutable object by setting a present value for the optional
recurse attribute. |
ImmutableDeleteOptions |
withRecurse(Optional<Boolean> optional)
Copy the current immutable object by setting an optional value for the
recurse attribute. |
toQuerypublic Optional<Long> getCas()
getCas in class DeleteOptionscas attributepublic Optional<Boolean> getRecurse()
getRecurse in class DeleteOptionsrecurse attributepublic Optional<String> getDatacenter()
getDatacenter in class DeleteOptionsdatacenter attributepublic boolean isRecurse()
isRecurse in class DeleteOptionsisRecurse attributepublic final ImmutableDeleteOptions withCas(long value)
cas attribute.value - The value for casthis objectpublic final ImmutableDeleteOptions withCas(Optional<Long> optional)
cas attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for casthis objectpublic final ImmutableDeleteOptions withRecurse(boolean value)
recurse attribute.value - The value for recursethis objectpublic final ImmutableDeleteOptions withRecurse(Optional<Boolean> optional)
recurse attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for recursethis objectpublic final ImmutableDeleteOptions withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableDeleteOptions withDatacenter(Optional<String> optional)
datacenter attribute.
An equality check is used on inner nullable value to prevent copying of the same value by returning this.optional - A value for datacenterthis objectpublic boolean equals(@Nullable Object another)
ImmutableDeleteOptions that have equal attribute values.public int hashCode()
cas, recurse, datacenter, isRecurse.public String toString()
DeleteOptions with attribute values.public static ImmutableDeleteOptions copyOf(DeleteOptions instance)
DeleteOptions value.
Uses accessors to get values to initialize the new immutable instance.
If an instance is already immutable, it is returned as is.instance - The instance to copypublic static ImmutableDeleteOptions.Builder builder()
ImmutableDeleteOptions.
ImmutableDeleteOptions.builder()
.cas(Long) // optional cas
.recurse(Boolean) // optional recurse
.datacenter(String) // optional datacenter
.build();
Copyright © 2019. All rights reserved.