Class Status.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<Status.Builder>
co.elastic.clients.elasticsearch.snapshot.Status.Builder
- All Implemented Interfaces:
WithJson<Status.Builder>,ObjectBuilder<Status>
- Enclosing class:
- Status
public static class Status.Builder
extends WithJsonObjectBuilderBase<Status.Builder>
implements ObjectBuilder<Status>
Builder for
Status.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aStatus.final Status.BuilderincludeGlobalState(boolean value) Required - Indicates whether the current cluster state is included in the snapshot.final Status.Builderindices(String key, SnapshotIndexStats value) Required - API name:indicesfinal Status.BuilderRequired - API name:indicesfinal Status.Builderindices(Map<String, SnapshotIndexStats> map) Required - API name:indicesfinal Status.Builderrepository(String value) Required - The name of the repository that includes the snapshot.protected Status.Builderself()final Status.BuildershardsStats(ShardsStats value) Required - Statistics for the shards in the snapshot.final Status.BuilderRequired - Statistics for the shards in the snapshot.final Status.BuilderRequired - The name of the snapshot.final Status.BuilderRequired - The current snapshot state:FAILED: The snapshot finished with an error and failed to store any data.STARTED: The snapshot is currently running.SUCCESS: The snapshot completed.final Status.Builderstats(SnapshotStats value) Required - Details about the number (file_count) and size (size_in_bytes) of files included in the snapshot.final Status.BuilderRequired - Details about the number (file_count) and size (size_in_bytes) of files included in the snapshot.final Status.BuilderRequired - The universally unique identifier (UUID) for the snapshot.Methods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
includeGlobalState
Required - Indicates whether the current cluster state is included in the snapshot.API name:
include_global_state -
indices
Required - API name:indicesAdds all entries of
maptoindices. -
indices
Required - API name:indicesAdds an entry to
indices. -
indices
public final Status.Builder indices(String key, Function<SnapshotIndexStats.Builder, ObjectBuilder<SnapshotIndexStats>> fn) Required - API name:indicesAdds an entry to
indicesusing a builder lambda. -
repository
Required - The name of the repository that includes the snapshot.API name:
repository -
shardsStats
Required - Statistics for the shards in the snapshot.API name:
shards_stats -
shardsStats
public final Status.Builder shardsStats(Function<ShardsStats.Builder, ObjectBuilder<ShardsStats>> fn) Required - Statistics for the shards in the snapshot.API name:
shards_stats -
snapshot
Required - The name of the snapshot.API name:
snapshot -
state
Required - The current snapshot state:FAILED: The snapshot finished with an error and failed to store any data.STARTED: The snapshot is currently running.SUCCESS: The snapshot completed.
API name:
state -
stats
Required - Details about the number (file_count) and size (size_in_bytes) of files included in the snapshot.API name:
stats -
stats
Required - Details about the number (file_count) and size (size_in_bytes) of files included in the snapshot.API name:
stats -
uuid
Required - The universally unique identifier (UUID) for the snapshot.API name:
uuid -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<Status.Builder>
-
build
Builds aStatus.- Specified by:
buildin interfaceObjectBuilder<Status>- Throws:
NullPointerException- if some of the required fields are null.
-