@NotThreadSafe public static class ImmutableBulkAction.Builder extends Object
ImmutableBulkAction.
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.
| Constructor and Description |
|---|
Builder()
Creates a builder for
ImmutableBulkAction instances. |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBulkAction |
build()
Builds a new
ImmutableBulkAction. |
BulkAction.Builder |
from(BulkAction instance)
Fill a builder with attribute values from the provided
BulkAction instance. |
BulkAction.Builder |
id(String id)
Initializes the value for the
id attribute. |
BulkAction.Builder |
index(String index)
Initializes the value for the
index attribute. |
BulkAction.Builder |
operation(String operation)
Initializes the value for the
operation attribute. |
BulkAction.Builder |
parent(String parent)
Initializes the value for the
parent attribute. |
BulkAction.Builder |
refresh(Boolean refresh)
Initializes the value for the
refresh attribute. |
BulkAction.Builder |
routing(String routing)
Initializes the value for the
routing attribute. |
BulkAction.Builder |
source(String source)
Initializes the value for the
source attribute. |
BulkAction.Builder |
type(String type)
Initializes the value for the
type attribute. |
BulkAction.Builder |
version(Integer version)
Initializes the value for the
version attribute. |
BulkAction.Builder |
waitForActiveShards(Boolean waitForActiveShards)
Initializes the value for the
waitForActiveShards attribute. |
public Builder()
ImmutableBulkAction instances.public final BulkAction.Builder from(BulkAction instance)
BulkAction 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 invocationpublic final BulkAction.Builder operation(String operation)
operation attribute.operation - The value for operationthis builder for use in a chained invocationpublic final BulkAction.Builder index(@Nullable String index)
index attribute.index - The value for index (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder type(@Nullable String type)
type attribute.type - The value for type (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder id(@Nullable String id)
id attribute.id - The value for id (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder parent(@Nullable String parent)
parent attribute.parent - The value for parent (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder routing(@Nullable String routing)
routing attribute.routing - The value for routing (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder source(@Nullable String source)
source attribute.source - The value for source (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder version(@Nullable Integer version)
version attribute.version - The value for version (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder refresh(@Nullable Boolean refresh)
refresh attribute.refresh - The value for refresh (can be null)this builder for use in a chained invocationpublic final BulkAction.Builder waitForActiveShards(@Nullable Boolean waitForActiveShards)
waitForActiveShards attribute.waitForActiveShards - The value for waitForActiveShards (can be null)this builder for use in a chained invocationpublic ImmutableBulkAction build()
ImmutableBulkAction.IllegalStateException - if any required attributes are missingCopyright © 2017. All rights reserved.