Interface UpgradeDomainRequest.Builder

  • Method Details

    • domainName

      UpgradeDomainRequest.Builder domainName(String 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

      UpgradeDomainRequest.Builder targetVersion(String 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

      UpgradeDomainRequest.Builder performCheckOnly(Boolean 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

      UpgradeDomainRequest.Builder advancedOptions(Map<String,String> advancedOptions)

      Only supports the override_main_response_version parameter 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 the override_main_response_version parameter 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 DeploymentStrategy to ClonedBlueGreen.

      Parameters:
      deploymentStrategyOptions - Overrides the deployment strategy for this upgrade. To run a cloned blue/green upgrade, set DeploymentStrategy to ClonedBlueGreen.
      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 DeploymentStrategy to ClonedBlueGreen.

      This is a convenience method that creates an instance of the DeploymentStrategyOverrideOptions.Builder avoiding the need to create one manually via DeploymentStrategyOverrideOptions.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to deploymentStrategyOptions(DeploymentStrategyOverrideOptions).

      Parameters:
      deploymentStrategyOptions - a consumer that will call methods on DeploymentStrategyOverrideOptions.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.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      overrideConfiguration - The override configuration.
      Returns:
      This object for method chaining.
    • overrideConfiguration

      Description copied from interface: AwsRequest.Builder
      Add an optional request override configuration.
      Specified by:
      overrideConfiguration in interface AwsRequest.Builder
      Parameters:
      builderConsumer - A Consumer to which an empty AwsRequestOverrideConfiguration.Builder will be given.
      Returns:
      This object for method chaining.