/** * 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 the GetCompatibleVersions * operation.

See Also:

AWS * API Reference

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

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline const Aws::Vector& GetCompatibleVersions() const{ return m_compatibleVersions; } /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline void SetCompatibleVersions(const Aws::Vector& value) { m_compatibleVersions = value; } /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline void SetCompatibleVersions(Aws::Vector&& value) { m_compatibleVersions = std::move(value); } /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline GetCompatibleVersionsResult& WithCompatibleVersions(const Aws::Vector& value) { SetCompatibleVersions(value); return *this;} /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline GetCompatibleVersionsResult& WithCompatibleVersions(Aws::Vector&& value) { SetCompatibleVersions(std::move(value)); return *this;} /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline GetCompatibleVersionsResult& AddCompatibleVersions(const CompatibleVersionsMap& value) { m_compatibleVersions.push_back(value); return *this; } /** *

A map of OpenSearch or Elasticsearch versions and the versions you can * upgrade them to.

*/ inline GetCompatibleVersionsResult& AddCompatibleVersions(CompatibleVersionsMap&& value) { m_compatibleVersions.push_back(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 GetCompatibleVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetCompatibleVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetCompatibleVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::Vector m_compatibleVersions; Aws::String m_requestId; }; } // namespace Model } // namespace OpenSearchService } // namespace Aws