AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
GetRuleResult.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/RuleAction.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/datazone/model/RuleDetail.h>
12#include <aws/datazone/model/RuleType.h>
13#include <aws/datazone/model/RuleScope.h>
14#include <aws/datazone/model/RuleTarget.h>
15#include <aws/datazone/model/RuleTargetType.h>
16#include <utility>
17
18namespace Aws
19{
20template<typename RESULT_TYPE>
21class AmazonWebServiceResult;
22
23namespace Utils
24{
25namespace Json
26{
27 class JsonValue;
28} // namespace Json
29} // namespace Utils
30namespace DataZone
31{
32namespace Model
33{
35 {
36 public:
37 AWS_DATAZONE_API GetRuleResult() = default;
40
41
43
46 inline RuleAction GetAction() const { return m_action; }
47 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
48 inline GetRuleResult& WithAction(RuleAction value) { SetAction(value); return *this;}
50
52
55 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
56 template<typename CreatedAtT = Aws::Utils::DateTime>
57 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
58 template<typename CreatedAtT = Aws::Utils::DateTime>
59 GetRuleResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
61
63
66 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
67 template<typename CreatedByT = Aws::String>
68 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
69 template<typename CreatedByT = Aws::String>
70 GetRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
72
74
77 inline const Aws::String& GetDescription() const { return m_description; }
78 template<typename DescriptionT = Aws::String>
79 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
80 template<typename DescriptionT = Aws::String>
81 GetRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
83
85
88 inline const RuleDetail& GetDetail() const { return m_detail; }
89 template<typename DetailT = RuleDetail>
90 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
91 template<typename DetailT = RuleDetail>
92 GetRuleResult& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
94
96
99 inline const Aws::String& GetIdentifier() const { return m_identifier; }
100 template<typename IdentifierT = Aws::String>
101 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
102 template<typename IdentifierT = Aws::String>
103 GetRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
105
107
110 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
111 template<typename LastUpdatedByT = Aws::String>
112 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
113 template<typename LastUpdatedByT = Aws::String>
114 GetRuleResult& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
116
118
121 inline const Aws::String& GetName() const { return m_name; }
122 template<typename NameT = Aws::String>
123 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
124 template<typename NameT = Aws::String>
125 GetRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
127
129
132 inline const Aws::String& GetRevision() const { return m_revision; }
133 template<typename RevisionT = Aws::String>
134 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
135 template<typename RevisionT = Aws::String>
136 GetRuleResult& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
138
140
143 inline RuleType GetRuleType() const { return m_ruleType; }
144 inline void SetRuleType(RuleType value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
145 inline GetRuleResult& WithRuleType(RuleType value) { SetRuleType(value); return *this;}
147
149
152 inline const RuleScope& GetScope() const { return m_scope; }
153 template<typename ScopeT = RuleScope>
154 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
155 template<typename ScopeT = RuleScope>
156 GetRuleResult& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
158
160
163 inline const RuleTarget& GetTarget() const { return m_target; }
164 template<typename TargetT = RuleTarget>
165 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
166 template<typename TargetT = RuleTarget>
167 GetRuleResult& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
169
171
174 inline RuleTargetType GetTargetType() const { return m_targetType; }
175 inline void SetTargetType(RuleTargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
176 inline GetRuleResult& WithTargetType(RuleTargetType value) { SetTargetType(value); return *this;}
178
180
183 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
184 template<typename UpdatedAtT = Aws::Utils::DateTime>
185 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
186 template<typename UpdatedAtT = Aws::Utils::DateTime>
187 GetRuleResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
189
191
192 inline const Aws::String& GetRequestId() const { return m_requestId; }
193 template<typename RequestIdT = Aws::String>
194 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
195 template<typename RequestIdT = Aws::String>
196 GetRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
198 private:
199
201 bool m_actionHasBeenSet = false;
202
203 Aws::Utils::DateTime m_createdAt{};
204 bool m_createdAtHasBeenSet = false;
205
206 Aws::String m_createdBy;
207 bool m_createdByHasBeenSet = false;
208
209 Aws::String m_description;
210 bool m_descriptionHasBeenSet = false;
211
212 RuleDetail m_detail;
213 bool m_detailHasBeenSet = false;
214
215 Aws::String m_identifier;
216 bool m_identifierHasBeenSet = false;
217
218 Aws::String m_lastUpdatedBy;
219 bool m_lastUpdatedByHasBeenSet = false;
220
221 Aws::String m_name;
222 bool m_nameHasBeenSet = false;
223
224 Aws::String m_revision;
225 bool m_revisionHasBeenSet = false;
226
227 RuleType m_ruleType{RuleType::NOT_SET};
228 bool m_ruleTypeHasBeenSet = false;
229
230 RuleScope m_scope;
231 bool m_scopeHasBeenSet = false;
232
233 RuleTarget m_target;
234 bool m_targetHasBeenSet = false;
235
237 bool m_targetTypeHasBeenSet = false;
238
239 Aws::Utils::DateTime m_updatedAt{};
240 bool m_updatedAtHasBeenSet = false;
241
242 Aws::String m_requestId;
243 bool m_requestIdHasBeenSet = false;
244 };
245
246} // namespace Model
247} // namespace DataZone
248} // 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
void SetAction(RuleAction value)
GetRuleResult & WithScope(ScopeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue