AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
Recipe.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#include <aws/databrew/model/RecipeStep.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace GlueDataBrew {
24namespace Model {
25
32class Recipe {
33 public:
34 AWS_GLUEDATABREW_API Recipe() = default;
35 AWS_GLUEDATABREW_API Recipe(Aws::Utils::Json::JsonView jsonValue);
36 AWS_GLUEDATABREW_API Recipe& operator=(Aws::Utils::Json::JsonView jsonValue);
37 AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetCreatedBy() const { return m_createdBy; }
44 inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; }
45 template <typename CreatedByT = Aws::String>
46 void SetCreatedBy(CreatedByT&& value) {
47 m_createdByHasBeenSet = true;
48 m_createdBy = std::forward<CreatedByT>(value);
49 }
50 template <typename CreatedByT = Aws::String>
51 Recipe& WithCreatedBy(CreatedByT&& value) {
52 SetCreatedBy(std::forward<CreatedByT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
62 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
63 template <typename CreateDateT = Aws::Utils::DateTime>
64 void SetCreateDate(CreateDateT&& value) {
65 m_createDateHasBeenSet = true;
66 m_createDate = std::forward<CreateDateT>(value);
67 }
68 template <typename CreateDateT = Aws::Utils::DateTime>
69 Recipe& WithCreateDate(CreateDateT&& value) {
70 SetCreateDate(std::forward<CreateDateT>(value));
71 return *this;
72 }
74
76
79 inline const Aws::String& GetLastModifiedBy() const { return m_lastModifiedBy; }
80 inline bool LastModifiedByHasBeenSet() const { return m_lastModifiedByHasBeenSet; }
81 template <typename LastModifiedByT = Aws::String>
82 void SetLastModifiedBy(LastModifiedByT&& value) {
83 m_lastModifiedByHasBeenSet = true;
84 m_lastModifiedBy = std::forward<LastModifiedByT>(value);
85 }
86 template <typename LastModifiedByT = Aws::String>
87 Recipe& WithLastModifiedBy(LastModifiedByT&& value) {
88 SetLastModifiedBy(std::forward<LastModifiedByT>(value));
89 return *this;
90 }
92
94
97 inline const Aws::Utils::DateTime& GetLastModifiedDate() const { return m_lastModifiedDate; }
98 inline bool LastModifiedDateHasBeenSet() const { return m_lastModifiedDateHasBeenSet; }
99 template <typename LastModifiedDateT = Aws::Utils::DateTime>
100 void SetLastModifiedDate(LastModifiedDateT&& value) {
101 m_lastModifiedDateHasBeenSet = true;
102 m_lastModifiedDate = std::forward<LastModifiedDateT>(value);
103 }
104 template <typename LastModifiedDateT = Aws::Utils::DateTime>
105 Recipe& WithLastModifiedDate(LastModifiedDateT&& value) {
106 SetLastModifiedDate(std::forward<LastModifiedDateT>(value));
107 return *this;
108 }
110
112
115 inline const Aws::String& GetProjectName() const { return m_projectName; }
116 inline bool ProjectNameHasBeenSet() const { return m_projectNameHasBeenSet; }
117 template <typename ProjectNameT = Aws::String>
118 void SetProjectName(ProjectNameT&& value) {
119 m_projectNameHasBeenSet = true;
120 m_projectName = std::forward<ProjectNameT>(value);
121 }
122 template <typename ProjectNameT = Aws::String>
123 Recipe& WithProjectName(ProjectNameT&& value) {
124 SetProjectName(std::forward<ProjectNameT>(value));
125 return *this;
126 }
128
130
133 inline const Aws::String& GetPublishedBy() const { return m_publishedBy; }
134 inline bool PublishedByHasBeenSet() const { return m_publishedByHasBeenSet; }
135 template <typename PublishedByT = Aws::String>
136 void SetPublishedBy(PublishedByT&& value) {
137 m_publishedByHasBeenSet = true;
138 m_publishedBy = std::forward<PublishedByT>(value);
139 }
140 template <typename PublishedByT = Aws::String>
141 Recipe& WithPublishedBy(PublishedByT&& value) {
142 SetPublishedBy(std::forward<PublishedByT>(value));
143 return *this;
144 }
146
148
151 inline const Aws::Utils::DateTime& GetPublishedDate() const { return m_publishedDate; }
152 inline bool PublishedDateHasBeenSet() const { return m_publishedDateHasBeenSet; }
153 template <typename PublishedDateT = Aws::Utils::DateTime>
154 void SetPublishedDate(PublishedDateT&& value) {
155 m_publishedDateHasBeenSet = true;
156 m_publishedDate = std::forward<PublishedDateT>(value);
157 }
158 template <typename PublishedDateT = Aws::Utils::DateTime>
159 Recipe& WithPublishedDate(PublishedDateT&& value) {
160 SetPublishedDate(std::forward<PublishedDateT>(value));
161 return *this;
162 }
164
166
169 inline const Aws::String& GetDescription() const { return m_description; }
170 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
171 template <typename DescriptionT = Aws::String>
172 void SetDescription(DescriptionT&& value) {
173 m_descriptionHasBeenSet = true;
174 m_description = std::forward<DescriptionT>(value);
175 }
176 template <typename DescriptionT = Aws::String>
177 Recipe& WithDescription(DescriptionT&& value) {
178 SetDescription(std::forward<DescriptionT>(value));
179 return *this;
180 }
182
184
187 inline const Aws::String& GetName() const { return m_name; }
188 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
189 template <typename NameT = Aws::String>
190 void SetName(NameT&& value) {
191 m_nameHasBeenSet = true;
192 m_name = std::forward<NameT>(value);
193 }
194 template <typename NameT = Aws::String>
195 Recipe& WithName(NameT&& value) {
196 SetName(std::forward<NameT>(value));
197 return *this;
198 }
200
202
205 inline const Aws::String& GetResourceArn() const { return m_resourceArn; }
206 inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; }
207 template <typename ResourceArnT = Aws::String>
208 void SetResourceArn(ResourceArnT&& value) {
209 m_resourceArnHasBeenSet = true;
210 m_resourceArn = std::forward<ResourceArnT>(value);
211 }
212 template <typename ResourceArnT = Aws::String>
213 Recipe& WithResourceArn(ResourceArnT&& value) {
214 SetResourceArn(std::forward<ResourceArnT>(value));
215 return *this;
216 }
218
220
223 inline const Aws::Vector<RecipeStep>& GetSteps() const { return m_steps; }
224 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
225 template <typename StepsT = Aws::Vector<RecipeStep>>
226 void SetSteps(StepsT&& value) {
227 m_stepsHasBeenSet = true;
228 m_steps = std::forward<StepsT>(value);
229 }
230 template <typename StepsT = Aws::Vector<RecipeStep>>
231 Recipe& WithSteps(StepsT&& value) {
232 SetSteps(std::forward<StepsT>(value));
233 return *this;
234 }
235 template <typename StepsT = RecipeStep>
236 Recipe& AddSteps(StepsT&& value) {
237 m_stepsHasBeenSet = true;
238 m_steps.emplace_back(std::forward<StepsT>(value));
239 return *this;
240 }
242
244
247 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
248 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
249 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
250 void SetTags(TagsT&& value) {
251 m_tagsHasBeenSet = true;
252 m_tags = std::forward<TagsT>(value);
253 }
254 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
255 Recipe& WithTags(TagsT&& value) {
256 SetTags(std::forward<TagsT>(value));
257 return *this;
258 }
259 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
260 Recipe& AddTags(TagsKeyT&& key, TagsValueT&& value) {
261 m_tagsHasBeenSet = true;
262 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
263 return *this;
264 }
266
268
278 inline const Aws::String& GetRecipeVersion() const { return m_recipeVersion; }
279 inline bool RecipeVersionHasBeenSet() const { return m_recipeVersionHasBeenSet; }
280 template <typename RecipeVersionT = Aws::String>
281 void SetRecipeVersion(RecipeVersionT&& value) {
282 m_recipeVersionHasBeenSet = true;
283 m_recipeVersion = std::forward<RecipeVersionT>(value);
284 }
285 template <typename RecipeVersionT = Aws::String>
286 Recipe& WithRecipeVersion(RecipeVersionT&& value) {
287 SetRecipeVersion(std::forward<RecipeVersionT>(value));
288 return *this;
289 }
291 private:
292 Aws::String m_createdBy;
293
294 Aws::Utils::DateTime m_createDate{};
295
296 Aws::String m_lastModifiedBy;
297
298 Aws::Utils::DateTime m_lastModifiedDate{};
299
300 Aws::String m_projectName;
301
302 Aws::String m_publishedBy;
303
304 Aws::Utils::DateTime m_publishedDate{};
305
306 Aws::String m_description;
307
308 Aws::String m_name;
309
310 Aws::String m_resourceArn;
311
313
315
316 Aws::String m_recipeVersion;
317 bool m_createdByHasBeenSet = false;
318 bool m_createDateHasBeenSet = false;
319 bool m_lastModifiedByHasBeenSet = false;
320 bool m_lastModifiedDateHasBeenSet = false;
321 bool m_projectNameHasBeenSet = false;
322 bool m_publishedByHasBeenSet = false;
323 bool m_publishedDateHasBeenSet = false;
324 bool m_descriptionHasBeenSet = false;
325 bool m_nameHasBeenSet = false;
326 bool m_resourceArnHasBeenSet = false;
327 bool m_stepsHasBeenSet = false;
328 bool m_tagsHasBeenSet = false;
329 bool m_recipeVersionHasBeenSet = false;
330};
331
332} // namespace Model
333} // namespace GlueDataBrew
334} // namespace Aws
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition Recipe.h:247
AWS_GLUEDATABREW_API Recipe & operator=(Aws::Utils::Json::JsonView jsonValue)
bool LastModifiedByHasBeenSet() const
Definition Recipe.h:80
const Aws::Vector< RecipeStep > & GetSteps() const
Definition Recipe.h:223
const Aws::String & GetLastModifiedBy() const
Definition Recipe.h:79
void SetLastModifiedDate(LastModifiedDateT &&value)
Definition Recipe.h:100
Recipe & WithLastModifiedBy(LastModifiedByT &&value)
Definition Recipe.h:87
bool PublishedByHasBeenSet() const
Definition Recipe.h:134
void SetProjectName(ProjectNameT &&value)
Definition Recipe.h:118
const Aws::String & GetCreatedBy() const
Definition Recipe.h:43
const Aws::String & GetName() const
Definition Recipe.h:187
bool ResourceArnHasBeenSet() const
Definition Recipe.h:206
Recipe & WithDescription(DescriptionT &&value)
Definition Recipe.h:177
AWS_GLUEDATABREW_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Utils::DateTime & GetPublishedDate() const
Definition Recipe.h:151
const Aws::String & GetPublishedBy() const
Definition Recipe.h:133
bool PublishedDateHasBeenSet() const
Definition Recipe.h:152
void SetTags(TagsT &&value)
Definition Recipe.h:250
bool DescriptionHasBeenSet() const
Definition Recipe.h:170
bool CreatedByHasBeenSet() const
Definition Recipe.h:44
bool RecipeVersionHasBeenSet() const
Definition Recipe.h:279
Recipe & WithProjectName(ProjectNameT &&value)
Definition Recipe.h:123
Recipe & AddTags(TagsKeyT &&key, TagsValueT &&value)
Definition Recipe.h:260
Recipe & WithCreateDate(CreateDateT &&value)
Definition Recipe.h:69
Recipe & WithPublishedBy(PublishedByT &&value)
Definition Recipe.h:141
void SetCreateDate(CreateDateT &&value)
Definition Recipe.h:64
bool LastModifiedDateHasBeenSet() const
Definition Recipe.h:98
void SetPublishedDate(PublishedDateT &&value)
Definition Recipe.h:154
Recipe & WithCreatedBy(CreatedByT &&value)
Definition Recipe.h:51
Recipe & WithLastModifiedDate(LastModifiedDateT &&value)
Definition Recipe.h:105
const Aws::String & GetDescription() const
Definition Recipe.h:169
Recipe & WithName(NameT &&value)
Definition Recipe.h:195
Recipe & WithTags(TagsT &&value)
Definition Recipe.h:255
void SetResourceArn(ResourceArnT &&value)
Definition Recipe.h:208
void SetSteps(StepsT &&value)
Definition Recipe.h:226
void SetCreatedBy(CreatedByT &&value)
Definition Recipe.h:46
const Aws::String & GetProjectName() const
Definition Recipe.h:115
const Aws::Utils::DateTime & GetLastModifiedDate() const
Definition Recipe.h:97
AWS_GLUEDATABREW_API Recipe()=default
Recipe & WithResourceArn(ResourceArnT &&value)
Definition Recipe.h:213
const Aws::String & GetResourceArn() const
Definition Recipe.h:205
AWS_GLUEDATABREW_API Recipe(Aws::Utils::Json::JsonView jsonValue)
bool CreateDateHasBeenSet() const
Definition Recipe.h:62
Recipe & WithRecipeVersion(RecipeVersionT &&value)
Definition Recipe.h:286
bool ProjectNameHasBeenSet() const
Definition Recipe.h:116
Recipe & WithSteps(StepsT &&value)
Definition Recipe.h:231
Recipe & WithPublishedDate(PublishedDateT &&value)
Definition Recipe.h:159
Recipe & AddSteps(StepsT &&value)
Definition Recipe.h:236
void SetRecipeVersion(RecipeVersionT &&value)
Definition Recipe.h:281
const Aws::Utils::DateTime & GetCreateDate() const
Definition Recipe.h:61
void SetLastModifiedBy(LastModifiedByT &&value)
Definition Recipe.h:82
const Aws::String & GetRecipeVersion() const
Definition Recipe.h:278
void SetPublishedBy(PublishedByT &&value)
Definition Recipe.h:136
void SetDescription(DescriptionT &&value)
Definition Recipe.h:172
void SetName(NameT &&value)
Definition Recipe.h:190
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