AWS SDK for C++

AWS SDK for C++ Version 1.11.786

Loading...
Searching...
No Matches
CreateRuleResult.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 CreateRuleResult() = 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 CreateRuleResult& WithIdentifier(IdentifierT&& value) {
49 SetIdentifier(std::forward<IdentifierT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 CreateRuleResult& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
75 inline RuleType GetRuleType() const { return m_ruleType; }
76 inline void SetRuleType(RuleType value) {
77 m_ruleTypeHasBeenSet = true;
78 m_ruleType = value;
79 }
81 SetRuleType(value);
82 return *this;
83 }
85
87
90 inline const RuleTarget& GetTarget() const { return m_target; }
91 template <typename TargetT = RuleTarget>
92 void SetTarget(TargetT&& value) {
93 m_targetHasBeenSet = true;
94 m_target = std::forward<TargetT>(value);
95 }
96 template <typename TargetT = RuleTarget>
97 CreateRuleResult& WithTarget(TargetT&& value) {
98 SetTarget(std::forward<TargetT>(value));
99 return *this;
100 }
102
104
107 inline RuleAction GetAction() const { return m_action; }
108 inline void SetAction(RuleAction value) {
109 m_actionHasBeenSet = true;
110 m_action = value;
111 }
113 SetAction(value);
114 return *this;
115 }
117
119
122 inline const RuleScope& GetScope() const { return m_scope; }
123 template <typename ScopeT = RuleScope>
124 void SetScope(ScopeT&& value) {
125 m_scopeHasBeenSet = true;
126 m_scope = std::forward<ScopeT>(value);
127 }
128 template <typename ScopeT = RuleScope>
129 CreateRuleResult& WithScope(ScopeT&& value) {
130 SetScope(std::forward<ScopeT>(value));
131 return *this;
132 }
134
136
139 inline const RuleDetail& GetDetail() const { return m_detail; }
140 template <typename DetailT = RuleDetail>
141 void SetDetail(DetailT&& value) {
142 m_detailHasBeenSet = true;
143 m_detail = std::forward<DetailT>(value);
144 }
145 template <typename DetailT = RuleDetail>
146 CreateRuleResult& WithDetail(DetailT&& value) {
147 SetDetail(std::forward<DetailT>(value));
148 return *this;
149 }
151
153
156 inline RuleTargetType GetTargetType() const { return m_targetType; }
157 inline void SetTargetType(RuleTargetType value) {
158 m_targetTypeHasBeenSet = true;
159 m_targetType = value;
160 }
162 SetTargetType(value);
163 return *this;
164 }
166
168
171 inline const Aws::String& GetDescription() const { return m_description; }
172 template <typename DescriptionT = Aws::String>
173 void SetDescription(DescriptionT&& value) {
174 m_descriptionHasBeenSet = true;
175 m_description = std::forward<DescriptionT>(value);
176 }
177 template <typename DescriptionT = Aws::String>
178 CreateRuleResult& WithDescription(DescriptionT&& value) {
179 SetDescription(std::forward<DescriptionT>(value));
180 return *this;
181 }
183
185
188 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
189 template <typename CreatedAtT = Aws::Utils::DateTime>
190 void SetCreatedAt(CreatedAtT&& value) {
191 m_createdAtHasBeenSet = true;
192 m_createdAt = std::forward<CreatedAtT>(value);
193 }
194 template <typename CreatedAtT = Aws::Utils::DateTime>
195 CreateRuleResult& WithCreatedAt(CreatedAtT&& value) {
196 SetCreatedAt(std::forward<CreatedAtT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
206 template <typename CreatedByT = Aws::String>
207 void SetCreatedBy(CreatedByT&& value) {
208 m_createdByHasBeenSet = true;
209 m_createdBy = std::forward<CreatedByT>(value);
210 }
211 template <typename CreatedByT = Aws::String>
212 CreateRuleResult& WithCreatedBy(CreatedByT&& value) {
213 SetCreatedBy(std::forward<CreatedByT>(value));
214 return *this;
215 }
217
219
220 inline const Aws::String& GetRequestId() const { return m_requestId; }
221 template <typename RequestIdT = Aws::String>
222 void SetRequestId(RequestIdT&& value) {
223 m_requestIdHasBeenSet = true;
224 m_requestId = std::forward<RequestIdT>(value);
225 }
226 template <typename RequestIdT = Aws::String>
227 CreateRuleResult& WithRequestId(RequestIdT&& value) {
228 SetRequestId(std::forward<RequestIdT>(value));
229 return *this;
230 }
232 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
233
234 private:
235 Aws::String m_identifier;
236
237 Aws::String m_name;
238
239 RuleType m_ruleType{RuleType::NOT_SET};
240
241 RuleTarget m_target;
242
244
245 RuleScope m_scope;
246
247 RuleDetail m_detail;
248
250
251 Aws::String m_description;
252
253 Aws::Utils::DateTime m_createdAt{};
254
255 Aws::String m_createdBy;
256
257 Aws::String m_requestId;
258 Aws::Http::HttpResponseCode m_HttpResponseCode;
259 bool m_identifierHasBeenSet = false;
260 bool m_nameHasBeenSet = false;
261 bool m_ruleTypeHasBeenSet = false;
262 bool m_targetHasBeenSet = false;
263 bool m_actionHasBeenSet = false;
264 bool m_scopeHasBeenSet = false;
265 bool m_detailHasBeenSet = false;
266 bool m_targetTypeHasBeenSet = false;
267 bool m_descriptionHasBeenSet = false;
268 bool m_createdAtHasBeenSet = false;
269 bool m_createdByHasBeenSet = false;
270 bool m_requestIdHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace DataZone
275} // 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
Aws::Http::HttpResponseCode GetHttpResponseCode() 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