Class CreateSnapshotResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.snapshot.CreateSnapshotResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<CreateSnapshotResponse>
- Enclosing class:
- CreateSnapshotResponse
public static class CreateSnapshotResponse.Builder extends ObjectBuilderBase 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)API name:acceptedCreateSnapshotResponsebuild()Builds aCreateSnapshotResponse.CreateSnapshotResponse.Buildersnapshot(SnapshotInfo value)Required - API name:snapshotCreateSnapshotResponse.Buildersnapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Required - API name:snapshotMethods 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
API name:accepted -
snapshot
Required - API name:snapshot -
snapshot
public final CreateSnapshotResponse.Builder snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Required - API name:snapshot -
build
Builds aCreateSnapshotResponse.- Specified by:
buildin interfaceObjectBuilder<CreateSnapshotResponse>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-