Class MountedSnapshot.Builder
java.lang.Object
co.elastic.clients.elasticsearch.searchable_snapshots.mount.MountedSnapshot.Builder
- All Implemented Interfaces:
ObjectBuilder<MountedSnapshot>
- Enclosing class:
- MountedSnapshot
public static class MountedSnapshot.Builder extends java.lang.Object implements ObjectBuilder<MountedSnapshot>
Builder for
MountedSnapshot
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MountedSnapshot.Builder
addIndices(java.lang.String value)
Add a value toindices(List)
, creating the list if needed.MountedSnapshot
build()
Builds aMountedSnapshot
.MountedSnapshot.Builder
indices(java.lang.String... value)
Required - API name:indices
MountedSnapshot.Builder
indices(java.util.List<java.lang.String> value)
Required - API name:indices
MountedSnapshot.Builder
shards(ShardStatistics value)
Required - API name:shards
MountedSnapshot.Builder
shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)
Required - API name:shards
MountedSnapshot.Builder
snapshot(java.lang.String value)
Required - API name:snapshot
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
-
snapshot
Required - API name:snapshot
-
indices
Required - API name:indices
-
indices
Required - API name:indices
-
addIndices
Add a value toindices(List)
, creating the list if needed. -
shards
Required - API name:shards
-
shards
public MountedSnapshot.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shards
-
build
Builds aMountedSnapshot
.- Specified by:
build
in interfaceObjectBuilder<MountedSnapshot>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-