@ParametersAreNonnullByDefault @Generated(value={"Immutables.generator","BulkAction"}) @Immutable public final class ImmutableBulkAction extends BulkAction
BulkAction.
Use the builder to create immutable instances:
new BulkAction.Builder().
| Modifier and Type | Class and Description |
|---|---|
static class |
ImmutableBulkAction.Builder
Builds instances of type
ImmutableBulkAction. |
| Modifier and Type | Method and Description |
|---|---|
static ImmutableBulkAction |
copyOf(BulkAction instance)
Creates an immutable copy of a
BulkAction value. |
boolean |
equals(Object another)
This instance is equal to all instances of
ImmutableBulkAction that have equal attribute values. |
int |
hashCode()
Computes a hash code from attributes:
operation, index, type, id, parent, routing, source, version, refresh, waitForActiveShards. |
String |
id()
The document identifier targeted by this action.
|
String |
index()
The index targeted by this action.
|
String |
operation()
The type of operation to carry out inside this action.
|
String |
parent()
The parent identifier associated with this action.
|
Boolean |
refresh()
Whether this action should cause a refresh or not.
|
String |
routing()
The routing identifier associated with this action.
|
String |
source()
The source body associated with this action.
|
String |
toString()
Prints the immutable value
BulkAction with attribute values. |
String |
type()
The index type targeted by this action.
|
Integer |
version()
The document version associated with this action.
|
Boolean |
waitForActiveShards()
Whether this action should wait for shards or not.
|
ImmutableBulkAction |
withId(String value)
Copy the current immutable object by setting a value for the
id attribute. |
ImmutableBulkAction |
withIndex(String value)
Copy the current immutable object by setting a value for the
index attribute. |
ImmutableBulkAction |
withOperation(String value)
Copy the current immutable object by setting a value for the
operation attribute. |
ImmutableBulkAction |
withParent(String value)
Copy the current immutable object by setting a value for the
parent attribute. |
ImmutableBulkAction |
withRefresh(Boolean value)
Copy the current immutable object by setting a value for the
refresh attribute. |
ImmutableBulkAction |
withRouting(String value)
Copy the current immutable object by setting a value for the
routing attribute. |
ImmutableBulkAction |
withSource(String value)
Copy the current immutable object by setting a value for the
source attribute. |
ImmutableBulkAction |
withType(String value)
Copy the current immutable object by setting a value for the
type attribute. |
ImmutableBulkAction |
withVersion(Integer value)
Copy the current immutable object by setting a value for the
version attribute. |
ImmutableBulkAction |
withWaitForActiveShards(Boolean value)
Copy the current immutable object by setting a value for the
waitForActiveShards attribute. |
builderpublic String operation()
operation in class BulkAction@Nullable public String index()
index in class BulkAction@Nullable public String type()
type in class BulkAction@Nullable public String id()
id in class BulkAction@Nullable public String parent()
parent in class BulkAction@Nullable public String routing()
routing in class BulkAction@Nullable public String source()
source in class BulkAction@Nullable public Integer version()
version in class BulkAction@Nullable public Boolean refresh()
refresh in class BulkAction@Nullable public Boolean waitForActiveShards()
waitForActiveShards in class BulkActionpublic final ImmutableBulkAction withOperation(String value)
operation attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for operationthis objectpublic final ImmutableBulkAction withIndex(@Nullable String value)
index attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for index (can be null)this objectpublic final ImmutableBulkAction withType(@Nullable String value)
type attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for type (can be null)this objectpublic final ImmutableBulkAction withId(@Nullable String value)
id attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for id (can be null)this objectpublic final ImmutableBulkAction withParent(@Nullable String value)
parent attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for parent (can be null)this objectpublic final ImmutableBulkAction withRouting(@Nullable String value)
routing attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for routing (can be null)this objectpublic final ImmutableBulkAction withSource(@Nullable String value)
source attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for source (can be null)this objectpublic final ImmutableBulkAction withVersion(@Nullable Integer value)
version attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for version (can be null)this objectpublic final ImmutableBulkAction withRefresh(@Nullable Boolean value)
refresh attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for refresh (can be null)this objectpublic final ImmutableBulkAction withWaitForActiveShards(@Nullable Boolean value)
waitForActiveShards attribute.
An equals check used to prevent copying of the same value by returning this.value - A new value for waitForActiveShards (can be null)this objectpublic boolean equals(@Nullable Object another)
ImmutableBulkAction that have equal attribute values.public int hashCode()
operation, index, type, id, parent, routing, source, version, refresh, waitForActiveShards.public String toString()
BulkAction with attribute values.public static ImmutableBulkAction copyOf(BulkAction instance)
BulkAction 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 copyCopyright © 2017. All rights reserved.