Class AddBlockResponse.Builder
java.lang.Object
org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
org.opensearch.client.opensearch.indices.AddBlockResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<AddBlockResponse>
- Enclosing class:
- AddBlockResponse
public static class AddBlockResponse.Builder extends AcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder> implements ObjectBuilder<AddBlockResponse>
Builder for
AddBlockResponse.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V> -
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description AddBlockResponse.BuilderaddIndices(java.util.function.Function<IndicesBlockStatus.Builder,ObjectBuilder<IndicesBlockStatus>> fn)Add a value toindices(List), creating the list if needed.AddBlockResponse.BuilderaddIndices(IndicesBlockStatus value)Add a value toindices(List), creating the list if needed.AddBlockResponsebuild()Builds aAddBlockResponse.AddBlockResponse.Builderindices(java.util.function.Function<IndicesBlockStatus.Builder,ObjectBuilder<IndicesBlockStatus>> fn)Setindices(List)to a singleton list.AddBlockResponse.Builderindices(java.util.List<IndicesBlockStatus> value)API name:indicesAddBlockResponse.Builderindices(IndicesBlockStatus... value)API name:indicesprotected AddBlockResponse.Builderself()AddBlockResponse.BuildershardsAcknowledged(java.lang.Boolean value)API name:shards_acknowledgedMethods inherited from class org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder
acknowledged
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
shardsAcknowledged
API name:shards_acknowledged -
indices
API name:indices -
indices
API name:indices -
addIndices
Add a value toindices(List), creating the list if needed. -
indices
public AddBlockResponse.Builder indices(java.util.function.Function<IndicesBlockStatus.Builder,ObjectBuilder<IndicesBlockStatus>> fn)Setindices(List)to a singleton list. -
addIndices
public AddBlockResponse.Builder addIndices(java.util.function.Function<IndicesBlockStatus.Builder,ObjectBuilder<IndicesBlockStatus>> fn)Add a value toindices(List), creating the list if needed. -
self
- Specified by:
selfin classAcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
-
build
Builds aAddBlockResponse.- Specified by:
buildin interfaceObjectBuilder<AddBlockResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-