Class ShardStoresRequest.Builder
java.lang.Object
co.elastic.clients.elasticsearch.indices.ShardStoresRequest.Builder
- All Implemented Interfaces:
ObjectBuilder<ShardStoresRequest>
- Enclosing class:
- ShardStoresRequest
public static class ShardStoresRequest.Builder extends java.lang.Object implements ObjectBuilder<ShardStoresRequest>
Builder for
ShardStoresRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description ShardStoresRequest.BuilderaddExpandWildcards(ExpandWildcardOptions value)Add a value toexpandWildcards(List), creating the list if needed.ShardStoresRequest.BuilderaddIndex(java.lang.String value)Add a value toindex(List), creating the list if needed.ShardStoresRequest.BuilderaddStatus(ShardStatus value)Add a value tostatus(List), creating the list if needed.ShardStoresRequest.BuilderallowNoIndices(java.lang.Boolean value)If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices.ShardStoresRequestbuild()Builds aShardStoresRequest.ShardStoresRequest.BuilderexpandWildcards(ExpandWildcardOptions... value)Type of index that wildcard patterns can match.ShardStoresRequest.BuilderexpandWildcards(java.util.List<ExpandWildcardOptions> value)Type of index that wildcard patterns can match.ShardStoresRequest.BuilderignoreUnavailable(java.lang.Boolean value)If true, missing or closed indices are not included in the response.ShardStoresRequest.Builderindex(java.lang.String... value)List of data streams, indices, and aliases used to limit the request.ShardStoresRequest.Builderindex(java.util.List<java.lang.String> value)List of data streams, indices, and aliases used to limit the request.ShardStoresRequest.Builderstatus(ShardStatus... value)List of shard health statuses used to limit the request.ShardStoresRequest.Builderstatus(java.util.List<ShardStatus> value)List of shard health statuses used to limit the request.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
index
List of data streams, indices, and aliases used to limit the request.API name:
index -
index
List of data streams, indices, and aliases used to limit the request.API name:
index -
addIndex
Add a value toindex(List), creating the list if needed. -
allowNoIndices
If false, the request returns an error if any wildcard expression, index alias, or _all value targets only missing or closed indices. This behavior applies even if the request targets other open indices.API name:
allow_no_indices -
expandWildcards
public ShardStoresRequest.Builder expandWildcards(@Nullable java.util.List<ExpandWildcardOptions> value)Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.API name:
expand_wildcards -
expandWildcards
Type of index that wildcard patterns can match. If the request can target data streams, this argument determines whether wildcard expressions match hidden data streams.API name:
expand_wildcards -
addExpandWildcards
Add a value toexpandWildcards(List), creating the list if needed. -
status
List of shard health statuses used to limit the request.API name:
status -
status
List of shard health statuses used to limit the request.API name:
status -
addStatus
Add a value tostatus(List), creating the list if needed. -
build
Builds aShardStoresRequest.- Specified by:
buildin interfaceObjectBuilder<ShardStoresRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-