Class CreateSnapshotResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<CreateSnapshotResponse.Builder>
co.elastic.clients.elasticsearch.snapshot.CreateSnapshotResponse.Builder
- All Implemented Interfaces:
WithJson<CreateSnapshotResponse.Builder>,ObjectBuilder<CreateSnapshotResponse>
- Enclosing class:
- CreateSnapshotResponse
public static class CreateSnapshotResponse.Builder extends WithJsonObjectBuilderBase<CreateSnapshotResponse.Builder> implements ObjectBuilder<CreateSnapshotResponse>
Builder for
CreateSnapshotResponse.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description CreateSnapshotResponse.Builderaccepted(java.lang.Boolean value)Equalstrueif the snapshot was accepted.CreateSnapshotResponsebuild()Builds aCreateSnapshotResponse.protected CreateSnapshotResponse.Builderself()CreateSnapshotResponse.Buildersnapshot(SnapshotInfo value)Snapshot information.CreateSnapshotResponse.Buildersnapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Snapshot information.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accepted
Equalstrueif the snapshot was accepted. Present when the request hadwait_for_completionset tofalseAPI name:
accepted -
snapshot
Snapshot information. Present when the request hadwait_for_completionset totrueAPI name:
snapshot -
snapshot
public final CreateSnapshotResponse.Builder snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Snapshot information. Present when the request hadwait_for_completionset totrueAPI name:
snapshot -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<CreateSnapshotResponse.Builder>
-
build
Builds aCreateSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<CreateSnapshotResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-