Class AddBlockResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
co.elastic.clients.elasticsearch.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.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description AddBlockResponse.BuilderaddIndices(IndicesBlockStatus value)Add a value toindices(List), creating the list if needed.AddBlockResponse.BuilderaddIndices(java.util.function.Function<IndicesBlockStatus.Builder,ObjectBuilder<IndicesBlockStatus>> fn)Add a value toindices(List), creating the list if needed.AddBlockResponsebuild()Builds aAddBlockResponse.AddBlockResponse.Builderindices(IndicesBlockStatus... value)API name:indicesAddBlockResponse.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:indicesprotected AddBlockResponse.Builderself()AddBlockResponse.BuildershardsAcknowledged(boolean value)API name:shards_acknowledgedMethods inherited from class co.elastic.clients.elasticsearch._types.AcknowledgedResponseBase.AbstractBuilder
acknowledgedMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
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. 4 -
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. 5 -
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.
-