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