Class ClusterStateSnapshots.Builder
java.lang.Object
org.opensearch.client.opensearch.cluster.ClusterStateSnapshots.Builder
- All Implemented Interfaces:
ObjectBuilder<ClusterStateSnapshots>
- Enclosing class:
- ClusterStateSnapshots
public static class ClusterStateSnapshots.Builder extends java.lang.Object implements ObjectBuilder<ClusterStateSnapshots>
Builder for
ClusterStateSnapshots.-
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 ClusterStateSnapshots.BuilderaddSnapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Add a value tosnapshots(List), creating the list if needed.ClusterStateSnapshots.BuilderaddSnapshots(Status value)Add a value tosnapshots(List), creating the list if needed.ClusterStateSnapshotsbuild()Builds aClusterStateSnapshots.ClusterStateSnapshots.Buildersnapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Setsnapshots(List)to a singleton list.ClusterStateSnapshots.Buildersnapshots(java.util.List<Status> value)API name:snapshotsClusterStateSnapshots.Buildersnapshots(Status... value)API name:snapshots
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
snapshots
API name:snapshots -
snapshots
API name:snapshots -
addSnapshots
Add a value tosnapshots(List), creating the list if needed. -
snapshots
public ClusterStateSnapshots.Builder snapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Setsnapshots(List)to a singleton list. -
addSnapshots
public ClusterStateSnapshots.Builder addSnapshots(java.util.function.Function<Status.Builder,ObjectBuilder<Status>> fn)Add a value tosnapshots(List), creating the list if needed. -
build
Builds aClusterStateSnapshots.- Specified by:
buildin interfaceObjectBuilder<ClusterStateSnapshots>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-