Class RestoreRequest.Builder
java.lang.Object
co.elastic.clients.util.ObjectBuilderBase
co.elastic.clients.util.WithJsonObjectBuilderBase<RestoreRequest.Builder>
co.elastic.clients.elasticsearch.snapshot.RestoreRequest.Builder
- All Implemented Interfaces:
WithJson<RestoreRequest.Builder>,ObjectBuilder<RestoreRequest>
- Enclosing class:
- RestoreRequest
public static class RestoreRequest.Builder extends WithJsonObjectBuilderBase<RestoreRequest.Builder> implements ObjectBuilder<RestoreRequest>
Builder for
RestoreRequest.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description RestoreRequestbuild()Builds aRestoreRequest.RestoreRequest.BuilderignoreIndexSettings(java.lang.String value, java.lang.String... values)API name:ignore_index_settingsRestoreRequest.BuilderignoreIndexSettings(java.util.List<java.lang.String> list)API name:ignore_index_settingsRestoreRequest.BuilderignoreUnavailable(java.lang.Boolean value)API name:ignore_unavailableRestoreRequest.BuilderincludeAliases(java.lang.Boolean value)API name:include_aliasesRestoreRequest.BuilderincludeGlobalState(java.lang.Boolean value)API name:include_global_stateRestoreRequest.BuilderindexSettings(IndexSettings value)API name:index_settingsRestoreRequest.BuilderindexSettings(java.util.function.Function<IndexSettings.Builder,ObjectBuilder<IndexSettings>> fn)API name:index_settingsRestoreRequest.Builderindices(java.lang.String value, java.lang.String... values)API name:indicesRestoreRequest.Builderindices(java.util.List<java.lang.String> list)API name:indicesRestoreRequest.BuildermasterTimeout(Time value)Explicit operation timeout for connection to master nodeRestoreRequest.BuildermasterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeout for connection to master nodeRestoreRequest.Builderpartial(java.lang.Boolean value)API name:partialRestoreRequest.BuilderrenamePattern(java.lang.String value)API name:rename_patternRestoreRequest.BuilderrenameReplacement(java.lang.String value)API name:rename_replacementRestoreRequest.Builderrepository(java.lang.String value)Required - A repository nameprotected RestoreRequest.Builderself()RestoreRequest.Buildersnapshot(java.lang.String value)Required - A snapshot nameRestoreRequest.BuilderwaitForCompletion(java.lang.Boolean value)Should this request wait until the operation has completed before returningMethods inherited from class co.elastic.clients.util.WithJsonObjectBuilderBase
withJsonMethods inherited from class co.elastic.clients.util.ObjectBuilderBase
_checkSingleUse, _listAdd, _listAddAll, _mapPut, _mapPutAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
ignoreIndexSettings
API name:ignore_index_settingsAdds all elements of
listtoignoreIndexSettings. -
ignoreIndexSettings
public final RestoreRequest.Builder ignoreIndexSettings(java.lang.String value, java.lang.String... values)API name:ignore_index_settingsAdds one or more values to
ignoreIndexSettings. -
includeAliases
API name:include_aliases -
includeGlobalState
API name:include_global_state -
indexSettings
API name:index_settings -
indexSettings
public final RestoreRequest.Builder indexSettings(java.util.function.Function<IndexSettings.Builder,ObjectBuilder<IndexSettings>> fn)API name:index_settings -
indices
API name:indicesAdds all elements of
listtoindices. -
indices
API name:indicesAdds one or more values to
indices. -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
masterTimeout
public final RestoreRequest.Builder masterTimeout(java.util.function.Function<Time.Builder,ObjectBuilder<Time>> fn)Explicit operation timeout for connection to master nodeAPI name:
master_timeout -
partial
API name:partial -
renamePattern
API name:rename_pattern -
renameReplacement
API name:rename_replacement -
repository
Required - A repository nameAPI name:
repository -
snapshot
Required - A snapshot nameAPI name:
snapshot -
waitForCompletion
Should this request wait until the operation has completed before returningAPI name:
wait_for_completion -
self
- Specified by:
selfin classWithJsonObjectBuilderBase<RestoreRequest.Builder>
-
build
Builds aRestoreRequest.- Specified by:
buildin interfaceObjectBuilder<RestoreRequest>- Throws:
java.lang.NullPointerException- if some of the required fields are null.
-