AWS SDK for C++

AWS SDK for C++ Version 1.11.748

Loading...
Searching...
No Matches
GetRuleResult.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/datazone/DataZone_EXPORTS.h>
10#include <aws/datazone/model/RuleAction.h>
11#include <aws/datazone/model/RuleDetail.h>
12#include <aws/datazone/model/RuleScope.h>
13#include <aws/datazone/model/RuleTarget.h>
14#include <aws/datazone/model/RuleTargetType.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 GetRuleResult() = 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 GetRuleResult& 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 GetRuleResult& 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 GetRuleResult& 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 GetRuleResult& 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 GetRuleResult& 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 GetRuleResult& WithDetail(DetailT&& value) {
163 SetDetail(std::forward<DetailT>(value));
164 return *this;
165 }
167
169
172 inline RuleTargetType GetTargetType() const { return m_targetType; }
173 inline void SetTargetType(RuleTargetType value) {
174 m_targetTypeHasBeenSet = true;
175 m_targetType = value;
176 }
178 SetTargetType(value);
179 return *this;
180 }
182
184
187 inline const Aws::String& GetDescription() const { return m_description; }
188 template <typename DescriptionT = Aws::String>
189 void SetDescription(DescriptionT&& value) {
190 m_descriptionHasBeenSet = true;
191 m_description = std::forward<DescriptionT>(value);
192 }
193 template <typename DescriptionT = Aws::String>
194 GetRuleResult& WithDescription(DescriptionT&& value) {
195 SetDescription(std::forward<DescriptionT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
205 template <typename CreatedAtT = Aws::Utils::DateTime>
206 void SetCreatedAt(CreatedAtT&& value) {
207 m_createdAtHasBeenSet = true;
208 m_createdAt = std::forward<CreatedAtT>(value);
209 }
210 template <typename CreatedAtT = Aws::Utils::DateTime>
211 GetRuleResult& WithCreatedAt(CreatedAtT&& value) {
212 SetCreatedAt(std::forward<CreatedAtT>(value));
213 return *this;
214 }
216
218
221 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
222 template <typename UpdatedAtT = Aws::Utils::DateTime>
223 void SetUpdatedAt(UpdatedAtT&& value) {
224 m_updatedAtHasBeenSet = true;
225 m_updatedAt = std::forward<UpdatedAtT>(value);
226 }
227 template <typename UpdatedAtT = Aws::Utils::DateTime>
228 GetRuleResult& WithUpdatedAt(UpdatedAtT&& value) {
229 SetUpdatedAt(std::forward<UpdatedAtT>(value));
230 return *this;
231 }
233
235
238 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
239 template <typename CreatedByT = Aws::String>
240 void SetCreatedBy(CreatedByT&& value) {
241 m_createdByHasBeenSet = true;
242 m_createdBy = std::forward<CreatedByT>(value);
243 }
244 template <typename CreatedByT = Aws::String>
245 GetRuleResult& WithCreatedBy(CreatedByT&& value) {
246 SetCreatedBy(std::forward<CreatedByT>(value));
247 return *this;
248 }
250
252
255 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
256 template <typename LastUpdatedByT = Aws::String>
257 void SetLastUpdatedBy(LastUpdatedByT&& value) {
258 m_lastUpdatedByHasBeenSet = true;
259 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
260 }
261 template <typename LastUpdatedByT = Aws::String>
262 GetRuleResult& WithLastUpdatedBy(LastUpdatedByT&& value) {
263 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
264 return *this;
265 }
267
269
270 inline const Aws::String& GetRequestId() const { return m_requestId; }
271 template <typename RequestIdT = Aws::String>
272 void SetRequestId(RequestIdT&& value) {
273 m_requestIdHasBeenSet = true;
274 m_requestId = std::forward<RequestIdT>(value);
275 }
276 template <typename RequestIdT = Aws::String>
277 GetRuleResult& WithRequestId(RequestIdT&& value) {
278 SetRequestId(std::forward<RequestIdT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_identifier;
284
285 Aws::String m_revision;
286
287 Aws::String m_name;
288
289 RuleType m_ruleType{RuleType::NOT_SET};
290
291 RuleTarget m_target;
292
294
295 RuleScope m_scope;
296
297 RuleDetail m_detail;
298
300
301 Aws::String m_description;
302
303 Aws::Utils::DateTime m_createdAt{};
304
305 Aws::Utils::DateTime m_updatedAt{};
306
307 Aws::String m_createdBy;
308
309 Aws::String m_lastUpdatedBy;
310
311 Aws::String m_requestId;
312 bool m_identifierHasBeenSet = false;
313 bool m_revisionHasBeenSet = false;
314 bool m_nameHasBeenSet = false;
315 bool m_ruleTypeHasBeenSet = false;
316 bool m_targetHasBeenSet = false;
317 bool m_actionHasBeenSet = false;
318 bool m_scopeHasBeenSet = false;
319 bool m_detailHasBeenSet = false;
320 bool m_targetTypeHasBeenSet = false;
321 bool m_descriptionHasBeenSet = false;
322 bool m_createdAtHasBeenSet = false;
323 bool m_updatedAtHasBeenSet = false;
324 bool m_createdByHasBeenSet = false;
325 bool m_lastUpdatedByHasBeenSet = false;
326 bool m_requestIdHasBeenSet = false;
327};
328
329} // namespace Model
330} // namespace DataZone
331} // namespace Aws
void SetCreatedBy(CreatedByT &&value)
void SetTargetType(RuleTargetType value)
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