AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
RulesetItem.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GlueDataBrew {
22namespace Model {
23
30 public:
31 AWS_GLUEDATABREW_API RulesetItem() = default;
32 AWS_GLUEDATABREW_API RulesetItem(Aws::Utils::Json::JsonView jsonValue);
33 AWS_GLUEDATABREW_API RulesetItem& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetAccountId() const { return m_accountId; }
41 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
42 template <typename AccountIdT = Aws::String>
43 void SetAccountId(AccountIdT&& value) {
44 m_accountIdHasBeenSet = true;
45 m_accountId = std::forward<AccountIdT>(value);
46 }
47 template <typename AccountIdT = Aws::String>
48 RulesetItem& WithAccountId(AccountIdT&& value) {
49 SetAccountId(std::forward<AccountIdT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
59 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
60 template <typename CreatedByT = Aws::String>
61 void SetCreatedBy(CreatedByT&& value) {
62 m_createdByHasBeenSet = true;
63 m_createdBy = std::forward<CreatedByT>(value);
64 }
65 template <typename CreatedByT = Aws::String>
66 RulesetItem& WithCreatedBy(CreatedByT&& value) {
67 SetCreatedBy(std::forward<CreatedByT>(value));
68 return *this;
69 }
71
73
76 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
77 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
78 template <typename CreateDateT = Aws::Utils::DateTime>
79 void SetCreateDate(CreateDateT&& value) {
80 m_createDateHasBeenSet = true;
81 m_createDate = std::forward<CreateDateT>(value);
82 }
83 template <typename CreateDateT = Aws::Utils::DateTime>
84 RulesetItem& WithCreateDate(CreateDateT&& value) {
85 SetCreateDate(std::forward<CreateDateT>(value));
86 return *this;
87 }
89
91
94 inline const Aws::String& GetDescription() const { return m_description; }
95 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
96 template <typename DescriptionT = Aws::String>
97 void SetDescription(DescriptionT&& value) {
98 m_descriptionHasBeenSet = true;
99 m_description = std::forward<DescriptionT>(value);
100 }
101 template <typename DescriptionT = Aws::String>
102 RulesetItem& WithDescription(DescriptionT&& value) {
103 SetDescription(std::forward<DescriptionT>(value));
104 return *this;
105 }
107
109
112 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
113 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
114 template <typename LastModifiedByT = Aws::String>
115 void SetLastModifiedBy(LastModifiedByT&& value) {
116 m_lastModifiedByHasBeenSet = true;
117 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
118 }
119 template <typename LastModifiedByT = Aws::String>
120 RulesetItem& WithLastModifiedBy(LastModifiedByT&& value) {
121 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
122 return *this;
123 }
125
127
130 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
131 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
132 template <typename LastModifiedDateT = Aws::Utils::DateTime>
133 void SetLastModifiedDate(LastModifiedDateT&& value) {
134 m_lastModifiedDateHasBeenSet = true;
135 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
136 }
137 template <typename LastModifiedDateT = Aws::Utils::DateTime>
138 RulesetItem& WithLastModifiedDate(LastModifiedDateT&& value) {
139 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
140 return *this;
141 }
143
145
148 inline const Aws::String& GetName() const { return m_name; }
149 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
150 template <typename NameT = Aws::String>
151 void SetName(NameT&& value) {
152 m_nameHasBeenSet = true;
153 m_name = std::forward<NameT>(value);
154 }
155 template <typename NameT = Aws::String>
156 RulesetItem& WithName(NameT&& value) {
157 SetName(std::forward<NameT>(value));
158 return *this;
159 }
161
163
166 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
167 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
168 template <typename ResourceArnT = Aws::String>
169 void SetResourceArn(ResourceArnT&& value) {
170 m_resourceArnHasBeenSet = true;
171 m_resourceArn = std::forward<ResourceArnT>(value);
172 }
173 template <typename ResourceArnT = Aws::String>
174 RulesetItem& WithResourceArn(ResourceArnT&& value) {
175 SetResourceArn(std::forward<ResourceArnT>(value));
176 return *this;
177 }
179
181
184 inline int GetRuleCount() const { return m_ruleCount; }
185 inline bool RuleCountHasBeenSet() const { return m_ruleCountHasBeenSet; }
186 inline void SetRuleCount(int value) {
187 m_ruleCountHasBeenSet = true;
188 m_ruleCount = value;
189 }
190 inline RulesetItem& WithRuleCount(int value) {
191 SetRuleCount(value);
192 return *this;
193 }
195
197
200 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
201 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 void SetTags(TagsT&& value) {
204 m_tagsHasBeenSet = true;
205 m_tags = std::forward<TagsT>(value);
206 }
207 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
208 RulesetItem& WithTags(TagsT&& value) {
209 SetTags(std::forward<TagsT>(value));
210 return *this;
211 }
212 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
213 RulesetItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
214 m_tagsHasBeenSet = true;
215 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
216 return *this;
217 }
219
221
225 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
226 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
227 template <typename TargetArnT = Aws::String>
228 void SetTargetArn(TargetArnT&& value) {
229 m_targetArnHasBeenSet = true;
230 m_targetArn = std::forward<TargetArnT>(value);
231 }
232 template <typename TargetArnT = Aws::String>
233 RulesetItem& WithTargetArn(TargetArnT&& value) {
234 SetTargetArn(std::forward<TargetArnT>(value));
235 return *this;
236 }
238 private:
239 Aws::String m_accountId;
240
241 Aws::String m_createdBy;
242
243 Aws::Utils::DateTime m_createDate{};
244
245 Aws::String m_description;
246
247 Aws::String m_lastModifiedBy;
248
249 Aws::Utils::DateTime m_lastModifiedDate{};
250
251 Aws::String m_name;
252
253 Aws::String m_resourceArn;
254
255 int m_ruleCount{0};
256
258
259 Aws::String m_targetArn;
260 bool m_accountIdHasBeenSet = false;
261 bool m_createdByHasBeenSet = false;
262 bool m_createDateHasBeenSet = false;
263 bool m_descriptionHasBeenSet = false;
264 bool m_lastModifiedByHasBeenSet = false;
265 bool m_lastModifiedDateHasBeenSet = false;
266 bool m_nameHasBeenSet = false;
267 bool m_resourceArnHasBeenSet = false;
268 bool m_ruleCountHasBeenSet = false;
269 bool m_tagsHasBeenSet = false;
270 bool m_targetArnHasBeenSet = false;
271};
272
273} // namespace Model
274} // namespace GlueDataBrew
275} // namespace Aws
void SetAccountId(AccountIdT &&value)
Definition RulesetItem.h:43
const Aws::String & GetAccountId() const
Definition RulesetItem.h:40
AWS_GLUEDATABREW_API RulesetItem(Aws::Utils::Json::JsonView jsonValue)
RulesetItem & WithDescription(DescriptionT &&value)
const Aws::Utils::DateTime & GetCreateDate() const
Definition RulesetItem.h:76
RulesetItem & WithRuleCount(int value)
AWS_GLUEDATABREW_API RulesetItem()=default
void SetTargetArn(TargetArnT &&value)
RulesetItem & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_GLUEDATABREW_API RulesetItem & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetCreatedBy() const
Definition RulesetItem.h:58
const Aws::String & GetResourceArn() const
const Aws::String & GetTargetArn() const
void SetResourceArn(ResourceArnT &&value)
RulesetItem & WithCreateDate(CreateDateT &&value)
Definition RulesetItem.h:84
void SetLastModifiedBy(LastModifiedByT &&value)
RulesetItem & WithLastModifiedBy(LastModifiedByT &&value)
RulesetItem & WithAccountId(AccountIdT &&value)
Definition RulesetItem.h:48
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDescription(DescriptionT &&value)
Definition RulesetItem.h:97
void SetLastModifiedDate(LastModifiedDateT &&value)
RulesetItem & WithName(NameT &&value)
RulesetItem & WithTags(TagsT &&value)
RulesetItem & WithCreatedBy(CreatedByT &&value)
Definition RulesetItem.h:66
RulesetItem & WithTargetArn(TargetArnT &&value)
const Aws::String & GetLastModifiedBy() const
RulesetItem & WithLastModifiedDate(LastModifiedDateT &&value)
RulesetItem & WithResourceArn(ResourceArnT &&value)
void SetCreateDate(CreateDateT &&value)
Definition RulesetItem.h:79
void SetCreatedBy(CreatedByT &&value)
Definition RulesetItem.h:61
const Aws::Utils::DateTime & GetLastModifiedDate() const
const Aws::String & GetName() const
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDescription() const
Definition RulesetItem.h:94
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue