Class CreateSnapshotResponse.Builder
java.lang.Object
org.opensearch.client.util.ObjectBuilderBase
org.opensearch.client.opensearch.snapshot.CreateSnapshotResponse.Builder
- All Implemented Interfaces:
CopyableBuilder<CreateSnapshotResponse.Builder,,CreateSnapshotResponse> MutableBuilder<CreateSnapshotResponse.Builder,,CreateSnapshotResponse> ObjectBuilder<CreateSnapshotResponse>
- Enclosing class:
CreateSnapshotResponse
public static class CreateSnapshotResponse.Builder
extends ObjectBuilderBase
implements CopyableBuilder<CreateSnapshotResponse.Builder,CreateSnapshotResponse>
Builder for
CreateSnapshotResponse.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturnstrueif the snapshot was accepted.build()Builds aCreateSnapshotResponse.copy()Create a new builderCopyableBuilderthat is a copy of this one.API name:snapshotsnapshot(SnapshotInfo value) API name:snapshotMethods 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<CreateSnapshotResponse.Builder,CreateSnapshotResponse> - Returns:
- a new builder instance.
-
accepted
Returnstrueif the snapshot was accepted. Present when the request hadwait_for_completionset tofalse.API name:
accepted -
snapshot
API name:snapshot -
snapshot
@Nonnull public final CreateSnapshotResponse.Builder snapshot(Function<SnapshotInfo.Builder, ObjectBuilder<SnapshotInfo>> fn) API name:snapshot -
build
Builds aCreateSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<CreateSnapshotResponse>- Throws:
NullPointerException- if some of the required fields are null.
-