AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
RuleSummary.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/RuleScope.h>
12#include <aws/datazone/model/RuleTarget.h>
13#include <aws/datazone/model/RuleTargetType.h>
14#include <aws/datazone/model/RuleType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace DataZone {
26namespace Model {
27
34 public:
35 AWS_DATAZONE_API RuleSummary() = default;
36 AWS_DATAZONE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
37 AWS_DATAZONE_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
44 inline const Aws::String& GetIdentifier() const { return m_identifier; }
45 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
46 template <typename IdentifierT = Aws::String>
47 void SetIdentifier(IdentifierT&& value) {
48 m_identifierHasBeenSet = true;
49 m_identifier = std::forward<IdentifierT>(value);
50 }
51 template <typename IdentifierT = Aws::String>
52 RuleSummary& WithIdentifier(IdentifierT&& value) {
53 SetIdentifier(std::forward<IdentifierT>(value));
54 return *this;
55 }
57
59
62 inline const Aws::String& GetRevision() const { return m_revision; }
63 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
64 template <typename RevisionT = Aws::String>
65 void SetRevision(RevisionT&& value) {
66 m_revisionHasBeenSet = true;
67 m_revision = std::forward<RevisionT>(value);
68 }
69 template <typename RevisionT = Aws::String>
70 RuleSummary& WithRevision(RevisionT&& value) {
71 SetRevision(std::forward<RevisionT>(value));
72 return *this;
73 }
75
77
80 inline RuleType GetRuleType() const { return m_ruleType; }
81 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
82 inline void SetRuleType(RuleType value) {
83 m_ruleTypeHasBeenSet = true;
84 m_ruleType = value;
85 }
87 SetRuleType(value);
88 return *this;
89 }
91
93
96 inline const Aws::String& GetName() const { return m_name; }
97 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
98 template <typename NameT = Aws::String>
99 void SetName(NameT&& value) {
100 m_nameHasBeenSet = true;
101 m_name = std::forward<NameT>(value);
102 }
103 template <typename NameT = Aws::String>
104 RuleSummary& WithName(NameT&& value) {
105 SetName(std::forward<NameT>(value));
106 return *this;
107 }
109
111
114 inline RuleTargetType GetTargetType() const { return m_targetType; }
115 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
116 inline void SetTargetType(RuleTargetType value) {
117 m_targetTypeHasBeenSet = true;
118 m_targetType = value;
119 }
121 SetTargetType(value);
122 return *this;
123 }
125
127
130 inline const RuleTarget& GetTarget() const { return m_target; }
131 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
132 template <typename TargetT = RuleTarget>
133 void SetTarget(TargetT&& value) {
134 m_targetHasBeenSet = true;
135 m_target = std::forward<TargetT>(value);
136 }
137 template <typename TargetT = RuleTarget>
138 RuleSummary& WithTarget(TargetT&& value) {
139 SetTarget(std::forward<TargetT>(value));
140 return *this;
141 }
143
145
148 inline RuleAction GetAction() const { return m_action; }
149 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
150 inline void SetAction(RuleAction value) {
151 m_actionHasBeenSet = true;
152 m_action = value;
153 }
155 SetAction(value);
156 return *this;
157 }
159
161
164 inline const RuleScope& GetScope() const { return m_scope; }
165 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
166 template <typename ScopeT = RuleScope>
167 void SetScope(ScopeT&& value) {
168 m_scopeHasBeenSet = true;
169 m_scope = std::forward<ScopeT>(value);
170 }
171 template <typename ScopeT = RuleScope>
172 RuleSummary& WithScope(ScopeT&& value) {
173 SetScope(std::forward<ScopeT>(value));
174 return *this;
175 }
177
179
182 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
183 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
184 template <typename UpdatedAtT = Aws::Utils::DateTime>
185 void SetUpdatedAt(UpdatedAtT&& value) {
186 m_updatedAtHasBeenSet = true;
187 m_updatedAt = std::forward<UpdatedAtT>(value);
188 }
189 template <typename UpdatedAtT = Aws::Utils::DateTime>
190 RuleSummary& WithUpdatedAt(UpdatedAtT&& value) {
191 SetUpdatedAt(std::forward<UpdatedAtT>(value));
192 return *this;
193 }
195
197
200 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
201 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
202 template <typename LastUpdatedByT = Aws::String>
203 void SetLastUpdatedBy(LastUpdatedByT&& value) {
204 m_lastUpdatedByHasBeenSet = true;
205 m_lastUpdatedBy = std::forward<LastUpdatedByT>(value);
206 }
207 template <typename LastUpdatedByT = Aws::String>
208 RuleSummary& WithLastUpdatedBy(LastUpdatedByT&& value) {
209 SetLastUpdatedBy(std::forward<LastUpdatedByT>(value));
210 return *this;
211 }
213 private:
214 Aws::String m_identifier;
215
216 Aws::String m_revision;
217
218 RuleType m_ruleType{RuleType::NOT_SET};
219
220 Aws::String m_name;
221
223
224 RuleTarget m_target;
225
227
228 RuleScope m_scope;
229
230 Aws::Utils::DateTime m_updatedAt{};
231
232 Aws::String m_lastUpdatedBy;
233 bool m_identifierHasBeenSet = false;
234 bool m_revisionHasBeenSet = false;
235 bool m_ruleTypeHasBeenSet = false;
236 bool m_nameHasBeenSet = false;
237 bool m_targetTypeHasBeenSet = false;
238 bool m_targetHasBeenSet = false;
239 bool m_actionHasBeenSet = false;
240 bool m_scopeHasBeenSet = false;
241 bool m_updatedAtHasBeenSet = false;
242 bool m_lastUpdatedByHasBeenSet = false;
243};
244
245} // namespace Model
246} // namespace DataZone
247} // namespace Aws
const RuleTarget & GetTarget() const
RuleSummary & WithRuleType(RuleType value)
Definition RuleSummary.h:86
RuleSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetName() const
Definition RuleSummary.h:96
void SetIdentifier(IdentifierT &&value)
Definition RuleSummary.h:47
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithLastUpdatedBy(LastUpdatedByT &&value)
void SetUpdatedAt(UpdatedAtT &&value)
RuleSummary & WithRevision(RevisionT &&value)
Definition RuleSummary.h:70
const Aws::String & GetRevision() const
Definition RuleSummary.h:62
const Aws::Utils::DateTime & GetUpdatedAt() const
RuleSummary & WithTargetType(RuleTargetType value)
RuleSummary & WithAction(RuleAction value)
RuleSummary & WithScope(ScopeT &&value)
RuleSummary & WithTarget(TargetT &&value)
const RuleScope & GetScope() const
void SetAction(RuleAction value)
AWS_DATAZONE_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedBy(LastUpdatedByT &&value)
void SetTarget(TargetT &&value)
void SetRuleType(RuleType value)
Definition RuleSummary.h:82
const Aws::String & GetIdentifier() const
Definition RuleSummary.h:44
const Aws::String & GetLastUpdatedBy() const
void SetScope(ScopeT &&value)
void SetTargetType(RuleTargetType value)
RuleSummary & WithIdentifier(IdentifierT &&value)
Definition RuleSummary.h:52
RuleSummary & WithName(NameT &&value)
AWS_DATAZONE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleTargetType GetTargetType() const
AWS_DATAZONE_API RuleSummary()=default
void SetRevision(RevisionT &&value)
Definition RuleSummary.h:65
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue