/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace OpenSearchService { namespace Model { /** *

Container for the response returned by UpgradeDomain * operation.

See Also:

AWS * API Reference

*/ class UpgradeDomainResult { public: AWS_OPENSEARCHSERVICE_API UpgradeDomainResult(); AWS_OPENSEARCHSERVICE_API UpgradeDomainResult(const Aws::AmazonWebServiceResult& result); AWS_OPENSEARCHSERVICE_API UpgradeDomainResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The unique identifier of the domain upgrade.

*/ inline const Aws::String& GetUpgradeId() const{ return m_upgradeId; } /** *

The unique identifier of the domain upgrade.

*/ inline void SetUpgradeId(const Aws::String& value) { m_upgradeId = value; } /** *

The unique identifier of the domain upgrade.

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

The unique identifier of the domain upgrade.

*/ inline void SetUpgradeId(const char* value) { m_upgradeId.assign(value); } /** *

The unique identifier of the domain upgrade.

*/ inline UpgradeDomainResult& WithUpgradeId(const Aws::String& value) { SetUpgradeId(value); return *this;} /** *

The unique identifier of the domain upgrade.

*/ inline UpgradeDomainResult& WithUpgradeId(Aws::String&& value) { SetUpgradeId(std::move(value)); return *this;} /** *

The unique identifier of the domain upgrade.

*/ inline UpgradeDomainResult& WithUpgradeId(const char* value) { SetUpgradeId(value); return *this;} /** *

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

The name of the domain that was upgraded.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

OpenSearch or Elasticsearch version that the domain was upgraded to.

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

When true, indicates that an upgrade eligibility check was performed.

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

When true, indicates that an upgrade eligibility check was performed.

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

When true, indicates that an upgrade eligibility check was performed.

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

The advanced options configuration for the domain.

*/ inline const Aws::Map& GetAdvancedOptions() const{ return m_advancedOptions; } /** *

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

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

The advanced options configuration for the domain.

*/ inline UpgradeDomainResult& AddAdvancedOptions(const char* key, const char* value) { m_advancedOptions.emplace(key, value); return *this; } /** *

Container for information about a configuration change happening on a * domain.

*/ inline const ChangeProgressDetails& GetChangeProgressDetails() const{ return m_changeProgressDetails; } /** *

Container for information about a configuration change happening on a * domain.

*/ inline void SetChangeProgressDetails(const ChangeProgressDetails& value) { m_changeProgressDetails = value; } /** *

Container for information about a configuration change happening on a * domain.

*/ inline void SetChangeProgressDetails(ChangeProgressDetails&& value) { m_changeProgressDetails = std::move(value); } /** *

Container for information about a configuration change happening on a * domain.

*/ inline UpgradeDomainResult& WithChangeProgressDetails(const ChangeProgressDetails& value) { SetChangeProgressDetails(value); return *this;} /** *

Container for information about a configuration change happening on a * domain.

*/ inline UpgradeDomainResult& 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 UpgradeDomainResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline UpgradeDomainResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline UpgradeDomainResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_upgradeId; Aws::String m_domainName; Aws::String m_targetVersion; bool m_performCheckOnly; Aws::Map m_advancedOptions; ChangeProgressDetails m_changeProgressDetails; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws