Class CreateSnapshotRequest.Builder
- All Implemented Interfaces:
- WithJson<CreateSnapshotRequest.Builder>,- ObjectBuilder<CreateSnapshotRequest>
- Enclosing class:
- CreateSnapshotRequest
CreateSnapshotRequest.- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.WithJsonObjectBuilderBasewithJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAll
- 
Constructor Details- 
Builderpublic Builder()
 
- 
- 
Method Details- 
expandWildcardsDetermines 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.
- 
expandWildcardspublic 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.
- 
featureStatesThe 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.
- 
featureStatesThe 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.
- 
includeGlobalStateIftrue, 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
- 
indicesA 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.
- 
indicesA 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.
- 
masterTimeoutThe 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
- 
masterTimeoutpublic 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
- 
metadataArbitrary 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.
- 
metadataArbitrary 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.
- 
partialIftrue, 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
- 
repositoryRequired - The name of the repository for the snapshot.API name: repository
- 
snapshotRequired - The name of the snapshot. It supportes date math. It must be unique in the repository.API name: snapshot
- 
waitForCompletionIftrue, 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 class- RequestBase.AbstractBuilder<CreateSnapshotRequest.Builder>
 
- 
buildBuilds aCreateSnapshotRequest.- Specified by:
- buildin interface- ObjectBuilder<CreateSnapshotRequest>
- Throws:
- NullPointerException- if some of the required fields are null.
 
 
-