Class CreateSnapshotResponse.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.CreateSnapshotResponse.Builder
-
- All Implemented Interfaces:
ObjectBuilder<CreateSnapshotResponse>
- Enclosing class:
- CreateSnapshotResponse
public static class CreateSnapshotResponse.Builder extends ObjectBuilderBase implements ObjectBuilder<CreateSnapshotResponse>
Builder forCreateSnapshotResponse.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateSnapshotResponse.Builderaccepted(java.lang.Boolean value)Returnstrueif the snapshot was accepted.CreateSnapshotResponsebuild()Builds aCreateSnapshotResponse.CreateSnapshotResponse.Buildersnapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshotCreateSnapshotResponse.Buildersnapshot(SnapshotInfo value)API name:snapshot-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
accepted
@Nonnull public final CreateSnapshotResponse.Builder accepted(@Nullable java.lang.Boolean value)
Returnstrueif the snapshot was accepted. Present when the request hadwait_for_completionset tofalse.API name:
accepted
-
snapshot
@Nonnull public final CreateSnapshotResponse.Builder snapshot(@Nullable SnapshotInfo value)
API name:snapshot
-
snapshot
@Nonnull public final CreateSnapshotResponse.Builder snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)
API name:snapshot
-
build
@Nonnull public CreateSnapshotResponse build()
Builds aCreateSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<CreateSnapshotResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-