/**
* 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 ElasticsearchService
{
namespace Model
{
/**
* Container for response returned by
* GetCompatibleElasticsearchVersions
operation.
See
* Also:
AWS
* API Reference
*/
class GetCompatibleElasticsearchVersionsResult
{
public:
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult();
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult(const Aws::AmazonWebServiceResult& result);
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult& operator=(const Aws::AmazonWebServiceResult& result);
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline const Aws::Vector& GetCompatibleElasticsearchVersions() const{ return m_compatibleElasticsearchVersions; }
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline void SetCompatibleElasticsearchVersions(const Aws::Vector& value) { m_compatibleElasticsearchVersions = value; }
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline void SetCompatibleElasticsearchVersions(Aws::Vector&& value) { m_compatibleElasticsearchVersions = std::move(value); }
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline GetCompatibleElasticsearchVersionsResult& WithCompatibleElasticsearchVersions(const Aws::Vector& value) { SetCompatibleElasticsearchVersions(value); return *this;}
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline GetCompatibleElasticsearchVersionsResult& WithCompatibleElasticsearchVersions(Aws::Vector&& value) { SetCompatibleElasticsearchVersions(std::move(value)); return *this;}
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline GetCompatibleElasticsearchVersionsResult& AddCompatibleElasticsearchVersions(const CompatibleVersionsMap& value) { m_compatibleElasticsearchVersions.push_back(value); return *this; }
/**
* A map of compatible Elasticsearch versions returned as part of the
* GetCompatibleElasticsearchVersions
operation.
*/
inline GetCompatibleElasticsearchVersionsResult& AddCompatibleElasticsearchVersions(CompatibleVersionsMap&& value) { m_compatibleElasticsearchVersions.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 GetCompatibleElasticsearchVersionsResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
inline GetCompatibleElasticsearchVersionsResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
inline GetCompatibleElasticsearchVersionsResult& WithRequestId(const char* value) { SetRequestId(value); return *this;}
private:
Aws::Vector m_compatibleElasticsearchVersions;
Aws::String m_requestId;
};
} // namespace Model
} // namespace ElasticsearchService
} // namespace Aws