AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Dataset.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#include <aws/databrew/model/FormatOptions.h>
12#include <aws/databrew/model/Input.h>
13#include <aws/databrew/model/InputFormat.h>
14#include <aws/databrew/model/PathOptions.h>
15#include <aws/databrew/model/Source.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Utils {
21namespace Json {
22class JsonValue;
23class JsonView;
24} // namespace Json
25} // namespace Utils
26namespace GlueDataBrew {
27namespace Model {
28
35class Dataset {
36 public:
37 AWS_GLUEDATABREW_API Dataset() = default;
38 AWS_GLUEDATABREW_API Dataset(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GLUEDATABREW_API Dataset& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
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) {
50 m_accountIdHasBeenSet = true;
51 m_accountId = std::forward<AccountIdT>(value);
52 }
53 template <typename AccountIdT = Aws::String>
54 Dataset& WithAccountId(AccountIdT&& value) {
55 SetAccountId(std::forward<AccountIdT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
65 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
66 template <typename CreatedByT = Aws::String>
67 void SetCreatedBy(CreatedByT&& value) {
68 m_createdByHasBeenSet = true;
69 m_createdBy = std::forward<CreatedByT>(value);
70 }
71 template <typename CreatedByT = Aws::String>
72 Dataset& WithCreatedBy(CreatedByT&& value) {
73 SetCreatedBy(std::forward<CreatedByT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
83 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
84 template <typename CreateDateT = Aws::Utils::DateTime>
85 void SetCreateDate(CreateDateT&& value) {
86 m_createDateHasBeenSet = true;
87 m_createDate = std::forward<CreateDateT>(value);
88 }
89 template <typename CreateDateT = Aws::Utils::DateTime>
90 Dataset& WithCreateDate(CreateDateT&& value) {
91 SetCreateDate(std::forward<CreateDateT>(value));
92 return *this;
93 }
95
97
100 inline const Aws::String& GetName() const { return m_name; }
101 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
102 template <typename NameT = Aws::String>
103 void SetName(NameT&& value) {
104 m_nameHasBeenSet = true;
105 m_name = std::forward<NameT>(value);
106 }
107 template <typename NameT = Aws::String>
108 Dataset& WithName(NameT&& value) {
109 SetName(std::forward<NameT>(value));
110 return *this;
111 }
113
115
119 inline InputFormat GetFormat() const { return m_format; }
120 inline bool FormatHasBeenSet() const { return m_formatHasBeenSet; }
121 inline void SetFormat(InputFormat value) {
122 m_formatHasBeenSet = true;
123 m_format = value;
124 }
126 SetFormat(value);
127 return *this;
128 }
130
132
136 inline const FormatOptions& GetFormatOptions() const { return m_formatOptions; }
137 inline bool FormatOptionsHasBeenSet() const { return m_formatOptionsHasBeenSet; }
138 template <typename FormatOptionsT = FormatOptions>
139 void SetFormatOptions(FormatOptionsT&& value) {
140 m_formatOptionsHasBeenSet = true;
141 m_formatOptions = std::forward<FormatOptionsT>(value);
142 }
143 template <typename FormatOptionsT = FormatOptions>
144 Dataset& WithFormatOptions(FormatOptionsT&& value) {
145 SetFormatOptions(std::forward<FormatOptionsT>(value));
146 return *this;
147 }
149
151
155 inline const Input& GetInput() const { return m_input; }
156 inline bool InputHasBeenSet() const { return m_inputHasBeenSet; }
157 template <typename InputT = Input>
158 void SetInput(InputT&& value) {
159 m_inputHasBeenSet = true;
160 m_input = std::forward<InputT>(value);
161 }
162 template <typename InputT = Input>
163 Dataset& WithInput(InputT&& value) {
164 SetInput(std::forward<InputT>(value));
165 return *this;
166 }
168
170
173 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
174 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
175 template <typename LastModifiedDateT = Aws::Utils::DateTime>
176 void SetLastModifiedDate(LastModifiedDateT&& value) {
177 m_lastModifiedDateHasBeenSet = true;
178 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
179 }
180 template <typename LastModifiedDateT = Aws::Utils::DateTime>
181 Dataset& WithLastModifiedDate(LastModifiedDateT&& value) {
182 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
183 return *this;
184 }
186
188
191 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
192 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
193 template <typename LastModifiedByT = Aws::String>
194 void SetLastModifiedBy(LastModifiedByT&& value) {
195 m_lastModifiedByHasBeenSet = true;
196 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
197 }
198 template <typename LastModifiedByT = Aws::String>
199 Dataset& WithLastModifiedBy(LastModifiedByT&& value) {
200 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
201 return *this;
202 }
204
206
210 inline Source GetSource() const { return m_source; }
211 inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
212 inline void SetSource(Source value) {
213 m_sourceHasBeenSet = true;
214 m_source = value;
215 }
216 inline Dataset& WithSource(Source value) {
217 SetSource(value);
218 return *this;
219 }
221
223
227 inline const PathOptions& GetPathOptions() const { return m_pathOptions; }
228 inline bool PathOptionsHasBeenSet() const { return m_pathOptionsHasBeenSet; }
229 template <typename PathOptionsT = PathOptions>
230 void SetPathOptions(PathOptionsT&& value) {
231 m_pathOptionsHasBeenSet = true;
232 m_pathOptions = std::forward<PathOptionsT>(value);
233 }
234 template <typename PathOptionsT = PathOptions>
235 Dataset& WithPathOptions(PathOptionsT&& value) {
236 SetPathOptions(std::forward<PathOptionsT>(value));
237 return *this;
238 }
240
242
245 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
246 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
247 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
248 void SetTags(TagsT&& value) {
249 m_tagsHasBeenSet = true;
250 m_tags = std::forward<TagsT>(value);
251 }
252 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
253 Dataset& WithTags(TagsT&& value) {
254 SetTags(std::forward<TagsT>(value));
255 return *this;
256 }
257 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
258 Dataset& AddTags(TagsKeyT&& key, TagsValueT&& value) {
259 m_tagsHasBeenSet = true;
260 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
261 return *this;
262 }
264
266
269 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
270 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
271 template <typename ResourceArnT = Aws::String>
272 void SetResourceArn(ResourceArnT&& value) {
273 m_resourceArnHasBeenSet = true;
274 m_resourceArn = std::forward<ResourceArnT>(value);
275 }
276 template <typename ResourceArnT = Aws::String>
277 Dataset& WithResourceArn(ResourceArnT&& value) {
278 SetResourceArn(std::forward<ResourceArnT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_accountId;
284
285 Aws::String m_createdBy;
286
287 Aws::Utils::DateTime m_createDate{};
288
289 Aws::String m_name;
290
292
293 FormatOptions m_formatOptions;
294
295 Input m_input;
296
297 Aws::Utils::DateTime m_lastModifiedDate{};
298
299 Aws::String m_lastModifiedBy;
300
301 Source m_source{Source::NOT_SET};
302
303 PathOptions m_pathOptions;
304
306
307 Aws::String m_resourceArn;
308 bool m_accountIdHasBeenSet = false;
309 bool m_createdByHasBeenSet = false;
310 bool m_createDateHasBeenSet = false;
311 bool m_nameHasBeenSet = false;
312 bool m_formatHasBeenSet = false;
313 bool m_formatOptionsHasBeenSet = false;
314 bool m_inputHasBeenSet = false;
315 bool m_lastModifiedDateHasBeenSet = false;
316 bool m_lastModifiedByHasBeenSet = false;
317 bool m_sourceHasBeenSet = false;
318 bool m_pathOptionsHasBeenSet = false;
319 bool m_tagsHasBeenSet = false;
320 bool m_resourceArnHasBeenSet = false;
321};
322
323} // namespace Model
324} // namespace GlueDataBrew
325} // namespace Aws
Dataset & WithTags(TagsT &&value)
Definition Dataset.h:253
const FormatOptions & GetFormatOptions() const
Definition Dataset.h:136
Dataset & WithFormat(InputFormat value)
Definition Dataset.h:125
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
Dataset & WithSource(Source value)
Definition Dataset.h:216
void SetFormatOptions(FormatOptionsT &&value)
Definition Dataset.h:139
const Aws::String & GetResourceArn() const
Definition Dataset.h:269
void SetCreateDate(CreateDateT &&value)
Definition Dataset.h:85
const Aws::String & GetAccountId() const
Definition Dataset.h:46
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Dataset.h:245
const Aws::String & GetName() const
Definition Dataset.h:100
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Dataset.h:173
void SetCreatedBy(CreatedByT &&value)
Definition Dataset.h:67
void SetResourceArn(ResourceArnT &&value)
Definition Dataset.h:272
const Input & GetInput() const
Definition Dataset.h:155
void SetSource(Source value)
Definition Dataset.h:212
Dataset & WithName(NameT &&value)
Definition Dataset.h:108
AWS_GLUEDATABREW_API Dataset(Aws::Utils::Json::JsonView jsonValue)
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Dataset.h:194
Dataset & WithResourceArn(ResourceArnT &&value)
Definition Dataset.h:277
Dataset & WithInput(InputT &&value)
Definition Dataset.h:163
Dataset & WithFormatOptions(FormatOptionsT &&value)
Definition Dataset.h:144
void SetInput(InputT &&value)
Definition Dataset.h:158
InputFormat GetFormat() const
Definition Dataset.h:119
Dataset & WithLastModifiedBy(LastModifiedByT &&value)
Definition Dataset.h:199
Dataset & WithCreateDate(CreateDateT &&value)
Definition Dataset.h:90
AWS_GLUEDATABREW_API Dataset()=default
const PathOptions & GetPathOptions() const
Definition Dataset.h:227
bool LastModifiedByHasBeenSet() const
Definition Dataset.h:192
void SetName(NameT &&value)
Definition Dataset.h:103
Dataset & WithCreatedBy(CreatedByT &&value)
Definition Dataset.h:72
Dataset & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Dataset.h:258
Dataset & WithAccountId(AccountIdT &&value)
Definition Dataset.h:54
void SetTags(TagsT &&value)
Definition Dataset.h:248
AWS_GLUEDATABREW_API Dataset & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetFormat(InputFormat value)
Definition Dataset.h:121
Dataset & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Dataset.h:181
bool LastModifiedDateHasBeenSet() const
Definition Dataset.h:174
void SetPathOptions(PathOptionsT &&value)
Definition Dataset.h:230
const Aws::String & GetLastModifiedBy() const
Definition Dataset.h:191
Dataset & WithPathOptions(PathOptionsT &&value)
Definition Dataset.h:235
void SetAccountId(AccountIdT &&value)
Definition Dataset.h:49
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Dataset.h:176
const Aws::String & GetCreatedBy() const
Definition Dataset.h:64
const Aws::Utils::DateTime & GetCreateDate() const
Definition Dataset.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