AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateRecipeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/databrew/GlueDataBrewRequest.h>
11#include <aws/databrew/GlueDataBrew_EXPORTS.h>
12#include <aws/databrew/model/RecipeStep.h>
13
14#include <utility>
15
16namespace Aws {
17namespace GlueDataBrew {
18namespace Model {
19
23 public:
24 AWS_GLUEDATABREW_API CreateRecipeRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "CreateRecipe"; }
31
32 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
33
35
38 inline const Aws::String& GetDescription() const { return m_description; }
39 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
40 template <typename DescriptionT = Aws::String>
41 void SetDescription(DescriptionT&& value) {
42 m_descriptionHasBeenSet = true;
43 m_description = std::forward<DescriptionT>(value);
44 }
45 template <typename DescriptionT = Aws::String>
46 CreateRecipeRequest& WithDescription(DescriptionT&& value) {
47 SetDescription(std::forward<DescriptionT>(value));
48 return *this;
49 }
51
53
57 inline const Aws::String& GetName() const { return m_name; }
58 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
59 template <typename NameT = Aws::String>
60 void SetName(NameT&& value) {
61 m_nameHasBeenSet = true;
62 m_name = std::forward<NameT>(value);
63 }
64 template <typename NameT = Aws::String>
65 CreateRecipeRequest& WithName(NameT&& value) {
66 SetName(std::forward<NameT>(value));
67 return *this;
68 }
70
72
77 inline const Aws::Vector<RecipeStep>& GetSteps() const { return m_steps; }
78 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
79 template <typename StepsT = Aws::Vector<RecipeStep>>
80 void SetSteps(StepsT&& value) {
81 m_stepsHasBeenSet = true;
82 m_steps = std::forward<StepsT>(value);
83 }
84 template <typename StepsT = Aws::Vector<RecipeStep>>
85 CreateRecipeRequest& WithSteps(StepsT&& value) {
86 SetSteps(std::forward<StepsT>(value));
87 return *this;
88 }
89 template <typename StepsT = RecipeStep>
90 CreateRecipeRequest& AddSteps(StepsT&& value) {
91 m_stepsHasBeenSet = true;
92 m_steps.emplace_back(std::forward<StepsT>(value));
93 return *this;
94 }
96
98
101 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
102 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
103 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
104 void SetTags(TagsT&& value) {
105 m_tagsHasBeenSet = true;
106 m_tags = std::forward<TagsT>(value);
107 }
108 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
110 SetTags(std::forward<TagsT>(value));
111 return *this;
112 }
113 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
114 CreateRecipeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
115 m_tagsHasBeenSet = true;
116 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
117 return *this;
118 }
120 private:
121 Aws::String m_description;
122
123 Aws::String m_name;
124
126
128 bool m_descriptionHasBeenSet = false;
129 bool m_nameHasBeenSet = false;
130 bool m_stepsHasBeenSet = false;
131 bool m_tagsHasBeenSet = false;
132};
133
134} // namespace Model
135} // namespace GlueDataBrew
136} // namespace Aws
CreateRecipeRequest & WithName(NameT &&value)
CreateRecipeRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateRecipeRequest & WithSteps(StepsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_GLUEDATABREW_API CreateRecipeRequest()=default
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
const Aws::Vector< RecipeStep > & GetSteps() const
CreateRecipeRequest & WithTags(TagsT &&value)
CreateRecipeRequest & WithDescription(DescriptionT &&value)
CreateRecipeRequest & AddSteps(StepsT &&value)
virtual const char * GetServiceRequestName() const override
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