Class MountedSnapshot.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.elasticsearch.searchable_snapshots.mount.MountedSnapshot.Builder
- All Implemented Interfaces:
ObjectBuilder<MountedSnapshot>
- Enclosing class:
- MountedSnapshot
public static class MountedSnapshot.Builder extends ObjectBuilderBase implements ObjectBuilder<MountedSnapshot>
Builder for
MountedSnapshot.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description MountedSnapshotbuild()Builds aMountedSnapshot.MountedSnapshot.Builderindices(java.lang.String value, java.lang.String... values)Required - API name:indicesMountedSnapshot.Builderindices(java.util.List<java.lang.String> list)Required - API name:indicesMountedSnapshot.Buildershards(ShardStatistics value)Required - API name:shardsMountedSnapshot.Buildershards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shardsMountedSnapshot.Buildersnapshot(java.lang.String value)Required - API name:snapshotMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods 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:indicesAdds all elements of
listtoindices. -
indices
Required - API name:indicesAdds one or more values to
indices. -
shards
Required - API name:shards -
shards
public final MountedSnapshot.Builder shards(java.util.function.Function<ShardStatistics.Builder,ObjectBuilder<ShardStatistics>> fn)Required - API name:shards -
build
Builds aMountedSnapshot.- Specified by:
buildin interfaceObjectBuilder<MountedSnapshot>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-