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
-
Method Summary
Modifier and TypeMethodDescriptionEqualstrue
if the snapshot was accepted.build()
Builds aCreateSnapshotResponse
.protected CreateSnapshotResponse.Builder
self()
snapshot
(SnapshotInfo value) Snapshot information.Snapshot information.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accepted
Equalstrue
if the snapshot was accepted. Present when the request hadwait_for_completion
set tofalse
API name:
accepted
-
snapshot
Snapshot information. Present when the request hadwait_for_completion
set totrue
API name:
snapshot
-
snapshot
public final CreateSnapshotResponse.Builder snapshot(Function<SnapshotInfo.Builder, ObjectBuilder<SnapshotInfo>> fn) Snapshot information. Present when the request hadwait_for_completion
set totrue
API name:
snapshot
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<CreateSnapshotResponse.Builder>
-
build
Builds aCreateSnapshotResponse
.- Specified by:
build
in interfaceObjectBuilder<CreateSnapshotResponse>
- Throws:
NullPointerException
- if some of the required fields are null.
-