Class AddBlockResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<AddBlockResponse.Builder>
co.elastic.clients.elasticsearch.indices.AddBlockResponse.Builder
- All Implemented Interfaces:
WithJson<AddBlockResponse.Builder>,ObjectBuilder<AddBlockResponse>
- Enclosing class:
- AddBlockResponse
public static class AddBlockResponse.Builder
extends WithJsonObjectBuilderBase<AddBlockResponse.Builder>
implements ObjectBuilder<AddBlockResponse>
Builder for
AddBlockResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal AddBlockResponse.Builderacknowledged(boolean value) Required - API name:acknowledgedbuild()Builds aAddBlockResponse.final AddBlockResponse.Builderindices(IndicesBlockStatus value, IndicesBlockStatus... values) Required - API name:indicesfinal AddBlockResponse.BuilderRequired - API name:indicesfinal AddBlockResponse.Builderindices(List<IndicesBlockStatus> list) Required - API name:indicesprotected AddBlockResponse.Builderself()final AddBlockResponse.BuildershardsAcknowledged(boolean value) Required - API name:shards_acknowledgedMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
acknowledged
Required - API name:acknowledged -
shardsAcknowledged
Required - API name:shards_acknowledged -
indices
Required - API name:indicesAdds all elements of
listtoindices. -
indices
public final AddBlockResponse.Builder indices(IndicesBlockStatus value, IndicesBlockStatus... values) Required - API name:indicesAdds one or more values to
indices. -
indices
public final AddBlockResponse.Builder indices(Function<IndicesBlockStatus.Builder, ObjectBuilder<IndicesBlockStatus>> fn) Required - API name:indicesAdds a value to
indicesusing a builder lambda. -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<AddBlockResponse.Builder>
-
build
Builds aAddBlockResponse.- Specified by:
buildin interfaceObjectBuilder<AddBlockResponse>- Throws:
NullPointerException- if some of the required fields are null.
-