/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Container for response returned by UpgradeElasticsearchDomain
*
operation. See Also:
AWS
* API Reference
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;} inline const ChangeProgressDetails& GetChangeProgressDetails() const{ return m_changeProgressDetails; } inline void SetChangeProgressDetails(const ChangeProgressDetails& value) { m_changeProgressDetails = value; } inline void SetChangeProgressDetails(ChangeProgressDetails&& value) { m_changeProgressDetails = std::move(value); } inline UpgradeElasticsearchDomainResult& WithChangeProgressDetails(const ChangeProgressDetails& value) { SetChangeProgressDetails(value); return *this;} inline UpgradeElasticsearchDomainResult& WithChangeProgressDetails(ChangeProgressDetails&& value) { SetChangeProgressDetails(std::move(value)); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline UpgradeElasticsearchDomainResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpgradeElasticsearchDomainResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpgradeElasticsearchDomainResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_domainName; Aws::String m_targetVersion; bool m_performCheckOnly; ChangeProgressDetails m_changeProgressDetails; Aws::String m_requestId; }; } // namespace Model } // namespace ElasticsearchService } // namespace Aws