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

Container for request parameters to UpgradeElasticsearchDomain * operation.

See Also:

AWS * API Reference

*/ class UpgradeElasticsearchDomainRequest : public ElasticsearchServiceRequest { public: AWS_ELASTICSEARCHSERVICE_API UpgradeElasticsearchDomainRequest(); // 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 "UpgradeElasticsearchDomain"; } AWS_ELASTICSEARCHSERVICE_API Aws::String SerializePayload() const override; inline const Aws::String& GetDomainName() const{ return m_domainName; } inline bool DomainNameHasBeenSet() const { return m_domainNameHasBeenSet; } inline void SetDomainName(const Aws::String& value) { m_domainNameHasBeenSet = true; m_domainName = value; } inline void SetDomainName(Aws::String&& value) { m_domainNameHasBeenSet = true; m_domainName = std::move(value); } inline void SetDomainName(const char* value) { m_domainNameHasBeenSet = true; m_domainName.assign(value); } inline UpgradeElasticsearchDomainRequest& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} inline UpgradeElasticsearchDomainRequest& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} inline UpgradeElasticsearchDomainRequest& WithDomainName(const char* value) { SetDomainName(value); return *this;} /** *

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

The version of Elasticsearch that you intend to upgrade the domain to.

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

This flag, when set to True, indicates that an Upgrade Eligibility Check * needs to be performed. This will not actually perform the Upgrade.

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

This flag, when set to True, indicates that an Upgrade Eligibility Check * needs to be performed. This will not actually perform the Upgrade.

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

This flag, when set to True, indicates that an Upgrade Eligibility Check * needs to be performed. This will not actually perform the Upgrade.

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

This flag, when set to True, indicates that an Upgrade Eligibility Check * needs to be performed. This will not actually perform the Upgrade.

*/ inline UpgradeElasticsearchDomainRequest& WithPerformCheckOnly(bool value) { SetPerformCheckOnly(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; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws