AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRuleResult.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 <utility>
16
17namespace Aws
18{
19template<typename RESULT_TYPE>
20class AmazonWebServiceResult;
21
22namespace Utils
23{
24namespace Json
25{
26 class JsonValue;
27} // namespace Json
28} // namespace Utils
29namespace DataZone
30{
31namespace Model
32{
34 {
35 public:
36 AWS_DATAZONE_API UpdateRuleResult() = default;
39
40
42
45 inline RuleAction GetAction() const { return m_action; }
46 inline void SetAction(RuleAction value) { m_actionHasBeenSet = true; m_action = value; }
47 inline UpdateRuleResult& WithAction(RuleAction value) { SetAction(value); return *this;}
49
51
54 inline const Aws::Utils::DateTime& GetCreatedAt() const { return m_createdAt; }
55 template<typename CreatedAtT = Aws::Utils::DateTime>
56 void SetCreatedAt(CreatedAtT&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::forward<CreatedAtT>(value); }
57 template<typename CreatedAtT = Aws::Utils::DateTime>
58 UpdateRuleResult& WithCreatedAt(CreatedAtT&& value) { SetCreatedAt(std::forward<CreatedAtT>(value)); return *this;}
60
62
65 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
66 template<typename CreatedByT = Aws::String>
67 void SetCreatedBy(CreatedByT&& value) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
68 template<typename CreatedByT = Aws::String>
69 UpdateRuleResult& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
71
73
76 inline const Aws::String& GetDescription() const { return m_description; }
77 template<typename DescriptionT = Aws::String>
78 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
79 template<typename DescriptionT = Aws::String>
80 UpdateRuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
82
84
87 inline const RuleDetail& GetDetail() const { return m_detail; }
88 template<typename DetailT = RuleDetail>
89 void SetDetail(DetailT&& value) { m_detailHasBeenSet = true; m_detail = std::forward<DetailT>(value); }
90 template<typename DetailT = RuleDetail>
91 UpdateRuleResult& WithDetail(DetailT&& value) { SetDetail(std::forward<DetailT>(value)); return *this;}
93
95
98 inline const Aws::String& GetIdentifier() const { return m_identifier; }
99 template<typename IdentifierT = Aws::String>
100 void SetIdentifier(IdentifierT&& value) { m_identifierHasBeenSet = true; m_identifier = std::forward<IdentifierT>(value); }
101 template<typename IdentifierT = Aws::String>
102 UpdateRuleResult& WithIdentifier(IdentifierT&& value) { SetIdentifier(std::forward<IdentifierT>(value)); return *this;}
104
106
109 inline const Aws::String& GetLastUpdatedBy() const { return m_lastUpdatedBy; }
110 template<typename LastUpdatedByT = Aws::String>
111 void SetLastUpdatedBy(LastUpdatedByT&& value) { m_lastUpdatedByHasBeenSet = true; m_lastUpdatedBy = std::forward<LastUpdatedByT>(value); }
112 template<typename LastUpdatedByT = Aws::String>
113 UpdateRuleResult& WithLastUpdatedBy(LastUpdatedByT&& value) { SetLastUpdatedBy(std::forward<LastUpdatedByT>(value)); return *this;}
115
117
120 inline const Aws::String& GetName() const { return m_name; }
121 template<typename NameT = Aws::String>
122 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
123 template<typename NameT = Aws::String>
124 UpdateRuleResult& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
126
128
131 inline const Aws::String& GetRevision() const { return m_revision; }
132 template<typename RevisionT = Aws::String>
133 void SetRevision(RevisionT&& value) { m_revisionHasBeenSet = true; m_revision = std::forward<RevisionT>(value); }
134 template<typename RevisionT = Aws::String>
135 UpdateRuleResult& WithRevision(RevisionT&& value) { SetRevision(std::forward<RevisionT>(value)); return *this;}
137
139
142 inline RuleType GetRuleType() const { return m_ruleType; }
143 inline void SetRuleType(RuleType value) { m_ruleTypeHasBeenSet = true; m_ruleType = value; }
144 inline UpdateRuleResult& WithRuleType(RuleType value) { SetRuleType(value); return *this;}
146
148
151 inline const RuleScope& GetScope() const { return m_scope; }
152 template<typename ScopeT = RuleScope>
153 void SetScope(ScopeT&& value) { m_scopeHasBeenSet = true; m_scope = std::forward<ScopeT>(value); }
154 template<typename ScopeT = RuleScope>
155 UpdateRuleResult& WithScope(ScopeT&& value) { SetScope(std::forward<ScopeT>(value)); return *this;}
157
159
162 inline const RuleTarget& GetTarget() const { return m_target; }
163 template<typename TargetT = RuleTarget>
164 void SetTarget(TargetT&& value) { m_targetHasBeenSet = true; m_target = std::forward<TargetT>(value); }
165 template<typename TargetT = RuleTarget>
166 UpdateRuleResult& WithTarget(TargetT&& value) { SetTarget(std::forward<TargetT>(value)); return *this;}
168
170
173 inline const Aws::Utils::DateTime& GetUpdatedAt() const { return m_updatedAt; }
174 template<typename UpdatedAtT = Aws::Utils::DateTime>
175 void SetUpdatedAt(UpdatedAtT&& value) { m_updatedAtHasBeenSet = true; m_updatedAt = std::forward<UpdatedAtT>(value); }
176 template<typename UpdatedAtT = Aws::Utils::DateTime>
177 UpdateRuleResult& WithUpdatedAt(UpdatedAtT&& value) { SetUpdatedAt(std::forward<UpdatedAtT>(value)); return *this;}
179
181
182 inline const Aws::String& GetRequestId() const { return m_requestId; }
183 template<typename RequestIdT = Aws::String>
184 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
185 template<typename RequestIdT = Aws::String>
186 UpdateRuleResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
188 private:
189
191 bool m_actionHasBeenSet = false;
192
193 Aws::Utils::DateTime m_createdAt{};
194 bool m_createdAtHasBeenSet = false;
195
196 Aws::String m_createdBy;
197 bool m_createdByHasBeenSet = false;
198
199 Aws::String m_description;
200 bool m_descriptionHasBeenSet = false;
201
202 RuleDetail m_detail;
203 bool m_detailHasBeenSet = false;
204
205 Aws::String m_identifier;
206 bool m_identifierHasBeenSet = false;
207
208 Aws::String m_lastUpdatedBy;
209 bool m_lastUpdatedByHasBeenSet = false;
210
211 Aws::String m_name;
212 bool m_nameHasBeenSet = false;
213
214 Aws::String m_revision;
215 bool m_revisionHasBeenSet = false;
216
217 RuleType m_ruleType{RuleType::NOT_SET};
218 bool m_ruleTypeHasBeenSet = false;
219
220 RuleScope m_scope;
221 bool m_scopeHasBeenSet = false;
222
223 RuleTarget m_target;
224 bool m_targetHasBeenSet = false;
225
226 Aws::Utils::DateTime m_updatedAt{};
227 bool m_updatedAtHasBeenSet = false;
228
229 Aws::String m_requestId;
230 bool m_requestIdHasBeenSet = false;
231 };
232
233} // namespace Model
234} // namespace DataZone
235} // namespace Aws
UpdateRuleResult & WithCreatedBy(CreatedByT &&value)
const Aws::String & GetCreatedBy() const
const RuleDetail & GetDetail() const
const Aws::Utils::DateTime & GetCreatedAt() const
void SetLastUpdatedBy(LastUpdatedByT &&value)
const Aws::String & GetRevision() const
AWS_DATAZONE_API UpdateRuleResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_DATAZONE_API UpdateRuleResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Utils::DateTime & GetUpdatedAt() const
const Aws::String & GetIdentifier() const
UpdateRuleResult & WithAction(RuleAction value)
UpdateRuleResult & WithLastUpdatedBy(LastUpdatedByT &&value)
UpdateRuleResult & WithIdentifier(IdentifierT &&value)
void SetIdentifier(IdentifierT &&value)
UpdateRuleResult & WithRequestId(RequestIdT &&value)
UpdateRuleResult & WithScope(ScopeT &&value)
UpdateRuleResult & WithRevision(RevisionT &&value)
UpdateRuleResult & WithUpdatedAt(UpdatedAtT &&value)
UpdateRuleResult & WithDescription(DescriptionT &&value)
const Aws::String & GetDescription() const
void SetDescription(DescriptionT &&value)
UpdateRuleResult & WithCreatedAt(CreatedAtT &&value)
UpdateRuleResult & WithDetail(DetailT &&value)
UpdateRuleResult & WithRuleType(RuleType value)
const Aws::String & GetName() const
AWS_DATAZONE_API UpdateRuleResult()=default
UpdateRuleResult & WithName(NameT &&value)
const Aws::String & GetLastUpdatedBy() const
UpdateRuleResult & 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