AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
UpdateRuleResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/DateTime.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/DataZone_EXPORTS.h>
11#include <aws/datazone/model/RuleAction.h>
12#include <aws/datazone/model/RuleDetail.h>
13#include <aws/datazone/model/RuleScope.h>
14#include <aws/datazone/model/RuleTarget.h>
15#include <aws/datazone/model/RuleType.h>
16
17#include <utility>
18
19namespace Aws {
20template <typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils {
24namespace Json {
25class JsonValue;
26} // namespace Json
27} // namespace Utils
28namespace DataZone {
29namespace Model {
31 public:
32 AWS_DATAZONE_API UpdateRuleResult() = default;
35
37
40 inline const Aws::String& GetIdentifier() const { return m_identifier; }
41 template <typename IdentifierT = Aws::String>
42 void SetIdentifier(IdentifierT&& value) {
43 m_identifierHasBeenSet = true;
44 m_identifier = std::forward<IdentifierT>(value);
45 }
46 template <typename IdentifierT = Aws::String>
47 UpdateRuleResult& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRevision() const { return m_revision; }
58 template <typename RevisionT = Aws::String>
59 void SetRevision(RevisionT&& value) {
60 m_revisionHasBeenSet = true;
61 m_revision = std::forward<RevisionT>(value);
62 }
63 template <typename RevisionT = Aws::String>
64 UpdateRuleResult& WithRevision(RevisionT&& value) {
65 SetRevision(std::forward<RevisionT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetName() const { return m_name; }
75 template <typename NameT = Aws::String>
76 void SetName(NameT&& value) {
77 m_nameHasBeenSet = true;
78 m_name = std::forward<NameT>(value);
79 }
80 template <typename NameT = Aws::String>
81 UpdateRuleResult& WithName(NameT&& value) {
82 SetName(std::forward<NameT>(value));
83 return *this;
84 }
86
88
91 inline RuleType GetRuleType() const { return m_ruleType; }
92 inline void SetRuleType(RuleType value) {
93 m_ruleTypeHasBeenSet = true;
94 m_ruleType = value;
95 }
97 SetRuleType(value);
98 return *this;
99 }
101
103
106 inline const RuleTarget& GetTarget() const { return m_target; }
107 template <typename TargetT = RuleTarget>
108 void SetTarget(TargetT&& value) {
109 m_targetHasBeenSet = true;
110 m_target = std::forward<TargetT>(value);
111 }
112 template <typename TargetT = RuleTarget>
113 UpdateRuleResult& WithTarget(TargetT&& value) {
114 SetTarget(std::forward<TargetT>(value));
115 return *this;
116 }
118
120
123 inline RuleAction GetAction() const { return m_action; }
124 inline void SetAction(RuleAction value) {
125 m_actionHasBeenSet = true;
126 m_action = value;
127 }
129 SetAction(value);
130 return *this;
131 }
133
135
138 inline const RuleScope& GetScope() const { return m_scope; }
139 template <typename ScopeT = RuleScope>
140 void SetScope(ScopeT&& value) {
141 m_scopeHasBeenSet = true;
142 m_scope = std::forward<ScopeT>(value);
143 }
144 template <typename ScopeT = RuleScope>
145 UpdateRuleResult& WithScope(ScopeT&& value) {
146 SetScope(std::forward<ScopeT>(value));
147 return *this;
148 }
150
152
155 inline const RuleDetail& GetDetail() const { return m_detail; }
156 template <typename DetailT = RuleDetail>
157 void SetDetail(DetailT&& value) {
158 m_detailHasBeenSet = true;
159 m_detail = std::forward<DetailT>(value);
160 }
161 template <typename DetailT = RuleDetail>
162 UpdateRuleResult& WithDetail(DetailT&& value) {
163 SetDetail(std::forward<DetailT>(value));
164 return *this;
165 }
167
169
172 inline const Aws::String& GetDescription() const { return m_description; }
173 template <typename DescriptionT = Aws::String>
174 void SetDescription(DescriptionT&& value) {
175 m_descriptionHasBeenSet = true;
176 m_description = std::forward<DescriptionT>(value);
177 }
178 template <typename DescriptionT = Aws::String>
179 UpdateRuleResult& WithDescription(DescriptionT&& value) {
180 SetDescription(std::forward<DescriptionT>(value));
181 return *this;
182 }
184
186
189 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
190 template <typename CreatedAtT = Aws::Utils::DateTime>
191 void SetCreatedAt(CreatedAtT&& value) {
192 m_createdAtHasBeenSet = true;
193 m_createdAt = std::forward<CreatedAtT>(value);
194 }
195 template <typename CreatedAtT = Aws::Utils::DateTime>
196 UpdateRuleResult& WithCreatedAt(CreatedAtT&& value) {
197 SetCreatedAt(std::forward<CreatedAtT>(value));
198 return *this;
199 }
201
203
206 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
207 template <typename UpdatedAtT = Aws::Utils::DateTime>
208 void SetUpdatedAt(UpdatedAtT&& value) {
209 m_updatedAtHasBeenSet = true;
210 m_updatedAt = std::forward<UpdatedAtT>(value);
211 }
212 template <typename UpdatedAtT = Aws::Utils::DateTime>
213 UpdateRuleResult& WithUpdatedAt(UpdatedAtT&& value) {
214 SetUpdatedAt(std::forward<UpdatedAtT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
224 template <typename CreatedByT = Aws::String>
225 void SetCreatedBy(CreatedByT&& value) {
226 m_createdByHasBeenSet = true;
227 m_createdBy = std::forward<CreatedByT>(value);
228 }
229 template <typename CreatedByT = Aws::String>
230 UpdateRuleResult& WithCreatedBy(CreatedByT&& value) {
231 SetCreatedBy(std::forward<CreatedByT>(value));
232 return *this;
233 }
235
237
240 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
241 template <typename LastUpdatedByT = Aws::String>
242 void SetLastUpdatedBy(LastUpdatedByT&& value) {
243 m_lastUpdatedByHasBeenSet = true;
244 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
245 }
246 template <typename LastUpdatedByT = Aws::String>
247 UpdateRuleResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
248 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
249 return *this;
250 }
252
254
255 inline const Aws::String& GetRequestId() const { return m_requestId; }
256 template <typename RequestIdT = Aws::String>
257 void SetRequestId(RequestIdT&& value) {
258 m_requestIdHasBeenSet = true;
259 m_requestId = std::forward<RequestIdT>(value);
260 }
261 template <typename RequestIdT = Aws::String>
262 UpdateRuleResult& WithRequestId(RequestIdT&& value) {
263 SetRequestId(std::forward<RequestIdT>(value));
264 return *this;
265 }
267 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
268
269 private:
270 Aws::String m_identifier;
271
272 Aws::String m_revision;
273
274 Aws::String m_name;
275
276 RuleType m_ruleType{RuleType::NOT_SET};
277
278 RuleTarget m_target;
279
281
282 RuleScope m_scope;
283
284 RuleDetail m_detail;
285
286 Aws::String m_description;
287
288 Aws::Utils::DateTime m_createdAt{};
289
290 Aws::Utils::DateTime m_updatedAt{};
291
292 Aws::String m_createdBy;
293
294 Aws::String m_lastUpdatedBy;
295
296 Aws::String m_requestId;
297 Aws::Http::HttpResponseCode m_HttpResponseCode;
298 bool m_identifierHasBeenSet = false;
299 bool m_revisionHasBeenSet = false;
300 bool m_nameHasBeenSet = false;
301 bool m_ruleTypeHasBeenSet = false;
302 bool m_targetHasBeenSet = false;
303 bool m_actionHasBeenSet = false;
304 bool m_scopeHasBeenSet = false;
305 bool m_detailHasBeenSet = false;
306 bool m_descriptionHasBeenSet = false;
307 bool m_createdAtHasBeenSet = false;
308 bool m_updatedAtHasBeenSet = false;
309 bool m_createdByHasBeenSet = false;
310 bool m_lastUpdatedByHasBeenSet = false;
311 bool m_requestIdHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace DataZone
316} // namespace Aws
UpdateRuleResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetCreatedBy() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetRevision() const
AWS_DATAZONE_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetIdentifier() const
UpdateRuleResult & WithAction(RuleAction value)
UpdateRuleResult & WithLastUpdatedBy(LastUpdatedByT &&value)
UpdateRuleResult & WithIdentifier(IdentifierT &&value)
void SetIdentifier(IdentifierT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
UpdateRuleResult & WithRequestId(RequestIdT &&value)
UpdateRuleResult & WithScope(ScopeT &&value)
UpdateRuleResult & WithRevision(RevisionT &&value)
UpdateRuleResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateRuleResult & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
UpdateRuleResult & WithCreatedAt(CreatedAtT &&value)
UpdateRuleResult & WithDetail(DetailT &&value)
UpdateRuleResult & WithRuleType(RuleType value)
const Aws::String & GetName() const
AWS_DATAZONE_API UpdateRuleResult()=default
UpdateRuleResult & WithName(NameT &&value)
const Aws::String & GetLastUpdatedBy() const
UpdateRuleResult & WithTarget(TargetT &&value)
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue