AWS SDK for C++

AWS SDK for C++ Version 1.11.760

Loading...
Searching...
No Matches
CancelDomainConfigChangeResult.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/CancelledChangeProperty.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 {
33 public:
34 AWS_ELASTICSEARCHSERVICE_API CancelDomainConfigChangeResult() = default;
36 AWS_ELASTICSEARCHSERVICE_API CancelDomainConfigChangeResult& operator=(
38
40
44 inline bool GetDryRun() const { return m_dryRun; }
45 inline void SetDryRun(bool value) {
46 m_dryRunHasBeenSet = true;
47 m_dryRun = value;
48 }
50 SetDryRun(value);
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetCancelledChangeIds() const { return m_cancelledChangeIds; }
60 template <typename CancelledChangeIdsT = Aws::Vector<Aws::String>>
61 void SetCancelledChangeIds(CancelledChangeIdsT&& value) {
62 m_cancelledChangeIdsHasBeenSet = true;
63 m_cancelledChangeIds = std::forward<CancelledChangeIdsT>(value);
64 }
65 template <typename CancelledChangeIdsT = Aws::Vector<Aws::String>>
67 SetCancelledChangeIds(std::forward<CancelledChangeIdsT>(value));
68 return *this;
69 }
70 template <typename CancelledChangeIdsT = Aws::String>
72 m_cancelledChangeIdsHasBeenSet = true;
73 m_cancelledChangeIds.emplace_back(std::forward<CancelledChangeIdsT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Vector<CancelledChangeProperty>& GetCancelledChangeProperties() const { return m_cancelledChangeProperties; }
83 template <typename CancelledChangePropertiesT = Aws::Vector<CancelledChangeProperty>>
84 void SetCancelledChangeProperties(CancelledChangePropertiesT&& value) {
85 m_cancelledChangePropertiesHasBeenSet = true;
86 m_cancelledChangeProperties = std::forward<CancelledChangePropertiesT>(value);
87 }
88 template <typename CancelledChangePropertiesT = Aws::Vector<CancelledChangeProperty>>
90 SetCancelledChangeProperties(std::forward<CancelledChangePropertiesT>(value));
91 return *this;
92 }
93 template <typename CancelledChangePropertiesT = CancelledChangeProperty>
94 CancelDomainConfigChangeResult& AddCancelledChangeProperties(CancelledChangePropertiesT&& value) {
95 m_cancelledChangePropertiesHasBeenSet = true;
96 m_cancelledChangeProperties.emplace_back(std::forward<CancelledChangePropertiesT>(value));
97 return *this;
98 }
100
102
103 inline const Aws::String& GetRequestId() const { return m_requestId; }
104 template <typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) {
106 m_requestIdHasBeenSet = true;
107 m_requestId = std::forward<RequestIdT>(value);
108 }
109 template <typename RequestIdT = Aws::String>
111 SetRequestId(std::forward<RequestIdT>(value));
112 return *this;
113 }
115 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
116
117 private:
118 bool m_dryRun{false};
119
120 Aws::Vector<Aws::String> m_cancelledChangeIds;
121
122 Aws::Vector<CancelledChangeProperty> m_cancelledChangeProperties;
123
124 Aws::String m_requestId;
125 Aws::Http::HttpResponseCode m_HttpResponseCode;
126 bool m_dryRunHasBeenSet = false;
127 bool m_cancelledChangeIdsHasBeenSet = false;
128 bool m_cancelledChangePropertiesHasBeenSet = false;
129 bool m_requestIdHasBeenSet = false;
130};
131
132} // namespace Model
133} // namespace ElasticsearchService
134} // namespace Aws
AWS_ELASTICSEARCHSERVICE_API CancelDomainConfigChangeResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
CancelDomainConfigChangeResult & WithCancelledChangeIds(CancelledChangeIdsT &&value)
AWS_ELASTICSEARCHSERVICE_API CancelDomainConfigChangeResult()=default
CancelDomainConfigChangeResult & WithCancelledChangeProperties(CancelledChangePropertiesT &&value)
AWS_ELASTICSEARCHSERVICE_API CancelDomainConfigChangeResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< CancelledChangeProperty > & GetCancelledChangeProperties() const
CancelDomainConfigChangeResult & AddCancelledChangeProperties(CancelledChangePropertiesT &&value)
CancelDomainConfigChangeResult & WithRequestId(RequestIdT &&value)
CancelDomainConfigChangeResult & AddCancelledChangeIds(CancelledChangeIdsT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue