/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace OpenSearchService { namespace Model { /** *

Container for the request parameters to the UpgradeDomain * operation.

See Also:

AWS * API Reference

*/ class UpgradeDomainRequest : public OpenSearchServiceRequest { public: AWS_OPENSEARCHSERVICE_API UpgradeDomainRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpgradeDomain"; } AWS_OPENSEARCHSERVICE_API Aws::String SerializePayload() const override; /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline const Aws::String& GetDomainName() const{ return m_domainName; } /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline UpgradeDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline UpgradeDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} /** *

Name of the OpenSearch Service domain that you want to upgrade.

*/ inline UpgradeDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline const Aws::String& GetTargetVersion() const{ return m_targetVersion; } /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline bool TargetVersionHasBeenSet() const { return m_targetVersionHasBeenSet; } /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline void SetTargetVersion(const Aws::String& value) { m_targetVersionHasBeenSet = true; m_targetVersion = value; } /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline void SetTargetVersion(Aws::String&& value) { m_targetVersionHasBeenSet = true; m_targetVersion = std::move(value); } /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline void SetTargetVersion(const char* value) { m_targetVersionHasBeenSet = true; m_targetVersion.assign(value); } /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline UpgradeDomainRequest& WithTargetVersion(const Aws::String& value) { SetTargetVersion(value); return *this;} /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline UpgradeDomainRequest& WithTargetVersion(Aws::String&& value) { SetTargetVersion(std::move(value)); return *this;} /** *

OpenSearch or Elasticsearch version to which you want to upgrade, in the * format Opensearch_X.Y or Elasticsearch_X.Y.

*/ inline UpgradeDomainRequest& WithTargetVersion(const char* value) { SetTargetVersion(value); return *this;} /** *

When true, indicates that an upgrade eligibility check needs to be performed. * Does not actually perform the upgrade.

*/ inline bool GetPerformCheckOnly() const{ return m_performCheckOnly; } /** *

When true, indicates that an upgrade eligibility check needs to be performed. * Does not actually perform the upgrade.

*/ inline bool PerformCheckOnlyHasBeenSet() const { return m_performCheckOnlyHasBeenSet; } /** *

When true, indicates that an upgrade eligibility check needs to be performed. * Does not actually perform the upgrade.

*/ inline void SetPerformCheckOnly(bool value) { m_performCheckOnlyHasBeenSet = true; m_performCheckOnly = value; } /** *

When true, indicates that an upgrade eligibility check needs to be performed. * Does not actually perform the upgrade.

*/ inline UpgradeDomainRequest& WithPerformCheckOnly(bool value) { SetPerformCheckOnly(value); return *this;} /** *

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.

*/ inline const Aws::Map& GetAdvancedOptions() const{ return m_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.

*/ inline bool AdvancedOptionsHasBeenSet() const { return m_advancedOptionsHasBeenSet; } /** *

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.

*/ inline void SetAdvancedOptions(const Aws::Map& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = value; } /** *

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.

*/ inline void SetAdvancedOptions(Aws::Map&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions = std::move(value); } /** *

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.

*/ inline UpgradeDomainRequest& WithAdvancedOptions(const Aws::Map& value) { SetAdvancedOptions(value); return *this;} /** *

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.

*/ inline UpgradeDomainRequest& WithAdvancedOptions(Aws::Map&& value) { SetAdvancedOptions(std::move(value)); return *this;} /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(const Aws::String& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, const Aws::String& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(const Aws::String& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), std::move(value)); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(const char* key, Aws::String&& value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, std::move(value)); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(Aws::String&& key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(std::move(key), value); return *this; } /** *

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.

*/ inline UpgradeDomainRequest& AddAdvancedOptions(const char* key, const char* value) { m_advancedOptionsHasBeenSet = true; m_advancedOptions.emplace(key, value); return *this; } private: Aws::String m_domainName; bool m_domainNameHasBeenSet = false; Aws::String m_targetVersion; bool m_targetVersionHasBeenSet = false; bool m_performCheckOnly; bool m_performCheckOnlyHasBeenSet = false; Aws::Map m_advancedOptions; bool m_advancedOptionsHasBeenSet = false; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws