Class StatusResponse.Builder
java.lang.Object
co.elastic.clients.elasticsearch.snapshot.StatusResponse.Builder
- All Implemented Interfaces:
ObjectBuilder<StatusResponse>
- Enclosing class:
- StatusResponse
public static class StatusResponse.Builder extends java.lang.Object implements ObjectBuilder<StatusResponse>
Builder for
StatusResponse
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description StatusResponse.Builder
addSnapshots(Status value)
Add a value tosnapshots(List)
, creating the list if needed.StatusResponse.Builder
addSnapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)
Add a value tosnapshots(List)
, creating the list if needed.StatusResponse
build()
Builds aStatusResponse
.StatusResponse.Builder
snapshots(Status... value)
Required - API name:snapshots
StatusResponse.Builder
snapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)
Setsnapshots(List)
to a singleton list.StatusResponse.Builder
snapshots(java.util.List<Status> value)
Required - API name:snapshots
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
-
snapshots
Required - API name:snapshots
-
addSnapshots
Add a value tosnapshots(List)
, creating the list if needed. -
snapshots
public StatusResponse.Builder snapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Setsnapshots(List)
to a singleton list. -
addSnapshots
public StatusResponse.Builder addSnapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Add a value tosnapshots(List)
, creating the list if needed. -
build
Builds aStatusResponse
.- Specified by:
build
in interfaceObjectBuilder<StatusResponse>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-