AWS SDK for C++

AWS SDK for C++ Version 1.11.759

Loading...
Searching...
No Matches
GetCompatibleElasticsearchVersionsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/es/ElasticsearchService_EXPORTS.h>
11#include <aws/es/model/CompatibleVersionsMap.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace ElasticsearchService {
25namespace Model {
34 public:
35 AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult() = default;
36 AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult(
40
42
46 inline const Aws::Vector<CompatibleVersionsMap>& GetCompatibleElasticsearchVersions() const { return m_compatibleElasticsearchVersions; }
47 template <typename CompatibleElasticsearchVersionsT = Aws::Vector<CompatibleVersionsMap>>
48 void SetCompatibleElasticsearchVersions(CompatibleElasticsearchVersionsT&& value) {
49 m_compatibleElasticsearchVersionsHasBeenSet = true;
50 m_compatibleElasticsearchVersions = std::forward<CompatibleElasticsearchVersionsT>(value);
51 }
52 template <typename CompatibleElasticsearchVersionsT = Aws::Vector<CompatibleVersionsMap>>
54 SetCompatibleElasticsearchVersions(std::forward<CompatibleElasticsearchVersionsT>(value));
55 return *this;
56 }
57 template <typename CompatibleElasticsearchVersionsT = CompatibleVersionsMap>
59 m_compatibleElasticsearchVersionsHasBeenSet = true;
60 m_compatibleElasticsearchVersions.emplace_back(std::forward<CompatibleElasticsearchVersionsT>(value));
61 return *this;
62 }
64
66
67 inline const Aws::String& GetRequestId() const { return m_requestId; }
68 template <typename RequestIdT = Aws::String>
69 void SetRequestId(RequestIdT&& value) {
70 m_requestIdHasBeenSet = true;
71 m_requestId = std::forward<RequestIdT>(value);
72 }
73 template <typename RequestIdT = Aws::String>
75 SetRequestId(std::forward<RequestIdT>(value));
76 return *this;
77 }
79 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
80
81 private:
82 Aws::Vector<CompatibleVersionsMap> m_compatibleElasticsearchVersions;
83
84 Aws::String m_requestId;
85 Aws::Http::HttpResponseCode m_HttpResponseCode;
86 bool m_compatibleElasticsearchVersionsHasBeenSet = false;
87 bool m_requestIdHasBeenSet = false;
88};
89
90} // namespace Model
91} // namespace ElasticsearchService
92} // namespace Aws
GetCompatibleElasticsearchVersionsResult & WithCompatibleElasticsearchVersions(CompatibleElasticsearchVersionsT &&value)
GetCompatibleElasticsearchVersionsResult & AddCompatibleElasticsearchVersions(CompatibleElasticsearchVersionsT &&value)
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult()=default
AWS_ELASTICSEARCHSERVICE_API GetCompatibleElasticsearchVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue