AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
RulesetItem.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlueDataBrew
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_GLUEDATABREW_API RulesetItem() = default;
37 AWS_GLUEDATABREW_API RulesetItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_GLUEDATABREW_API RulesetItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetAccountId() const { return m_accountId; }
47 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
48 template<typename AccountIdT = Aws::String>
49 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
50 template<typename AccountIdT = Aws::String>
51 RulesetItem& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
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) { m_createdByHasBeenSet = true; m_createdBy = std::forward<CreatedByT>(value); }
62 template<typename CreatedByT = Aws::String>
63 RulesetItem& WithCreatedBy(CreatedByT&& value) { SetCreatedBy(std::forward<CreatedByT>(value)); return *this;}
65
67
70 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
71 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
72 template<typename CreateDateT = Aws::Utils::DateTime>
73 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
74 template<typename CreateDateT = Aws::Utils::DateTime>
75 RulesetItem& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
77
79
82 inline const Aws::String& GetDescription() const { return m_description; }
83 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
84 template<typename DescriptionT = Aws::String>
85 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
86 template<typename DescriptionT = Aws::String>
87 RulesetItem& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
89
91
94 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
95 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
96 template<typename LastModifiedByT = Aws::String>
97 void SetLastModifiedBy(LastModifiedByT&& value) { m_lastModifiedByHasBeenSet = true; m_lastModifiedBy = std::forward<LastModifiedByT>(value); }
98 template<typename LastModifiedByT = Aws::String>
99 RulesetItem& WithLastModifiedBy(LastModifiedByT&& value) { SetLastModifiedBy(std::forward<LastModifiedByT>(value)); return *this;}
101
103
106 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
107 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
108 template<typename LastModifiedDateT = Aws::Utils::DateTime>
109 void SetLastModifiedDate(LastModifiedDateT&& value) { m_lastModifiedDateHasBeenSet = true; m_lastModifiedDate = std::forward<LastModifiedDateT>(value); }
110 template<typename LastModifiedDateT = Aws::Utils::DateTime>
111 RulesetItem& WithLastModifiedDate(LastModifiedDateT&& value) { SetLastModifiedDate(std::forward<LastModifiedDateT>(value)); return *this;}
113
115
118 inline const Aws::String& GetName() const { return m_name; }
119 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
120 template<typename NameT = Aws::String>
121 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
122 template<typename NameT = Aws::String>
123 RulesetItem& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
125
127
130 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
131 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
132 template<typename ResourceArnT = Aws::String>
133 void SetResourceArn(ResourceArnT&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::forward<ResourceArnT>(value); }
134 template<typename ResourceArnT = Aws::String>
135 RulesetItem& WithResourceArn(ResourceArnT&& value) { SetResourceArn(std::forward<ResourceArnT>(value)); return *this;}
137
139
142 inline int GetRuleCount() const { return m_ruleCount; }
143 inline bool RuleCountHasBeenSet() const { return m_ruleCountHasBeenSet; }
144 inline void SetRuleCount(int value) { m_ruleCountHasBeenSet = true; m_ruleCount = value; }
145 inline RulesetItem& WithRuleCount(int value) { SetRuleCount(value); return *this;}
147
149
152 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
153 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
154 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
155 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
156 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
157 RulesetItem& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
158 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
159 RulesetItem& AddTags(TagsKeyT&& key, TagsValueT&& value) {
160 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
161 }
163
165
169 inline const Aws::String& GetTargetArn() const { return m_targetArn; }
170 inline bool TargetArnHasBeenSet() const { return m_targetArnHasBeenSet; }
171 template<typename TargetArnT = Aws::String>
172 void SetTargetArn(TargetArnT&& value) { m_targetArnHasBeenSet = true; m_targetArn = std::forward<TargetArnT>(value); }
173 template<typename TargetArnT = Aws::String>
174 RulesetItem& WithTargetArn(TargetArnT&& value) { SetTargetArn(std::forward<TargetArnT>(value)); return *this;}
176 private:
177
178 Aws::String m_accountId;
179 bool m_accountIdHasBeenSet = false;
180
181 Aws::String m_createdBy;
182 bool m_createdByHasBeenSet = false;
183
184 Aws::Utils::DateTime m_createDate{};
185 bool m_createDateHasBeenSet = false;
186
187 Aws::String m_description;
188 bool m_descriptionHasBeenSet = false;
189
190 Aws::String m_lastModifiedBy;
191 bool m_lastModifiedByHasBeenSet = false;
192
193 Aws::Utils::DateTime m_lastModifiedDate{};
194 bool m_lastModifiedDateHasBeenSet = false;
195
196 Aws::String m_name;
197 bool m_nameHasBeenSet = false;
198
199 Aws::String m_resourceArn;
200 bool m_resourceArnHasBeenSet = false;
201
202 int m_ruleCount{0};
203 bool m_ruleCountHasBeenSet = false;
204
206 bool m_tagsHasBeenSet = false;
207
208 Aws::String m_targetArn;
209 bool m_targetArnHasBeenSet = false;
210 };
211
212} // namespace Model
213} // namespace GlueDataBrew
214} // namespace Aws
void SetAccountId(AccountIdT &&value)
Definition RulesetItem.h:49
const Aws::String & GetAccountId() const
Definition RulesetItem.h:46
AWS_GLUEDATABREW_API RulesetItem(Aws::Utils::Json::JsonView jsonValue)
RulesetItem & WithDescription(DescriptionT &&value)
Definition RulesetItem.h:87
const Aws::Utils::DateTime & GetCreateDate() const
Definition RulesetItem.h:70
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:75
void SetLastModifiedBy(LastModifiedByT &&value)
Definition RulesetItem.h:97
RulesetItem & WithLastModifiedBy(LastModifiedByT &&value)
Definition RulesetItem.h:99
RulesetItem & WithAccountId(AccountIdT &&value)
Definition RulesetItem.h:51
const Aws::Map< Aws::String, Aws::String > & GetTags() const
void SetDescription(DescriptionT &&value)
Definition RulesetItem.h:85
void SetLastModifiedDate(LastModifiedDateT &&value)
RulesetItem & WithName(NameT &&value)
RulesetItem & WithTags(TagsT &&value)
RulesetItem & WithCreatedBy(CreatedByT &&value)
Definition RulesetItem.h:63
RulesetItem & WithTargetArn(TargetArnT &&value)
const Aws::String & GetLastModifiedBy() const
Definition RulesetItem.h:94
RulesetItem & WithLastModifiedDate(LastModifiedDateT &&value)
RulesetItem & WithResourceArn(ResourceArnT &&value)
void SetCreateDate(CreateDateT &&value)
Definition RulesetItem.h:73
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:82
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