Class AddBlockResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
org.opensearch.client.opensearch.indices.AddBlockResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<AddBlockResponse.Builder,,AddBlockResponse> MutableBuilder<AddBlockResponse.Builder,,AddBlockResponse> ObjectBuilder<AddBlockResponse>
- Enclosing class:
AddBlockResponse
public static class AddBlockResponse.Builder
extends AcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
implements CopyableBuilder<AddBlockResponse.Builder,AddBlockResponse>
Builder for
AddBlockResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aAddBlockResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.final AddBlockResponse.BuilderRequired - API name:indicesfinal AddBlockResponse.Builderindices(List<IndicesBlockStatus> list) Required - API name:indicesfinal AddBlockResponse.Builderindices(IndicesBlockStatus value, IndicesBlockStatus... values) Required - API name:indicesprotected AddBlockResponse.Builderself()final AddBlockResponse.BuildershardsAcknowledged(boolean value) Required - API name:shards_acknowledgedMethods inherited from class org.opensearch.client.opensearch._types.AcknowledgedResponseBase.AbstractBuilder
acknowledgedMethods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _listCopy, _mapCopy, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.opensearch.client.util.MutableBuilder
applyMutation
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
copy
Description copied from interface:CopyableBuilderCreate a new builderCopyableBuilderthat is a copy of this one.- Specified by:
copyin interfaceCopyableBuilder<AddBlockResponse.Builder,AddBlockResponse> - Returns:
- a new builder instance.
-
self
- Specified by:
selfin classAcknowledgedResponseBase.AbstractBuilder<AddBlockResponse.Builder>
-
indices
Required - API name:indicesAdds all elements of
listtoindices. -
indices
@Nonnull public final AddBlockResponse.Builder indices(IndicesBlockStatus value, IndicesBlockStatus... values) Required - API name:indicesAdds one or more values to
indices. -
indices
@Nonnull public final AddBlockResponse.Builder indices(Function<IndicesBlockStatus.Builder, ObjectBuilder<IndicesBlockStatus>> fn) Required - API name:indicesAdds a value to
indicesusing a builder lambda. -
shardsAcknowledged
Required - API name:shards_acknowledged -
build
Builds aAddBlockResponse.- Specified by:
buildin interfaceObjectBuilder<AddBlockResponse>- Throws:
NullPointerException- if some of the required fields are null.
-