AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateFlywheelRequest.h
1
6#pragma once
7#include <aws/comprehend/ComprehendRequest.h>
8#include <aws/comprehend/Comprehend_EXPORTS.h>
9#include <aws/comprehend/model/DataSecurityConfig.h>
10#include <aws/comprehend/model/ModelType.h>
11#include <aws/comprehend/model/Tag.h>
12#include <aws/comprehend/model/TaskConfig.h>
13#include <aws/core/utils/UUID.h>
14#include <aws/core/utils/memory/stl/AWSString.h>
15#include <aws/core/utils/memory/stl/AWSVector.h>
16
17#include <utility>
18
19namespace Aws {
20namespace Comprehend {
21namespace Model {
22
26 public:
27 AWS_COMPREHEND_API CreateFlywheelRequest() = 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 "CreateFlywheel"; }
34
35 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
40
43 inline const Aws::String& GetFlywheelName() const { return m_flywheelName; }
44 inline bool FlywheelNameHasBeenSet() const { return m_flywheelNameHasBeenSet; }
45 template <typename FlywheelNameT = Aws::String>
46 void SetFlywheelName(FlywheelNameT&& value) {
47 m_flywheelNameHasBeenSet = true;
48 m_flywheelName = std::forward<FlywheelNameT>(value);
49 }
50 template <typename FlywheelNameT = Aws::String>
51 CreateFlywheelRequest& WithFlywheelName(FlywheelNameT&& value) {
52 SetFlywheelName(std::forward<FlywheelNameT>(value));
53 return *this;
54 }
56
58
63 inline const Aws::String& GetActiveModelArn() const { return m_activeModelArn; }
64 inline bool ActiveModelArnHasBeenSet() const { return m_activeModelArnHasBeenSet; }
65 template <typename ActiveModelArnT = Aws::String>
66 void SetActiveModelArn(ActiveModelArnT&& value) {
67 m_activeModelArnHasBeenSet = true;
68 m_activeModelArn = std::forward<ActiveModelArnT>(value);
69 }
70 template <typename ActiveModelArnT = Aws::String>
71 CreateFlywheelRequest& WithActiveModelArn(ActiveModelArnT&& value) {
72 SetActiveModelArn(std::forward<ActiveModelArnT>(value));
73 return *this;
74 }
76
78
82 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
83 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
84 template <typename DataAccessRoleArnT = Aws::String>
85 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) {
86 m_dataAccessRoleArnHasBeenSet = true;
87 m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value);
88 }
89 template <typename DataAccessRoleArnT = Aws::String>
90 CreateFlywheelRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) {
91 SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value));
92 return *this;
93 }
95
97
101 inline const TaskConfig& GetTaskConfig() const { return m_taskConfig; }
102 inline bool TaskConfigHasBeenSet() const { return m_taskConfigHasBeenSet; }
103 template <typename TaskConfigT = TaskConfig>
104 void SetTaskConfig(TaskConfigT&& value) {
105 m_taskConfigHasBeenSet = true;
106 m_taskConfig = std::forward<TaskConfigT>(value);
107 }
108 template <typename TaskConfigT = TaskConfig>
109 CreateFlywheelRequest& WithTaskConfig(TaskConfigT&& value) {
110 SetTaskConfig(std::forward<TaskConfigT>(value));
111 return *this;
112 }
114
116
120 inline ModelType GetModelType() const { return m_modelType; }
121 inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
122 inline void SetModelType(ModelType value) {
123 m_modelTypeHasBeenSet = true;
124 m_modelType = value;
125 }
127 SetModelType(value);
128 return *this;
129 }
131
133
138 inline const Aws::String& GetDataLakeS3Uri() const { return m_dataLakeS3Uri; }
139 inline bool DataLakeS3UriHasBeenSet() const { return m_dataLakeS3UriHasBeenSet; }
140 template <typename DataLakeS3UriT = Aws::String>
141 void SetDataLakeS3Uri(DataLakeS3UriT&& value) {
142 m_dataLakeS3UriHasBeenSet = true;
143 m_dataLakeS3Uri = std::forward<DataLakeS3UriT>(value);
144 }
145 template <typename DataLakeS3UriT = Aws::String>
146 CreateFlywheelRequest& WithDataLakeS3Uri(DataLakeS3UriT&& value) {
147 SetDataLakeS3Uri(std::forward<DataLakeS3UriT>(value));
148 return *this;
149 }
151
153
156 inline const DataSecurityConfig& GetDataSecurityConfig() const { return m_dataSecurityConfig; }
157 inline bool DataSecurityConfigHasBeenSet() const { return m_dataSecurityConfigHasBeenSet; }
158 template <typename DataSecurityConfigT = DataSecurityConfig>
159 void SetDataSecurityConfig(DataSecurityConfigT&& value) {
160 m_dataSecurityConfigHasBeenSet = true;
161 m_dataSecurityConfig = std::forward<DataSecurityConfigT>(value);
162 }
163 template <typename DataSecurityConfigT = DataSecurityConfig>
164 CreateFlywheelRequest& WithDataSecurityConfig(DataSecurityConfigT&& value) {
165 SetDataSecurityConfig(std::forward<DataSecurityConfigT>(value));
166 return *this;
167 }
169
171
175 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
176 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
177 template <typename ClientRequestTokenT = Aws::String>
178 void SetClientRequestToken(ClientRequestTokenT&& value) {
179 m_clientRequestTokenHasBeenSet = true;
180 m_clientRequestToken = std::forward<ClientRequestTokenT>(value);
181 }
182 template <typename ClientRequestTokenT = Aws::String>
183 CreateFlywheelRequest& WithClientRequestToken(ClientRequestTokenT&& value) {
184 SetClientRequestToken(std::forward<ClientRequestTokenT>(value));
185 return *this;
186 }
188
190
193 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
194 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
195 template <typename TagsT = Aws::Vector<Tag>>
196 void SetTags(TagsT&& value) {
197 m_tagsHasBeenSet = true;
198 m_tags = std::forward<TagsT>(value);
199 }
200 template <typename TagsT = Aws::Vector<Tag>>
202 SetTags(std::forward<TagsT>(value));
203 return *this;
204 }
205 template <typename TagsT = Tag>
207 m_tagsHasBeenSet = true;
208 m_tags.emplace_back(std::forward<TagsT>(value));
209 return *this;
210 }
212 private:
213 Aws::String m_flywheelName;
214
215 Aws::String m_activeModelArn;
216
217 Aws::String m_dataAccessRoleArn;
218
219 TaskConfig m_taskConfig;
220
221 ModelType m_modelType{ModelType::NOT_SET};
222
223 Aws::String m_dataLakeS3Uri;
224
225 DataSecurityConfig m_dataSecurityConfig;
226
227 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
228
229 Aws::Vector<Tag> m_tags;
230 bool m_flywheelNameHasBeenSet = false;
231 bool m_activeModelArnHasBeenSet = false;
232 bool m_dataAccessRoleArnHasBeenSet = false;
233 bool m_taskConfigHasBeenSet = false;
234 bool m_modelTypeHasBeenSet = false;
235 bool m_dataLakeS3UriHasBeenSet = false;
236 bool m_dataSecurityConfigHasBeenSet = false;
237 bool m_clientRequestTokenHasBeenSet = true;
238 bool m_tagsHasBeenSet = false;
239};
240
241} // namespace Model
242} // namespace Comprehend
243} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateFlywheelRequest & WithDataAccessRoleArn(DataAccessRoleArnT &&value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
void SetDataAccessRoleArn(DataAccessRoleArnT &&value)
AWS_COMPREHEND_API CreateFlywheelRequest()=default
CreateFlywheelRequest & WithDataSecurityConfig(DataSecurityConfigT &&value)
CreateFlywheelRequest & WithFlywheelName(FlywheelNameT &&value)
CreateFlywheelRequest & WithTags(TagsT &&value)
void SetDataSecurityConfig(DataSecurityConfigT &&value)
CreateFlywheelRequest & WithClientRequestToken(ClientRequestTokenT &&value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetClientRequestToken(ClientRequestTokenT &&value)
CreateFlywheelRequest & WithModelType(ModelType value)
CreateFlywheelRequest & AddTags(TagsT &&value)
const DataSecurityConfig & GetDataSecurityConfig() const
CreateFlywheelRequest & WithActiveModelArn(ActiveModelArnT &&value)
CreateFlywheelRequest & WithTaskConfig(TaskConfigT &&value)
CreateFlywheelRequest & WithDataLakeS3Uri(DataLakeS3UriT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector