Interface UpgradeDomainRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<UpgradeDomainRequest.Builder,,UpgradeDomainRequest> OpenSearchRequest.Builder,SdkBuilder<UpgradeDomainRequest.Builder,,UpgradeDomainRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
UpgradeDomainRequest
-
Method Summary
Modifier and TypeMethodDescriptionadvancedOptions(Map<String, String> advancedOptions) Only supports theoverride_main_response_versionparameter and not other advanced options.default UpgradeDomainRequest.BuilderdeploymentStrategyOptions(Consumer<DeploymentStrategyOverrideOptions.Builder> deploymentStrategyOptions) Overrides the deployment strategy for this upgrade.deploymentStrategyOptions(DeploymentStrategyOverrideOptions deploymentStrategyOptions) Overrides the deployment strategy for this upgrade.domainName(String domainName) Name of the OpenSearch Service domain that you want to upgrade.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.performCheckOnly(Boolean performCheckOnly) When true, indicates that an upgrade eligibility check needs to be performed.targetVersion(String targetVersion) OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or Elasticsearch_X.Y.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opensearch.model.OpenSearchRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
domainName
Name of the OpenSearch Service domain that you want to upgrade.
- Parameters:
domainName- Name of the OpenSearch Service domain that you want to upgrade.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
targetVersion
OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or Elasticsearch_X.Y.
- Parameters:
targetVersion- OpenSearch or Elasticsearch version to which you want to upgrade, in the format Opensearch_X.Y or Elasticsearch_X.Y.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
performCheckOnly
When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the upgrade.
- Parameters:
performCheckOnly- When true, indicates that an upgrade eligibility check needs to be performed. Does not actually perform the upgrade.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
advancedOptions
Only supports the
override_main_response_versionparameter and not other advanced options. You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.- Parameters:
advancedOptions- Only supports theoverride_main_response_versionparameter and not other advanced options. You can only include this option when upgrading to an OpenSearch version. Specifies whether the domain reports its version as 7.10 so that it continues to work with Elasticsearch OSS clients and plugins.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentStrategyOptions
UpgradeDomainRequest.Builder deploymentStrategyOptions(DeploymentStrategyOverrideOptions deploymentStrategyOptions) Overrides the deployment strategy for this upgrade. To run a cloned blue/green upgrade, set
DeploymentStrategytoClonedBlueGreen.- Parameters:
deploymentStrategyOptions- Overrides the deployment strategy for this upgrade. To run a cloned blue/green upgrade, setDeploymentStrategytoClonedBlueGreen.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
deploymentStrategyOptions
default UpgradeDomainRequest.Builder deploymentStrategyOptions(Consumer<DeploymentStrategyOverrideOptions.Builder> deploymentStrategyOptions) Overrides the deployment strategy for this upgrade. To run a cloned blue/green upgrade, set
This is a convenience method that creates an instance of theDeploymentStrategytoClonedBlueGreen.DeploymentStrategyOverrideOptions.Builderavoiding the need to create one manually viaDeploymentStrategyOverrideOptions.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed todeploymentStrategyOptions(DeploymentStrategyOverrideOptions).- Parameters:
deploymentStrategyOptions- a consumer that will call methods onDeploymentStrategyOverrideOptions.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
overrideConfiguration
UpgradeDomainRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
UpgradeDomainRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-