Class CreateSnapshotRequest.Builder
- All Implemented Interfaces:
WithJson<CreateSnapshotRequest.Builder>,ObjectBuilder<CreateSnapshotRequest>
- Enclosing class:
- CreateSnapshotRequest
CreateSnapshotRequest.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds aCreateSnapshotRequest.expandWildcards(ExpandWildcard value, ExpandWildcard... values) Determines how wildcard patterns in theindicesparameter match data streams and indices.expandWildcards(List<ExpandWildcard> list) Determines how wildcard patterns in theindicesparameter match data streams and indices.featureStates(String value, String... values) The feature states to include in the snapshot.featureStates(List<String> list) The feature states to include in the snapshot.ignoreUnavailable(Boolean value) Iftrue, the request ignores data streams and indices inindicesthat are missing or closed.includeGlobalState(Boolean value) Iftrue, the current cluster state is included in the snapshot.A comma-separated list of data streams and indices to include in the snapshot.A comma-separated list of data streams and indices to include in the snapshot.masterTimeout(Time value) The period to wait for a connection to the master node.The period to wait for a connection to the master node.Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.Iftrue, it enables you to restore a partial snapshot of indices with unavailable shards.repository(String value) Required - The name of the repository for the snapshot.protected CreateSnapshotRequest.Builderself()Required - The name of the snapshot.waitForCompletion(Boolean value) Iftrue, the request returns a response when the snapshot is complete.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
-
expandWildcards
Determines how wildcard patterns in theindicesparameter match data streams and indices. It supports comma-separated values such asopen,hidden.API name:
expand_wildcardsAdds all elements of
listtoexpandWildcards. -
expandWildcards
public final CreateSnapshotRequest.Builder expandWildcards(ExpandWildcard value, ExpandWildcard... values) Determines how wildcard patterns in theindicesparameter match data streams and indices. It supports comma-separated values such asopen,hidden.API name:
expand_wildcardsAdds one or more values to
expandWildcards. -
featureStates
The feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API.If
include_global_stateistrue, all current feature states are included by default. Ifinclude_global_stateisfalse, no feature states are included by default.Note that specifying an empty array will result in the default behavior. To exclude all feature states, regardless of the
include_global_statevalue, specify an array with only the valuenone(["none"]).API name:
feature_statesAdds all elements of
listtofeatureStates. -
featureStates
The feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API.If
include_global_stateistrue, all current feature states are included by default. Ifinclude_global_stateisfalse, no feature states are included by default.Note that specifying an empty array will result in the default behavior. To exclude all feature states, regardless of the
include_global_statevalue, specify an array with only the valuenone(["none"]).API name:
feature_statesAdds one or more values to
featureStates. -
includeGlobalState
Iftrue, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indices, such as Watches and task records (configurable viafeature_states).API name:
include_global_state -
indices
A comma-separated list of data streams and indices to include in the snapshot. It supports a multi-target syntax. The default is an empty array ([]), which includes all regular data streams and regular indices. To exclude all data streams and indices, use-*.You can't use this parameter to include or exclude system indices or system data streams from a snapshot. Use
feature_statesinstead.API name:
indicesAdds all elements of
listtoindices. -
indices
A comma-separated list of data streams and indices to include in the snapshot. It supports a multi-target syntax. The default is an empty array ([]), which includes all regular data streams and regular indices. To exclude all data streams and indices, use-*.You can't use this parameter to include or exclude system indices or system data streams from a snapshot. Use
feature_statesinstead.API name:
indicesAdds one or more values to
indices. -
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
masterTimeout
public final CreateSnapshotRequest.Builder masterTimeout(Function<Time.Builder, ObjectBuilder<Time>> fn) The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout -
metadata
Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. It can have any contents but it must be less than 1024 bytes. This information is not automatically generated by Elasticsearch.API name:
metadataAdds all entries of
maptometadata. -
metadata
Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. It can have any contents but it must be less than 1024 bytes. This information is not automatically generated by Elasticsearch.API name:
metadataAdds an entry to
metadata. -
partial
Iftrue, it enables you to restore a partial snapshot of indices with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty.If
false, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.API name:
partial -
repository
Required - The name of the repository for the snapshot.API name:
repository -
snapshot
Required - The name of the snapshot. It supportes date math. It must be unique in the repository.API name:
snapshot -
waitForCompletion
Iftrue, the request returns a response when the snapshot is complete. Iffalse, the request returns a response when the snapshot initializes.API name:
wait_for_completion -
self
- Specified by:
selfin classRequestBase.AbstractBuilder<CreateSnapshotRequest.Builder>
-
build
Builds aCreateSnapshotRequest.- Specified by:
buildin interfaceObjectBuilder<CreateSnapshotRequest>- Throws:
NullPointerException- if some of the required fields are null.
-