AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
CreateRuleResult.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 CreateRuleResult() = 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 CreateRuleResult& WithIdentifier(IdentifierT&& value) {
48 SetIdentifier(std::forward<IdentifierT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetName() const { return m_name; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
64 CreateRuleResult& WithName(NameT&& value) {
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline RuleType GetRuleType() const { return m_ruleType; }
75 inline void SetRuleType(RuleType value) {
76 m_ruleTypeHasBeenSet = true;
77 m_ruleType = value;
78 }
80 SetRuleType(value);
81 return *this;
82 }
84
86
89 inline const RuleTarget& GetTarget() const { return m_target; }
90 template <typename TargetT = RuleTarget>
91 void SetTarget(TargetT&& value) {
92 m_targetHasBeenSet = true;
93 m_target = std::forward<TargetT>(value);
94 }
95 template <typename TargetT = RuleTarget>
96 CreateRuleResult& WithTarget(TargetT&& value) {
97 SetTarget(std::forward<TargetT>(value));
98 return *this;
99 }
101
103
106 inline RuleAction GetAction() const { return m_action; }
107 inline void SetAction(RuleAction value) {
108 m_actionHasBeenSet = true;
109 m_action = value;
110 }
112 SetAction(value);
113 return *this;
114 }
116
118
121 inline const RuleScope& GetScope() const { return m_scope; }
122 template <typename ScopeT = RuleScope>
123 void SetScope(ScopeT&& value) {
124 m_scopeHasBeenSet = true;
125 m_scope = std::forward<ScopeT>(value);
126 }
127 template <typename ScopeT = RuleScope>
128 CreateRuleResult& WithScope(ScopeT&& value) {
129 SetScope(std::forward<ScopeT>(value));
130 return *this;
131 }
133
135
138 inline const RuleDetail& GetDetail() const { return m_detail; }
139 template <typename DetailT = RuleDetail>
140 void SetDetail(DetailT&& value) {
141 m_detailHasBeenSet = true;
142 m_detail = std::forward<DetailT>(value);
143 }
144 template <typename DetailT = RuleDetail>
145 CreateRuleResult& WithDetail(DetailT&& value) {
146 SetDetail(std::forward<DetailT>(value));
147 return *this;
148 }
150
152
155 inline RuleTargetType GetTargetType() const { return m_targetType; }
156 inline void SetTargetType(RuleTargetType value) {
157 m_targetTypeHasBeenSet = true;
158 m_targetType = value;
159 }
161 SetTargetType(value);
162 return *this;
163 }
165
167
170 inline const Aws::String& GetDescription() const { return m_description; }
171 template <typename DescriptionT = Aws::String>
172 void SetDescription(DescriptionT&& value) {
173 m_descriptionHasBeenSet = true;
174 m_description = std::forward<DescriptionT>(value);
175 }
176 template <typename DescriptionT = Aws::String>
177 CreateRuleResult& WithDescription(DescriptionT&& value) {
178 SetDescription(std::forward<DescriptionT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
188 template <typename CreatedAtT = Aws::Utils::DateTime>
189 void SetCreatedAt(CreatedAtT&& value) {
190 m_createdAtHasBeenSet = true;
191 m_createdAt = std::forward<CreatedAtT>(value);
192 }
193 template <typename CreatedAtT = Aws::Utils::DateTime>
194 CreateRuleResult& WithCreatedAt(CreatedAtT&& value) {
195 SetCreatedAt(std::forward<CreatedAtT>(value));
196 return *this;
197 }
199
201
204 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
205 template <typename CreatedByT = Aws::String>
206 void SetCreatedBy(CreatedByT&& value) {
207 m_createdByHasBeenSet = true;
208 m_createdBy = std::forward<CreatedByT>(value);
209 }
210 template <typename CreatedByT = Aws::String>
211 CreateRuleResult& WithCreatedBy(CreatedByT&& value) {
212 SetCreatedBy(std::forward<CreatedByT>(value));
213 return *this;
214 }
216
218
219 inline const Aws::String& GetRequestId() const { return m_requestId; }
220 template <typename RequestIdT = Aws::String>
221 void SetRequestId(RequestIdT&& value) {
222 m_requestIdHasBeenSet = true;
223 m_requestId = std::forward<RequestIdT>(value);
224 }
225 template <typename RequestIdT = Aws::String>
226 CreateRuleResult& WithRequestId(RequestIdT&& value) {
227 SetRequestId(std::forward<RequestIdT>(value));
228 return *this;
229 }
231 private:
232 Aws::String m_identifier;
233
234 Aws::String m_name;
235
236 RuleType m_ruleType{RuleType::NOT_SET};
237
238 RuleTarget m_target;
239
241
242 RuleScope m_scope;
243
244 RuleDetail m_detail;
245
247
248 Aws::String m_description;
249
250 Aws::Utils::DateTime m_createdAt{};
251
252 Aws::String m_createdBy;
253
254 Aws::String m_requestId;
255 bool m_identifierHasBeenSet = false;
256 bool m_nameHasBeenSet = false;
257 bool m_ruleTypeHasBeenSet = false;
258 bool m_targetHasBeenSet = false;
259 bool m_actionHasBeenSet = false;
260 bool m_scopeHasBeenSet = false;
261 bool m_detailHasBeenSet = false;
262 bool m_targetTypeHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264 bool m_createdAtHasBeenSet = false;
265 bool m_createdByHasBeenSet = false;
266 bool m_requestIdHasBeenSet = false;
267};
268
269} // namespace Model
270} // namespace DataZone
271} // namespace Aws
CreateRuleResult & WithRequestId(RequestIdT &&value)
const Aws::String & GetCreatedBy() const
const Aws::String & GetName() const
const Aws::String & GetIdentifier() const
CreateRuleResult & WithDetail(DetailT &&value)
AWS_DATAZONE_API CreateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetIdentifier(IdentifierT &&value)
const Aws::String & GetDescription() const
CreateRuleResult & WithName(NameT &&value)
CreateRuleResult & WithCreatedAt(CreatedAtT &&value)
AWS_DATAZONE_API CreateRuleResult()=default
CreateRuleResult & WithCreatedBy(CreatedByT &&value)
CreateRuleResult & WithIdentifier(IdentifierT &&value)
CreateRuleResult & WithAction(RuleAction value)
const RuleTarget & GetTarget() const
void SetTargetType(RuleTargetType value)
AWS_DATAZONE_API CreateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetDescription(DescriptionT &&value)
CreateRuleResult & WithTargetType(RuleTargetType value)
CreateRuleResult & WithScope(ScopeT &&value)
const Aws::Utils::DateTime & GetCreatedAt() const
CreateRuleResult & WithDescription(DescriptionT &&value)
CreateRuleResult & WithRuleType(RuleType value)
CreateRuleResult & 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