/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace ElasticsearchService { namespace Model { /** *

Container for response returned by UpgradeElasticsearchDomain * operation.

See Also:

AWS * API Reference

*/ class AWS_ELASTICSEARCHSERVICE_API UpgradeElasticsearchDomainResult { public: UpgradeElasticsearchDomainResult(); UpgradeElasticsearchDomainResult(const Aws::AmazonWebServiceResult& result); UpgradeElasticsearchDomainResult& operator=(const Aws::AmazonWebServiceResult& result); inline const Aws::String& GetDomainName() const{ return m_domainName; } inline void SetDomainName(const Aws::String& value) { m_domainName = value; } inline void SetDomainName(Aws::String&& value) { m_domainName = std::move(value); } inline void SetDomainName(const char* value) { m_domainName.assign(value); } inline UpgradeElasticsearchDomainResult& WithDomainName(const Aws::String& value) { SetDomainName(value); return *this;} inline UpgradeElasticsearchDomainResult& WithDomainName(Aws::String&& value) { SetDomainName(std::move(value)); return *this;} inline UpgradeElasticsearchDomainResult& 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 void SetTargetVersion(const Aws::String& value) { m_targetVersion = value; } /** *

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

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

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

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

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

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

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

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

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

*/ inline UpgradeElasticsearchDomainResult& 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 void SetPerformCheckOnly(bool value) { 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 UpgradeElasticsearchDomainResult& WithPerformCheckOnly(bool value) { SetPerformCheckOnly(value); return *this;} private: Aws::String m_domainName; Aws::String m_targetVersion; bool m_performCheckOnly; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws