@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","TransactionOptions"}) @Immutable public final class ImmutableTransactionOptions extends TransactionOptions
TransactionOptions.
Use the builder to create immutable instances:
ImmutableTransactionOptions.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableTransactionOptions.Builder
Builds instances of type
ImmutableTransactionOptions. |
BLANK| Modifier and Type | Method and Description |
|---|---|
static ImmutableTransactionOptions.Builder |
builder()
Creates a builder for
ImmutableTransactionOptions. |
static ImmutableTransactionOptions |
copyOf(TransactionOptions instance)
Creates an immutable copy of a
TransactionOptions value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableTransactionOptions that have equal attribute values. |
ConsistencyMode |
getConsistencyMode() |
Optional<String> |
getDatacenter() |
int |
hashCode()
Computes a hash code from attributes:
datacenter, consistencyMode. |
String |
toString()
Prints the immutable value
TransactionOptions with attribute values. |
ImmutableTransactionOptions |
withConsistencyMode(ConsistencyMode value)
Copy the current immutable object by setting a value for the
consistencyMode attribute. |
ImmutableTransactionOptions |
withDatacenter(Optional<String> optional)
Copy the current immutable object by setting an optional value for the
datacenter attribute. |
ImmutableTransactionOptions |
withDatacenter(String value)
Copy the current immutable object by setting a present value for the optional
datacenter attribute. |
toQuerypublic Optional<String> getDatacenter()
getDatacenter in class TransactionOptionsdatacenter attributepublic ConsistencyMode getConsistencyMode()
getConsistencyMode in class TransactionOptionsconsistencyMode attributepublic final ImmutableTransactionOptions withDatacenter(String value)
datacenter attribute.value - The value for datacenterthis objectpublic final ImmutableTransactionOptions 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 final ImmutableTransactionOptions withConsistencyMode(ConsistencyMode value)
consistencyMode attribute.
A shallow reference equality check is used to prevent copying of the same value by returning this.value - A new value for consistencyModethis objectpublic boolean equals(@Nullable Object another)
ImmutableTransactionOptions that have equal attribute values.public int hashCode()
datacenter, consistencyMode.public String toString()
TransactionOptions with attribute values.public static ImmutableTransactionOptions copyOf(TransactionOptions instance)
TransactionOptions 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 ImmutableTransactionOptions.Builder builder()
ImmutableTransactionOptions.Copyright © 2018. All rights reserved.