AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
RuleSummary.h
1
6#pragma once
7#include <aws/datazone/DataZone_EXPORTS.h>
8#include <aws/datazone/model/RuleAction.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/datazone/model/RuleType.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/core/utils/DateTime.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace DataZone
28{
29namespace Model
30{
31
38 {
39 public:
40 AWS_DATAZONE_API RuleSummary() = default;
41 AWS_DATAZONE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue);
42 AWS_DATAZONE_API RuleSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
43 AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const;
44
45
47
50 inline RuleAction GetAction() const { return m_action; }
51 inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; }
52 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
53 inline RuleSummary& WithAction(RuleAction value) { SetAction(value); return *this;}
55
57
60 inline const Aws::String& GetIdentifier() const { return m_identifier; }
61 inline bool IdentifierHasBeenSet() const { return m_identifierHasBeenSet; }
62 template<typename IdentifierT = Aws::String>
63 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
64 template<typename IdentifierT = Aws::String>
65 RuleSummary& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
67
69
72 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
73 inline bool LastUpdatedByHasBeenSet() const { return m_lastUpdatedByHasBeenSet; }
74 template<typename LastUpdatedByT = Aws::String>
75 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
76 template<typename LastUpdatedByT = Aws::String>
77 RuleSummary& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
79
81
84 inline const Aws::String& GetName() const { return m_name; }
85 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
86 template<typename NameT = Aws::String>
87 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
88 template<typename NameT = Aws::String>
89 RuleSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
91
93
96 inline const Aws::String& GetRevision() const { return m_revision; }
97 inline bool RevisionHasBeenSet() const { return m_revisionHasBeenSet; }
98 template<typename RevisionT = Aws::String>
99 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
100 template<typename RevisionT = Aws::String>
101 RuleSummary& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
103
105
108 inline RuleType GetRuleType() const { return m_ruleType; }
109 inline bool RuleTypeHasBeenSet() const { return m_ruleTypeHasBeenSet; }
110 inline void SetRuleType(RuleType value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
111 inline RuleSummary& WithRuleType(RuleType value) { SetRuleType(value); return *this;}
113
115
118 inline const RuleScope& GetScope() const { return m_scope; }
119 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
120 template<typename ScopeT = RuleScope>
121 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
122 template<typename ScopeT = RuleScope>
123 RuleSummary& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
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) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
134 template<typename TargetT = RuleTarget>
135 RuleSummary& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
137
139
142 inline RuleTargetType GetTargetType() const { return m_targetType; }
143 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
144 inline void SetTargetType(RuleTargetType value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
145 inline RuleSummary& WithTargetType(RuleTargetType value) { SetTargetType(value); return *this;}
147
149
152 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
153 inline bool UpdatedAtHasBeenSet() const { return m_updatedAtHasBeenSet; }
154 template<typename UpdatedAtT = Aws::Utils::DateTime>
155 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
156 template<typename UpdatedAtT = Aws::Utils::DateTime>
157 RuleSummary& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
159 private:
160
162 bool m_actionHasBeenSet = false;
163
164 Aws::String m_identifier;
165 bool m_identifierHasBeenSet = false;
166
167 Aws::String m_lastUpdatedBy;
168 bool m_lastUpdatedByHasBeenSet = false;
169
170 Aws::String m_name;
171 bool m_nameHasBeenSet = false;
172
173 Aws::String m_revision;
174 bool m_revisionHasBeenSet = false;
175
176 RuleType m_ruleType{RuleType::NOT_SET};
177 bool m_ruleTypeHasBeenSet = false;
178
179 RuleScope m_scope;
180 bool m_scopeHasBeenSet = false;
181
182 RuleTarget m_target;
183 bool m_targetHasBeenSet = false;
184
186 bool m_targetTypeHasBeenSet = false;
187
188 Aws::Utils::DateTime m_updatedAt{};
189 bool m_updatedAtHasBeenSet = false;
190 };
191
192} // namespace Model
193} // namespace DataZone
194} // namespace Aws
const RuleTarget & GetTarget() const
RuleSummary & WithRuleType(RuleType value)
RuleSummary & WithUpdatedAt(UpdatedAtT &&value)
const Aws::String & GetName() const
Definition RuleSummary.h:84
void SetIdentifier(IdentifierT &&value)
Definition RuleSummary.h:63
AWS_DATAZONE_API Aws::Utils::Json::JsonValue Jsonize() const
RuleSummary & WithLastUpdatedBy(LastUpdatedByT &&value)
Definition RuleSummary.h:77
void SetUpdatedAt(UpdatedAtT &&value)
RuleSummary & WithRevision(RevisionT &&value)
const Aws::String & GetRevision() const
Definition RuleSummary.h:96
const Aws::Utils::DateTime & GetUpdatedAt() const
RuleSummary & WithTargetType(RuleTargetType value)
RuleSummary & WithAction(RuleAction value)
Definition RuleSummary.h:53
RuleSummary & WithScope(ScopeT &&value)
RuleSummary & WithTarget(TargetT &&value)
const RuleScope & GetScope() const
void SetAction(RuleAction value)
Definition RuleSummary.h:52
AWS_DATAZONE_API RuleSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetLastUpdatedBy(LastUpdatedByT &&value)
Definition RuleSummary.h:75
void SetTarget(TargetT &&value)
void SetRuleType(RuleType value)
const Aws::String & GetIdentifier() const
Definition RuleSummary.h:60
const Aws::String & GetLastUpdatedBy() const
Definition RuleSummary.h:72
void SetScope(ScopeT &&value)
void SetTargetType(RuleTargetType value)
RuleSummary & WithIdentifier(IdentifierT &&value)
Definition RuleSummary.h:65
RuleSummary & WithName(NameT &&value)
Definition RuleSummary.h:89
AWS_DATAZONE_API RuleSummary(Aws::Utils::Json::JsonView jsonValue)
RuleTargetType GetTargetType() const
AWS_DATAZONE_API RuleSummary()=default
void SetRevision(RevisionT &&value)
Definition RuleSummary.h:99
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue