Class ShardStoresRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.ShardStoresRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<ShardStoresRequest>
- Enclosing class:
- ShardStoresRequest
public static class ShardStoresRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<ShardStoresRequest>
Builder forShardStoresRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description 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(java.util.List<ExpandWildcard> list)Type of index that wildcard patterns can match.ShardStoresRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)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, java.lang.String... values)List of data streams, indices, and aliases used to limit the request.ShardStoresRequest.Builderindex(java.util.List<java.lang.String> list)List of data streams, indices, and aliases used to limit the request.ShardStoresRequest.Builderstatus(java.util.List<ShardStoreStatus> list)List of shard health statuses used to limit the request.ShardStoresRequest.Builderstatus(ShardStoreStatus value, ShardStoreStatus... values)List of shard health statuses used to limit the request.-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allowNoIndices
public final ShardStoresRequest.Builder allowNoIndices(@Nullable 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. This behavior applies even if the request targets other open indices.API name:
allow_no_indices
-
expandWildcards
public final ShardStoresRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)
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_wildcardsAdds all elements of
listtoexpandWildcards.
-
expandWildcards
public final ShardStoresRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
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_wildcardsAdds one or more values to
expandWildcards.
-
ignoreUnavailable
public final ShardStoresRequest.Builder ignoreUnavailable(@Nullable java.lang.Boolean value)
If true, missing or closed indices are not included in the response.API name:
ignore_unavailable
-
index
public final ShardStoresRequest.Builder index(java.util.List<java.lang.String> list)
List of data streams, indices, and aliases used to limit the request.API name:
indexAdds all elements of
listtoindex.
-
index
public final ShardStoresRequest.Builder index(java.lang.String value, java.lang.String... values)
List of data streams, indices, and aliases used to limit the request.API name:
indexAdds one or more values to
index.
-
status
public final ShardStoresRequest.Builder status(java.util.List<ShardStoreStatus> list)
List of shard health statuses used to limit the request.API name:
statusAdds all elements of
listtostatus.
-
status
public final ShardStoresRequest.Builder status(ShardStoreStatus value, ShardStoreStatus... values)
List of shard health statuses used to limit the request.API name:
statusAdds one or more values to
status.
-
build
public ShardStoresRequest build()
Builds aShardStoresRequest.- Specified by:
buildin interfaceObjectBuilder<ShardStoresRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-