Class RestoreResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RestoreResponse.Builder>
co.elastic.clients.elasticsearch.snapshot.RestoreResponse.Builder
- All Implemented Interfaces:
WithJson<RestoreResponse.Builder>
,ObjectBuilder<RestoreResponse>
- Enclosing class:
- RestoreResponse
public static class RestoreResponse.Builder extends WithJsonObjectBuilderBase<RestoreResponse.Builder> implements ObjectBuilder<RestoreResponse>
Builder for
RestoreResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description RestoreResponse
build()
Builds aRestoreResponse
.protected RestoreResponse.Builder
self()
RestoreResponse.Builder
snapshot(SnapshotRestore value)
Required - API name:snapshot
RestoreResponse.Builder
snapshot(java.util.function.Function<SnapshotRestore.Builder,ObjectBuilder<SnapshotRestore>> fn)
Required - API name:snapshot
Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
-
snapshot
Required - API name:snapshot
-
snapshot
public final RestoreResponse.Builder snapshot(java.util.function.Function<SnapshotRestore.Builder,ObjectBuilder<SnapshotRestore>> fn)Required - API name:snapshot
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<RestoreResponse.Builder>
-
build
Builds aRestoreResponse
.- Specified by:
build
in interfaceObjectBuilder<RestoreResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-