AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
GetRuleResult.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/RuleTargetType.h>
16#include <aws/datazone/model/RuleType.h>
17
18#include <utility>
19
20namespace Aws {
21template <typename RESULT_TYPE>
22class AmazonWebServiceResult;
23
24namespace Utils {
25namespace Json {
26class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataZone {
30namespace Model {
32 public:
33 AWS_DATAZONE_API GetRuleResult() = default;
36
38
41 inline const Aws::String& GetIdentifier() const { return m_identifier; }
42 template <typename IdentifierT = Aws::String>
43 void SetIdentifier(IdentifierT&& value) {
44 m_identifierHasBeenSet = true;
45 m_identifier = std::forward<IdentifierT>(value);
46 }
47 template <typename IdentifierT = Aws::String>
48 GetRuleResult& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetRevision() const { return m_revision; }
59 template <typename RevisionT = Aws::String>
60 void SetRevision(RevisionT&& value) {
61 m_revisionHasBeenSet = true;
62 m_revision = std::forward<RevisionT>(value);
63 }
64 template <typename RevisionT = Aws::String>
65 GetRuleResult& WithRevision(RevisionT&& value) {
66 SetRevision(std::forward<RevisionT>(value));
67 return *this;
68 }
70
72
75 inline const Aws::String& GetName() const { return m_name; }
76 template <typename NameT = Aws::String>
77 void SetName(NameT&& value) {
78 m_nameHasBeenSet = true;
79 m_name = std::forward<NameT>(value);
80 }
81 template <typename NameT = Aws::String>
82 GetRuleResult& WithName(NameT&& value) {
83 SetName(std::forward<NameT>(value));
84 return *this;
85 }
87
89
92 inline RuleType GetRuleType() const { return m_ruleType; }
93 inline void SetRuleType(RuleType value) {
94 m_ruleTypeHasBeenSet = true;
95 m_ruleType = value;
96 }
98 SetRuleType(value);
99 return *this;
100 }
102
104
107 inline const RuleTarget& GetTarget() const { return m_target; }
108 template <typename TargetT = RuleTarget>
109 void SetTarget(TargetT&& value) {
110 m_targetHasBeenSet = true;
111 m_target = std::forward<TargetT>(value);
112 }
113 template <typename TargetT = RuleTarget>
114 GetRuleResult& WithTarget(TargetT&& value) {
115 SetTarget(std::forward<TargetT>(value));
116 return *this;
117 }
119
121
124 inline RuleAction GetAction() const { return m_action; }
125 inline void SetAction(RuleAction value) {
126 m_actionHasBeenSet = true;
127 m_action = value;
128 }
130 SetAction(value);
131 return *this;
132 }
134
136
139 inline const RuleScope& GetScope() const { return m_scope; }
140 template <typename ScopeT = RuleScope>
141 void SetScope(ScopeT&& value) {
142 m_scopeHasBeenSet = true;
143 m_scope = std::forward<ScopeT>(value);
144 }
145 template <typename ScopeT = RuleScope>
146 GetRuleResult& WithScope(ScopeT&& value) {
147 SetScope(std::forward<ScopeT>(value));
148 return *this;
149 }
151
153
156 inline const RuleDetail& GetDetail() const { return m_detail; }
157 template <typename DetailT = RuleDetail>
158 void SetDetail(DetailT&& value) {
159 m_detailHasBeenSet = true;
160 m_detail = std::forward<DetailT>(value);
161 }
162 template <typename DetailT = RuleDetail>
163 GetRuleResult& WithDetail(DetailT&& value) {
164 SetDetail(std::forward<DetailT>(value));
165 return *this;
166 }
168
170
173 inline RuleTargetType GetTargetType() const { return m_targetType; }
174 inline void SetTargetType(RuleTargetType value) {
175 m_targetTypeHasBeenSet = true;
176 m_targetType = value;
177 }
179 SetTargetType(value);
180 return *this;
181 }
183
185
188 inline const Aws::String& GetDescription() const { return m_description; }
189 template <typename DescriptionT = Aws::String>
190 void SetDescription(DescriptionT&& value) {
191 m_descriptionHasBeenSet = true;
192 m_description = std::forward<DescriptionT>(value);
193 }
194 template <typename DescriptionT = Aws::String>
195 GetRuleResult& WithDescription(DescriptionT&& value) {
196 SetDescription(std::forward<DescriptionT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
206 template <typename CreatedAtT = Aws::Utils::DateTime>
207 void SetCreatedAt(CreatedAtT&& value) {
208 m_createdAtHasBeenSet = true;
209 m_createdAt = std::forward<CreatedAtT>(value);
210 }
211 template <typename CreatedAtT = Aws::Utils::DateTime>
212 GetRuleResult& WithCreatedAt(CreatedAtT&& value) {
213 SetCreatedAt(std::forward<CreatedAtT>(value));
214 return *this;
215 }
217
219
222 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
223 template <typename UpdatedAtT = Aws::Utils::DateTime>
224 void SetUpdatedAt(UpdatedAtT&& value) {
225 m_updatedAtHasBeenSet = true;
226 m_updatedAt = std::forward<UpdatedAtT>(value);
227 }
228 template <typename UpdatedAtT = Aws::Utils::DateTime>
229 GetRuleResult& WithUpdatedAt(UpdatedAtT&& value) {
230 SetUpdatedAt(std::forward<UpdatedAtT>(value));
231 return *this;
232 }
234
236
239 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
240 template <typename CreatedByT = Aws::String>
241 void SetCreatedBy(CreatedByT&& value) {
242 m_createdByHasBeenSet = true;
243 m_createdBy = std::forward<CreatedByT>(value);
244 }
245 template <typename CreatedByT = Aws::String>
246 GetRuleResult& WithCreatedBy(CreatedByT&& value) {
247 SetCreatedBy(std::forward<CreatedByT>(value));
248 return *this;
249 }
251
253
256 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
257 template <typename LastUpdatedByT = Aws::String>
258 void SetLastUpdatedBy(LastUpdatedByT&& value) {
259 m_lastUpdatedByHasBeenSet = true;
260 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
261 }
262 template <typename LastUpdatedByT = Aws::String>
263 GetRuleResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
264 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
265 return *this;
266 }
268
270
271 inline const Aws::String& GetRequestId() const { return m_requestId; }
272 template <typename RequestIdT = Aws::String>
273 void SetRequestId(RequestIdT&& value) {
274 m_requestIdHasBeenSet = true;
275 m_requestId = std::forward<RequestIdT>(value);
276 }
277 template <typename RequestIdT = Aws::String>
278 GetRuleResult& WithRequestId(RequestIdT&& value) {
279 SetRequestId(std::forward<RequestIdT>(value));
280 return *this;
281 }
283 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
284
285 private:
286 Aws::String m_identifier;
287
288 Aws::String m_revision;
289
290 Aws::String m_name;
291
292 RuleType m_ruleType{RuleType::NOT_SET};
293
294 RuleTarget m_target;
295
297
298 RuleScope m_scope;
299
300 RuleDetail m_detail;
301
303
304 Aws::String m_description;
305
306 Aws::Utils::DateTime m_createdAt{};
307
308 Aws::Utils::DateTime m_updatedAt{};
309
310 Aws::String m_createdBy;
311
312 Aws::String m_lastUpdatedBy;
313
314 Aws::String m_requestId;
315 Aws::Http::HttpResponseCode m_HttpResponseCode;
316 bool m_identifierHasBeenSet = false;
317 bool m_revisionHasBeenSet = false;
318 bool m_nameHasBeenSet = false;
319 bool m_ruleTypeHasBeenSet = false;
320 bool m_targetHasBeenSet = false;
321 bool m_actionHasBeenSet = false;
322 bool m_scopeHasBeenSet = false;
323 bool m_detailHasBeenSet = false;
324 bool m_targetTypeHasBeenSet = false;
325 bool m_descriptionHasBeenSet = false;
326 bool m_createdAtHasBeenSet = false;
327 bool m_updatedAtHasBeenSet = false;
328 bool m_createdByHasBeenSet = false;
329 bool m_lastUpdatedByHasBeenSet = false;
330 bool m_requestIdHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace DataZone
335} // namespace Aws
void SetCreatedBy(CreatedByT &&value)
void SetTargetType(RuleTargetType value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
GetRuleResult & WithDetail(DetailT &&value)
void SetRevision(RevisionT &&value)
const RuleTarget & GetTarget() const
const Aws::String & GetRequestId() const
AWS_DATAZONE_API GetRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::String & GetRevision() const
GetRuleResult & WithCreatedAt(CreatedAtT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
GetRuleResult & WithDescription(DescriptionT &&value)
GetRuleResult & WithAction(RuleAction value)
AWS_DATAZONE_API GetRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetIdentifier() const
GetRuleResult & WithCreatedBy(CreatedByT &&value)
GetRuleResult & WithRequestId(RequestIdT &&value)
GetRuleResult & WithRevision(RevisionT &&value)
const Aws::String & GetName() const
GetRuleResult & WithTargetType(RuleTargetType value)
void SetRequestId(RequestIdT &&value)
GetRuleResult & WithIdentifier(IdentifierT &&value)
const Aws::String & GetDescription() const
const Aws::String & GetCreatedBy() const
GetRuleResult & WithTarget(TargetT &&value)
void SetDescription(DescriptionT &&value)
GetRuleResult & WithUpdatedAt(UpdatedAtT &&value)
const Aws::Utils::DateTime & GetUpdatedAt() const
GetRuleResult & WithRuleType(RuleType value)
GetRuleResult & WithName(NameT &&value)
RuleTargetType GetTargetType() const
void SetIdentifier(IdentifierT &&value)
void SetCreatedAt(CreatedAtT &&value)
const RuleScope & GetScope() const
AWS_DATAZONE_API GetRuleResult()=default
GetRuleResult & WithLastUpdatedBy(LastUpdatedByT &&value)
const RuleDetail & GetDetail() const
void SetUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetLastUpdatedBy() const
GetRuleResult & WithScope(ScopeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue