@ParametersAreNonnullByDefault @Generated(value="org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutableWriteRequest extends WriteRequest
WriteRequest.
Use the builder to create immutable instances:
ImmutableWriteRequest.builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableWriteRequest.Builder
Builds instances of type
ImmutableWriteRequest. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableWriteRequest.Builder |
builder()
Creates a builder for
ImmutableWriteRequest. |
static ImmutableWriteRequest |
copyOf(WriteRequest instance)
Creates an immutable copy of a
WriteRequest value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableWriteRequest that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
token. |
String |
token() |
String |
toString()
Prints the immutable value
WriteRequest with attribute values. |
ImmutableWriteRequest |
withToken(String value)
Copy the current immutable object by setting a value for the
token attribute. |
public String token()
token in class WriteRequesttoken attributepublic final ImmutableWriteRequest withToken(String value)
token attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for tokenthis objectpublic boolean equals(@Nullable Object another)
ImmutableWriteRequest that have equal attribute values.public int hashCode()
token.public String toString()
WriteRequest with attribute values.public static ImmutableWriteRequest copyOf(WriteRequest instance)
WriteRequest 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 ImmutableWriteRequest.Builder builder()
ImmutableWriteRequest.
ImmutableWriteRequest.builder()
.token(String) // required token
.build();
Copyright © 2019. All rights reserved.