Class MountedSnapshot.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<MountedSnapshot.Builder>
co.elastic.clients.elasticsearch.searchable_snapshots.mount.MountedSnapshot.Builder
- All Implemented Interfaces:
WithJson<MountedSnapshot.Builder>
,ObjectBuilder<MountedSnapshot>
- Enclosing class:
- MountedSnapshot
public static class MountedSnapshot.Builder extends WithJsonObjectBuilderBase<MountedSnapshot.Builder> implements ObjectBuilder<MountedSnapshot>
Builder for
MountedSnapshot
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description MountedSnapshot
build()
Builds aMountedSnapshot
.MountedSnapshot.Builder
indices(java.lang.String value, java.lang.String... values)
Required - API name:indices
MountedSnapshot.Builder
indices(java.util.List<java.lang.String> list)
Required - API name:indices
protected MountedSnapshot.Builder
self()
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 co.elastic.clients.util.WithJsonObjectBuilderBase
withJson
Methods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
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
Adds all elements of
list
toindices
. -
indices
Required - API name:indices
Adds 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
-
self
- Specified by:
self
in classWithJsonObjectBuilderBase<MountedSnapshot.Builder>
-
build
Builds aMountedSnapshot
.- Specified by:
build
in interfaceObjectBuilder<MountedSnapshot>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.
-