Class Configuration.Builder
java.lang.Object
co.elastic.clients.elasticsearch.slm.Configuration.Builder
- All Implemented Interfaces:
ObjectBuilder<Configuration>
- Enclosing class:
- Configuration
public static class Configuration.Builder extends java.lang.Object implements ObjectBuilder<Configuration>
Builder for
Configuration
.-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Configuration.Builder
addFeatureStates(java.lang.String value)
Add a value tofeatureStates(List)
, creating the list if needed.Configuration.Builder
addIndices(java.lang.String value)
Add a value toindices(List)
, creating the list if needed.Configuration
build()
Builds aConfiguration
.Configuration.Builder
featureStates(java.lang.String... value)
A list of feature states to be included in this snapshot.Configuration.Builder
featureStates(java.util.List<java.lang.String> value)
A list of feature states to be included in this snapshot.Configuration.Builder
ignoreUnavailable(java.lang.Boolean value)
If false, the snapshot fails if any data stream or index in indices is missing or closed.Configuration.Builder
includeGlobalState(java.lang.Boolean value)
If true, the current global state is included in the snapshot.Configuration.Builder
indices(java.lang.String... value)
Required - A comma-separated list of data streams and indices to include in the snapshot.Configuration.Builder
indices(java.util.List<java.lang.String> value)
Required - A comma-separated list of data streams and indices to include in the snapshot.Configuration.Builder
metadata(java.util.Map<java.lang.String,JsonData> value)
Attaches arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.Configuration.Builder
partial(java.lang.Boolean value)
If false, the entire snapshot will fail if one or more indices included in the snapshot do not have all primary shards available.Configuration.Builder
putMetadata(java.lang.String key, JsonData value)
Add a key/value tometadata(Map)
, creating the map if needed.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
-
indices
Required - A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported. By default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters.API name:
indices
-
indices
Required - A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported. By default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters.API name:
indices
-
addIndices
Add a value toindices(List)
, creating the list if needed. -
includeGlobalState
If true, the current global state is included in the snapshot.API name:
include_global_state
-
featureStates
A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API. Each feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false.API name:
feature_states
-
featureStates
A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API. Each feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false.API name:
feature_states
-
addFeatureStates
Add a value tofeatureStates(List)
, creating the list if needed. -
metadata
Attaches arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. Metadata must be less than 1024 bytes.API name:
metadata
-
putMetadata
Add a key/value tometadata(Map)
, creating the map if needed. -
partial
If false, the entire snapshot will fail if one or more indices included in the snapshot do not have all primary shards available.API name:
partial
-
build
Builds aConfiguration
.- Specified by:
build
in interfaceObjectBuilder<Configuration>
- Throws:
java.lang.NullPointerException
- if some of the required fields are null.