Class CreateResponse.Builder
java.lang.Object
org.opensearch.client.opensearch.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
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.opensearch.client.util.ObjectBuilder
ObjectBuilder.Constant<V>
-
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(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)
API name:snapshot
CreateResponse.Builder
snapshot(SnapshotInfo value)
API name:snapshot
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accepted
API name:accepted
-
snapshot
API name:snapshot
-
snapshot
public CreateResponse.Builder snapshot(java.util.function.Function<SnapshotInfo.Builder,ObjectBuilder<SnapshotInfo>> fn)API name:snapshot
-
build
Builds aCreateResponse
.- Specified by:
build
in interfaceObjectBuilder<CreateResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-