Class SnapshotStatusResponse.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<SnapshotStatusResponse.Builder>
co.elastic.clients.elasticsearch.snapshot.SnapshotStatusResponse.Builder
- All Implemented Interfaces:
WithJson<SnapshotStatusResponse.Builder>
,ObjectBuilder<SnapshotStatusResponse>
- Enclosing class:
- SnapshotStatusResponse
public static class SnapshotStatusResponse.Builder extends WithJsonObjectBuilderBase<SnapshotStatusResponse.Builder> implements ObjectBuilder<SnapshotStatusResponse>
Builder for
SnapshotStatusResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description SnapshotStatusResponse
build()
Builds aSnapshotStatusResponse
.protected SnapshotStatusResponse.Builder
self()
SnapshotStatusResponse.Builder
snapshots(Status value, Status... values)
Required - API name:snapshots
SnapshotStatusResponse.Builder
snapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)
Required - API name:snapshots
SnapshotStatusResponse.Builder
snapshots(java.util.List<Status> list)
Required - API name:snapshots
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
-
snapshots
Required - API name:snapshots
Adds all elements of
list
tosnapshots
. -
snapshots
Required - API name:snapshots
Adds one or more values to
snapshots
. -
snapshots
public final SnapshotStatusResponse.Builder snapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Required - API name:snapshots
Adds a value to
snapshots
using a builder lambda. -
self
- Specified by:
self
in classWithJsonObjectBuilderBase<SnapshotStatusResponse.Builder>
-
build
Builds aSnapshotStatusResponse
.- Specified by:
build
in interfaceObjectBuilder<SnapshotStatusResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-