AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
Schedule.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/core/utils/memory/stl/AWSVector.h>
11#include <aws/databrew/GlueDataBrew_EXPORTS.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace GlueDataBrew {
23namespace Model {
24
31class Schedule {
32 public:
33 AWS_GLUEDATABREW_API Schedule() = default;
34 AWS_GLUEDATABREW_API Schedule(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GLUEDATABREW_API Schedule& operator=(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
37
39
42 inline const Aws::String& GetAccountId() const { return m_accountId; }
43 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
44 template <typename AccountIdT = Aws::String>
45 void SetAccountId(AccountIdT&& value) {
46 m_accountIdHasBeenSet = true;
47 m_accountId = std::forward<AccountIdT>(value);
48 }
49 template <typename AccountIdT = Aws::String>
50 Schedule& WithAccountId(AccountIdT&& value) {
51 SetAccountId(std::forward<AccountIdT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
61 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
62 template <typename CreatedByT = Aws::String>
63 void SetCreatedBy(CreatedByT&& value) {
64 m_createdByHasBeenSet = true;
65 m_createdBy = std::forward<CreatedByT>(value);
66 }
67 template <typename CreatedByT = Aws::String>
68 Schedule& WithCreatedBy(CreatedByT&& value) {
69 SetCreatedBy(std::forward<CreatedByT>(value));
70 return *this;
71 }
73
75
78 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
79 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
80 template <typename CreateDateT = Aws::Utils::DateTime>
81 void SetCreateDate(CreateDateT&& value) {
82 m_createDateHasBeenSet = true;
83 m_createDate = std::forward<CreateDateT>(value);
84 }
85 template <typename CreateDateT = Aws::Utils::DateTime>
86 Schedule& WithCreateDate(CreateDateT&& value) {
87 SetCreateDate(std::forward<CreateDateT>(value));
88 return *this;
89 }
91
93
96 inline const Aws::Vector<Aws::String>& GetJobNames() const { return m_jobNames; }
97 inline bool JobNamesHasBeenSet() const { return m_jobNamesHasBeenSet; }
98 template <typename JobNamesT = Aws::Vector<Aws::String>>
99 void SetJobNames(JobNamesT&& value) {
100 m_jobNamesHasBeenSet = true;
101 m_jobNames = std::forward<JobNamesT>(value);
102 }
103 template <typename JobNamesT = Aws::Vector<Aws::String>>
104 Schedule& WithJobNames(JobNamesT&& value) {
105 SetJobNames(std::forward<JobNamesT>(value));
106 return *this;
107 }
108 template <typename JobNamesT = Aws::String>
109 Schedule& AddJobNames(JobNamesT&& value) {
110 m_jobNamesHasBeenSet = true;
111 m_jobNames.emplace_back(std::forward<JobNamesT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
122 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
123 template <typename LastModifiedByT = Aws::String>
124 void SetLastModifiedBy(LastModifiedByT&& value) {
125 m_lastModifiedByHasBeenSet = true;
126 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
127 }
128 template <typename LastModifiedByT = Aws::String>
129 Schedule& WithLastModifiedBy(LastModifiedByT&& value) {
130 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
131 return *this;
132 }
134
136
139 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
140 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
141 template <typename LastModifiedDateT = Aws::Utils::DateTime>
142 void SetLastModifiedDate(LastModifiedDateT&& value) {
143 m_lastModifiedDateHasBeenSet = true;
144 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
145 }
146 template <typename LastModifiedDateT = Aws::Utils::DateTime>
147 Schedule& WithLastModifiedDate(LastModifiedDateT&& value) {
148 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
149 return *this;
150 }
152
154
157 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
158 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
159 template <typename ResourceArnT = Aws::String>
160 void SetResourceArn(ResourceArnT&& value) {
161 m_resourceArnHasBeenSet = true;
162 m_resourceArn = std::forward<ResourceArnT>(value);
163 }
164 template <typename ResourceArnT = Aws::String>
165 Schedule& WithResourceArn(ResourceArnT&& value) {
166 SetResourceArn(std::forward<ResourceArnT>(value));
167 return *this;
168 }
170
172
177 inline const Aws::String& GetCronExpression() const { return m_cronExpression; }
178 inline bool CronExpressionHasBeenSet() const { return m_cronExpressionHasBeenSet; }
179 template <typename CronExpressionT = Aws::String>
180 void SetCronExpression(CronExpressionT&& value) {
181 m_cronExpressionHasBeenSet = true;
182 m_cronExpression = std::forward<CronExpressionT>(value);
183 }
184 template <typename CronExpressionT = Aws::String>
185 Schedule& WithCronExpression(CronExpressionT&& value) {
186 SetCronExpression(std::forward<CronExpressionT>(value));
187 return *this;
188 }
190
192
195 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
196 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
197 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
198 void SetTags(TagsT&& value) {
199 m_tagsHasBeenSet = true;
200 m_tags = std::forward<TagsT>(value);
201 }
202 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
203 Schedule& WithTags(TagsT&& value) {
204 SetTags(std::forward<TagsT>(value));
205 return *this;
206 }
207 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
208 Schedule& AddTags(TagsKeyT&& key, TagsValueT&& value) {
209 m_tagsHasBeenSet = true;
210 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
211 return *this;
212 }
214
216
219 inline const Aws::String& GetName() const { return m_name; }
220 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
221 template <typename NameT = Aws::String>
222 void SetName(NameT&& value) {
223 m_nameHasBeenSet = true;
224 m_name = std::forward<NameT>(value);
225 }
226 template <typename NameT = Aws::String>
227 Schedule& WithName(NameT&& value) {
228 SetName(std::forward<NameT>(value));
229 return *this;
230 }
232 private:
233 Aws::String m_accountId;
234
235 Aws::String m_createdBy;
236
237 Aws::Utils::DateTime m_createDate{};
238
239 Aws::Vector<Aws::String> m_jobNames;
240
241 Aws::String m_lastModifiedBy;
242
243 Aws::Utils::DateTime m_lastModifiedDate{};
244
245 Aws::String m_resourceArn;
246
247 Aws::String m_cronExpression;
248
250
251 Aws::String m_name;
252 bool m_accountIdHasBeenSet = false;
253 bool m_createdByHasBeenSet = false;
254 bool m_createDateHasBeenSet = false;
255 bool m_jobNamesHasBeenSet = false;
256 bool m_lastModifiedByHasBeenSet = false;
257 bool m_lastModifiedDateHasBeenSet = false;
258 bool m_resourceArnHasBeenSet = false;
259 bool m_cronExpressionHasBeenSet = false;
260 bool m_tagsHasBeenSet = false;
261 bool m_nameHasBeenSet = false;
262};
263
264} // namespace Model
265} // namespace GlueDataBrew
266} // namespace Aws
AWS_GLUEDATABREW_API Schedule()=default
const Aws::String & GetName() const
Definition Schedule.h:219
const Aws::Vector< Aws::String > & GetJobNames() const
Definition Schedule.h:96
void SetName(NameT &&value)
Definition Schedule.h:222
Schedule & AddJobNames(JobNamesT &&value)
Definition Schedule.h:109
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Schedule.h:195
Schedule & WithLastModifiedBy(LastModifiedByT &&value)
Definition Schedule.h:129
Schedule & WithTags(TagsT &&value)
Definition Schedule.h:203
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Schedule.h:142
Schedule & WithAccountId(AccountIdT &&value)
Definition Schedule.h:50
Schedule & WithCreatedBy(CreatedByT &&value)
Definition Schedule.h:68
AWS_GLUEDATABREW_API Schedule & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetCronExpression(CronExpressionT &&value)
Definition Schedule.h:180
void SetTags(TagsT &&value)
Definition Schedule.h:198
Schedule & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Schedule.h:147
Schedule & WithCronExpression(CronExpressionT &&value)
Definition Schedule.h:185
Schedule & WithResourceArn(ResourceArnT &&value)
Definition Schedule.h:165
Schedule & WithCreateDate(CreateDateT &&value)
Definition Schedule.h:86
const Aws::Utils::DateTime & GetCreateDate() const
Definition Schedule.h:78
const Aws::String & GetResourceArn() const
Definition Schedule.h:157
Schedule & WithJobNames(JobNamesT &&value)
Definition Schedule.h:104
Schedule & WithName(NameT &&value)
Definition Schedule.h:227
AWS_GLUEDATABREW_API Schedule(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAccountId() const
Definition Schedule.h:42
void SetResourceArn(ResourceArnT &&value)
Definition Schedule.h:160
void SetAccountId(AccountIdT &&value)
Definition Schedule.h:45
const Aws::String & GetLastModifiedBy() const
Definition Schedule.h:121
void SetJobNames(JobNamesT &&value)
Definition Schedule.h:99
Schedule & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Schedule.h:208
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Schedule.h:124
void SetCreatedBy(CreatedByT &&value)
Definition Schedule.h:63
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Schedule.h:139
const Aws::String & GetCronExpression() const
Definition Schedule.h:177
void SetCreateDate(CreateDateT &&value)
Definition Schedule.h:81
const Aws::String & GetCreatedBy() const
Definition Schedule.h:60
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
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
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue