AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
UpdateRecipeRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/databrew/GlueDataBrewRequest.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11#include <aws/databrew/model/RecipeStep.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GlueDataBrew {
17namespace Model {
18
22 public:
23 AWS_GLUEDATABREW_API UpdateRecipeRequest() = default;
24
25 // Service request name is the Operation name which will send this request out,
26 // each operation should has unique request name, so that we can get operation's name from this request.
27 // Note: this is not true for response, multiple operations may have the same response name,
28 // so we can not get operation's name from response.
29 inline virtual const char* GetServiceRequestName() const override { return "UpdateRecipe"; }
30
31 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDescription() const { return m_description; }
38 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
39 template <typename DescriptionT = Aws::String>
40 void SetDescription(DescriptionT&& value) {
41 m_descriptionHasBeenSet = true;
42 m_description = std::forward<DescriptionT>(value);
43 }
44 template <typename DescriptionT = Aws::String>
45 UpdateRecipeRequest& WithDescription(DescriptionT&& value) {
46 SetDescription(std::forward<DescriptionT>(value));
47 return *this;
48 }
50
52
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) {
59 m_nameHasBeenSet = true;
60 m_name = std::forward<NameT>(value);
61 }
62 template <typename NameT = Aws::String>
63 UpdateRecipeRequest& WithName(NameT&& value) {
64 SetName(std::forward<NameT>(value));
65 return *this;
66 }
68
70
74 inline const Aws::Vector<RecipeStep>& GetSteps() const { return m_steps; }
75 inline bool StepsHasBeenSet() const { return m_stepsHasBeenSet; }
76 template <typename StepsT = Aws::Vector<RecipeStep>>
77 void SetSteps(StepsT&& value) {
78 m_stepsHasBeenSet = true;
79 m_steps = std::forward<StepsT>(value);
80 }
81 template <typename StepsT = Aws::Vector<RecipeStep>>
82 UpdateRecipeRequest& WithSteps(StepsT&& value) {
83 SetSteps(std::forward<StepsT>(value));
84 return *this;
85 }
86 template <typename StepsT = RecipeStep>
87 UpdateRecipeRequest& AddSteps(StepsT&& value) {
88 m_stepsHasBeenSet = true;
89 m_steps.emplace_back(std::forward<StepsT>(value));
90 return *this;
91 }
93 private:
94 Aws::String m_description;
95
96 Aws::String m_name;
97
99 bool m_descriptionHasBeenSet = false;
100 bool m_nameHasBeenSet = false;
101 bool m_stepsHasBeenSet = false;
102};
103
104} // namespace Model
105} // namespace GlueDataBrew
106} // namespace Aws
AWS_GLUEDATABREW_API UpdateRecipeRequest()=default
UpdateRecipeRequest & WithSteps(StepsT &&value)
const Aws::Vector< RecipeStep > & GetSteps() const
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
UpdateRecipeRequest & AddSteps(StepsT &&value)
virtual const char * GetServiceRequestName() const override
UpdateRecipeRequest & WithName(NameT &&value)
UpdateRecipeRequest & WithDescription(DescriptionT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector