AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateProjectRequest.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/databrew/GlueDataBrewRequest.h>
10#include <aws/databrew/GlueDataBrew_EXPORTS.h>
11#include <aws/databrew/model/Sample.h>
12
13#include <utility>
14
15namespace Aws {
16namespace GlueDataBrew {
17namespace Model {
18
22 public:
23 AWS_GLUEDATABREW_API CreateProjectRequest() = 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 "CreateProject"; }
30
31 AWS_GLUEDATABREW_API Aws::String SerializePayload() const override;
32
34
37 inline const Aws::String& GetDatasetName() const { return m_datasetName; }
38 inline bool DatasetNameHasBeenSet() const { return m_datasetNameHasBeenSet; }
39 template <typename DatasetNameT = Aws::String>
40 void SetDatasetName(DatasetNameT&& value) {
41 m_datasetNameHasBeenSet = true;
42 m_datasetName = std::forward<DatasetNameT>(value);
43 }
44 template <typename DatasetNameT = Aws::String>
45 CreateProjectRequest& WithDatasetName(DatasetNameT&& value) {
46 SetDatasetName(std::forward<DatasetNameT>(value));
47 return *this;
48 }
50
52
56 inline const Aws::String& GetName() const { return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 template <typename NameT = Aws::String>
59 void SetName(NameT&& value) {
60 m_nameHasBeenSet = true;
61 m_name = std::forward<NameT>(value);
62 }
63 template <typename NameT = Aws::String>
65 SetName(std::forward<NameT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetRecipeName() const { return m_recipeName; }
75 inline bool RecipeNameHasBeenSet() const { return m_recipeNameHasBeenSet; }
76 template <typename RecipeNameT = Aws::String>
77 void SetRecipeName(RecipeNameT&& value) {
78 m_recipeNameHasBeenSet = true;
79 m_recipeName = std::forward<RecipeNameT>(value);
80 }
81 template <typename RecipeNameT = Aws::String>
82 CreateProjectRequest& WithRecipeName(RecipeNameT&& value) {
83 SetRecipeName(std::forward<RecipeNameT>(value));
84 return *this;
85 }
87
89
90 inline const Sample& GetSample() const { return m_sample; }
91 inline bool SampleHasBeenSet() const { return m_sampleHasBeenSet; }
92 template <typename SampleT = Sample>
93 void SetSample(SampleT&& value) {
94 m_sampleHasBeenSet = true;
95 m_sample = std::forward<SampleT>(value);
96 }
97 template <typename SampleT = Sample>
98 CreateProjectRequest& WithSample(SampleT&& value) {
99 SetSample(std::forward<SampleT>(value));
100 return *this;
101 }
103
105
109 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
110 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
111 template <typename RoleArnT = Aws::String>
112 void SetRoleArn(RoleArnT&& value) {
113 m_roleArnHasBeenSet = true;
114 m_roleArn = std::forward<RoleArnT>(value);
115 }
116 template <typename RoleArnT = Aws::String>
118 SetRoleArn(std::forward<RoleArnT>(value));
119 return *this;
120 }
122
124
127 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
130 void SetTags(TagsT&& value) {
131 m_tagsHasBeenSet = true;
132 m_tags = std::forward<TagsT>(value);
133 }
134 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
136 SetTags(std::forward<TagsT>(value));
137 return *this;
138 }
139 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
140 CreateProjectRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
141 m_tagsHasBeenSet = true;
142 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
143 return *this;
144 }
146 private:
147 Aws::String m_datasetName;
148
149 Aws::String m_name;
150
151 Aws::String m_recipeName;
152
153 Sample m_sample;
154
155 Aws::String m_roleArn;
156
158 bool m_datasetNameHasBeenSet = false;
159 bool m_nameHasBeenSet = false;
160 bool m_recipeNameHasBeenSet = false;
161 bool m_sampleHasBeenSet = false;
162 bool m_roleArnHasBeenSet = false;
163 bool m_tagsHasBeenSet = false;
164};
165
166} // namespace Model
167} // namespace GlueDataBrew
168} // namespace Aws
CreateProjectRequest & WithRoleArn(RoleArnT &&value)
AWS_GLUEDATABREW_API CreateProjectRequest()=default
CreateProjectRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
CreateProjectRequest & WithRecipeName(RecipeNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateProjectRequest & WithTags(TagsT &&value)
AWS_GLUEDATABREW_API Aws::String SerializePayload() const override
CreateProjectRequest & WithName(NameT &&value)
CreateProjectRequest & WithDatasetName(DatasetNameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateProjectRequest & WithSample(SampleT &&value)
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