Class CreateResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.CreateResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<CreateResponse>
- Enclosing class:
- CreateResponse
public static class CreateResponse.Builder extends java.lang.Object implements ObjectBuilder<CreateResponse>
Builder for
CreateResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description CreateResponse.Builder
accepted(java.lang.Boolean value)
API name:accepted
CreateResponse
build()
Builds aCreateResponse
.CreateResponse.Builder
snapshot(SnapshotInfo value)
Required - API name:snapshot
CreateResponse.Builder
snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)
Required - API name:snapshot
Methods 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 CreateResponse.Builder snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)Required - API name:snapshot
-
build
Builds aCreateResponse
.- Specified by:
build
in interfaceObjectBuilder<CreateResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-