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 SnapshotRestore
build()
Builds aSnapshotRestore
.SnapshotRestore.Builder
indices(java.lang.String value, java.lang.String... values)
Required - API name:indices
SnapshotRestore.Builder
indices(java.util.List<java.lang.String> list)
Required - API name:indices
SnapshotRestore.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:shards
SnapshotRestore.Builder
shards(ShardStatistics value)
Required - API name:shards
SnapshotRestore.Builder
snapshot(java.lang.String value)
Required - API name:snapshot
-
Methods inherited from class org.opensearch.client.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAdd, _listAddAll, _listAddAll, _mapPut, _mapPutAll
-
-
-
-
Method Detail
-
indices
public final SnapshotRestore.Builder indices(java.util.List<java.lang.String> list)
Required - API name:indices
Adds all elements of
list
toindices
.
-
indices
public final SnapshotRestore.Builder indices(java.lang.String value, java.lang.String... values)
Required - API name:indices
Adds 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:
build
in interfaceObjectBuilder<SnapshotRestore>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-
-