AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRecipeRequest.h
1
6#pragma once
7#include <aws/databrew/GlueDataBrew_EXPORTS.h>
8#include <aws/databrew/GlueDataBrewRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <aws/databrew/model/RecipeStep.h>
13#include <utility>
14
15namespace Aws
16{
17namespace GlueDataBrew
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_GLUEDATABREW_API CreateRecipeRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "CreateRecipe"; }
34
35 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
36
37
39
42 inline const Aws::String& GetDescription() const { return m_description; }
43 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
44 template<typename DescriptionT = Aws::String>
45 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
46 template<typename DescriptionT = Aws::String>
47 CreateRecipeRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
49
51
55 inline const Aws::String& GetName() const { return m_name; }
56 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
57 template<typename NameT = Aws::String>
58 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
59 template<typename NameT = Aws::String>
60 CreateRecipeRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
62
64
69 inline const Aws::Vector<RecipeStep>& GetSteps() const { return m_steps; }
70 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
71 template<typename StepsT = Aws::Vector<RecipeStep>>
72 void SetSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps = std::forward<StepsT>(value); }
73 template<typename StepsT = Aws::Vector<RecipeStep>>
74 CreateRecipeRequest& WithSteps(StepsT&& value) { SetSteps(std::forward<StepsT>(value)); return *this;}
75 template<typename StepsT = RecipeStep>
76 CreateRecipeRequest& AddSteps(StepsT&& value) { m_stepsHasBeenSet = true; m_steps.emplace_back(std::forward<StepsT>(value)); return *this; }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 CreateRecipeRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateRecipeRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94 private:
95
96 Aws::String m_description;
97 bool m_descriptionHasBeenSet = false;
98
99 Aws::String m_name;
100 bool m_nameHasBeenSet = false;
101
103 bool m_stepsHasBeenSet = false;
104
106 bool m_tagsHasBeenSet = false;
107 };
108
109} // namespace Model
110} // namespace GlueDataBrew
111} // 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