AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
GetCompatibleVersionsResult.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/opensearch/OpenSearchService_EXPORTS.h>
10#include <aws/opensearch/model/CompatibleVersionsMap.h>
11
12#include <utility>
13
14namespace Aws {
15template <typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils {
19namespace Json {
20class JsonValue;
21} // namespace Json
22} // namespace Utils
23namespace OpenSearchService {
24namespace Model {
32 public:
33 AWS_OPENSEARCHSERVICE_API GetCompatibleVersionsResult() = default;
36
38
42 inline const Aws::Vector<CompatibleVersionsMap>& GetCompatibleVersions() const { return m_compatibleVersions; }
43 template <typename CompatibleVersionsT = Aws::Vector<CompatibleVersionsMap>>
44 void SetCompatibleVersions(CompatibleVersionsT&& value) {
45 m_compatibleVersionsHasBeenSet = true;
46 m_compatibleVersions = std::forward<CompatibleVersionsT>(value);
47 }
48 template <typename CompatibleVersionsT = Aws::Vector<CompatibleVersionsMap>>
50 SetCompatibleVersions(std::forward<CompatibleVersionsT>(value));
51 return *this;
52 }
53 template <typename CompatibleVersionsT = CompatibleVersionsMap>
54 GetCompatibleVersionsResult& AddCompatibleVersions(CompatibleVersionsT&& value) {
55 m_compatibleVersionsHasBeenSet = true;
56 m_compatibleVersions.emplace_back(std::forward<CompatibleVersionsT>(value));
57 return *this;
58 }
60
62
63 inline const Aws::String& GetRequestId() const { return m_requestId; }
64 template <typename RequestIdT = Aws::String>
65 void SetRequestId(RequestIdT&& value) {
66 m_requestIdHasBeenSet = true;
67 m_requestId = std::forward<RequestIdT>(value);
68 }
69 template <typename RequestIdT = Aws::String>
71 SetRequestId(std::forward<RequestIdT>(value));
72 return *this;
73 }
75 private:
76 Aws::Vector<CompatibleVersionsMap> m_compatibleVersions;
77
78 Aws::String m_requestId;
79 bool m_compatibleVersionsHasBeenSet = false;
80 bool m_requestIdHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace OpenSearchService
85} // namespace Aws
GetCompatibleVersionsResult & WithRequestId(RequestIdT &&value)
const Aws::Vector< CompatibleVersionsMap > & GetCompatibleVersions() const
AWS_OPENSEARCHSERVICE_API GetCompatibleVersionsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_OPENSEARCHSERVICE_API GetCompatibleVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
GetCompatibleVersionsResult & AddCompatibleVersions(CompatibleVersionsT &&value)
GetCompatibleVersionsResult & WithCompatibleVersions(CompatibleVersionsT &&value)
AWS_OPENSEARCHSERVICE_API GetCompatibleVersionsResult()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue