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 -
Method Summary
Modifier and TypeMethodDescriptionEqualstrueif the snapshot was accepted.build()Builds aCreateSnapshotResponse.protected CreateSnapshotResponse.Builderself()snapshot(SnapshotInfo value) Snapshot information.Snapshot information.Methods 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
-
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(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:
NullPointerException- if some of the required fields are null.
-