Class SnapshotRestore.Builder
- java.lang.Object
-
- org.opensearch.client.util.ObjectBuilderBase
-
- org.opensearch.client.opensearch.snapshot.restore.SnapshotRestore.Builder
-
- All Implemented Interfaces:
ObjectBuilder<SnapshotRestore>
- Enclosing class:
- SnapshotRestore
public static class SnapshotRestore.Builder extends ObjectBuilderBase implements ObjectBuilder<SnapshotRestore>
Builder forSnapshotRestore.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SnapshotRestorebuild()Builds aSnapshotRestore.SnapshotRestore.Builderindices(java.lang.String value, java.lang.String... values)Required - API name:indicesSnapshotRestore.Builderindices(java.util.List<java.lang.String> list)Required - API name:indicesSnapshotRestore.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shardsSnapshotRestore.Buildershards(ShardStatistics value)Required - API name:shardsSnapshotRestore.Buildersnapshot(java.lang.String value)Required - API name:snapshot-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
indices
public final SnapshotRestore.Builder indices(java.util.List<java.lang.String> list)
Required - API name:indicesAdds all elements of
listtoindices.
-
indices
public final SnapshotRestore.Builder indices(java.lang.String value, java.lang.String... values)
Required - API name:indicesAdds one or more values to
indices.
-
snapshot
public final SnapshotRestore.Builder snapshot(java.lang.String value)
Required - API name:snapshot
-
shards
public final SnapshotRestore.Builder shards(ShardStatistics value)
Required - API name:shards
-
shards
public final SnapshotRestore.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:shards
-
build
public SnapshotRestore build()
Builds aSnapshotRestore.- Specified by:
buildin interfaceObjectBuilder<SnapshotRestore>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-
-