Class AddBlockRequest.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.indices.AddBlockRequest.Builder
-
- All Implemented Interfaces:
ObjectBuilder<AddBlockRequest>
- Enclosing class:
- AddBlockRequest
public static class AddBlockRequest.Builder extends ObjectBuilderBase implements ObjectBuilder<AddBlockRequest>
Builder forAddBlockRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description AddBlockRequest.BuilderallowNoIndices(java.lang.Boolean value)Whether to ignore if a wildcard indices expression resolves into no concrete indices.AddBlockRequest.Builderblock(IndicesBlockOptions value)Required - The block to add (one of read, write, read_only or metadata)AddBlockRequestbuild()Builds aAddBlockRequest.AddBlockRequest.BuilderclusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Specify timeout for connection to cluster-managerAddBlockRequest.BuilderclusterManagerTimeout(Time value)Specify timeout for connection to cluster-managerAddBlockRequest.BuilderexpandWildcards(java.util.List<ExpandWildcard> list)Whether to expand wildcard expression to concrete indices that are open, closed or both.AddBlockRequest.BuilderexpandWildcards(ExpandWildcard value, ExpandWildcard... values)Whether to expand wildcard expression to concrete indices that are open, closed or both.AddBlockRequest.BuilderignoreUnavailable(java.lang.Boolean value)Whether specified concrete indices should be ignored when unavailable (missing or closed)AddBlockRequest.Builderindex(java.lang.String value)Required - A comma separated list of indices to add a block toAddBlockRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Deprecated.AddBlockRequest.BuildermasterTimeout(Time value)Deprecated.AddBlockRequest.Buildertimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeoutAddBlockRequest.Buildertimeout(Time value)Explicit operation timeout-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
allowNoIndices
public final AddBlockRequest.Builder allowNoIndices(@Nullable java.lang.Boolean value)
Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes_allstring or when no indices have been specified)API name:
allow_no_indices
-
block
public final AddBlockRequest.Builder block(IndicesBlockOptions value)
Required - The block to add (one of read, write, read_only or metadata)API name:
block
-
expandWildcards
public final AddBlockRequest.Builder expandWildcards(java.util.List<ExpandWildcard> list)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards.
-
expandWildcards
public final AddBlockRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values)
Whether to expand wildcard expression to concrete indices that are open, closed or both.API name:
expand_wildcardsAdds one or more values to
expandWildcards.
-
ignoreUnavailable
public final AddBlockRequest.Builder ignoreUnavailable(@Nullable java.lang.Boolean value)
Whether specified concrete indices should be ignored when unavailable (missing or closed)API name:
ignore_unavailable
-
index
public final AddBlockRequest.Builder index(java.lang.String value)
Required - A comma separated list of indices to add a block toAPI name:
index
-
masterTimeout
@Deprecated public final AddBlockRequest.Builder masterTimeout(@Nullable Time value)
Deprecated.Specify timeout for connection to masterAPI name:
master_timeout
-
masterTimeout
@Deprecated public final AddBlockRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Deprecated.Specify timeout for connection to masterAPI name:
master_timeout
-
clusterManagerTimeout
public final AddBlockRequest.Builder clusterManagerTimeout(@Nullable Time value)
Specify timeout for connection to cluster-managerAPI name:
cluster_manager_timeout
-
clusterManagerTimeout
public final AddBlockRequest.Builder clusterManagerTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Specify timeout for connection to cluster-managerAPI name:
cluster_manager_timeout
-
timeout
public final AddBlockRequest.Builder timeout(@Nullable Time value)
Explicit operation timeoutAPI name:
timeout
-
timeout
public final AddBlockRequest.Builder timeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)
Explicit operation timeoutAPI name:
timeout
-
build
public AddBlockRequest build()
Builds aAddBlockRequest.- Specified by:
buildin interfaceObjectBuilder<AddBlockRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-