AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateFlywheelRequest.h
1
6#pragma once
7#include <aws/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/comprehend/model/TaskConfig.h>
11#include <aws/comprehend/model/ModelType.h>
12#include <aws/comprehend/model/DataSecurityConfig.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14#include <aws/comprehend/model/Tag.h>
15#include <utility>
16#include <aws/core/utils/UUID.h>
17
18namespace Aws
19{
20namespace Comprehend
21{
22namespace Model
23{
24
28 {
29 public:
30 AWS_COMPREHEND_API CreateFlywheelRequest() = default;
31
32 // Service request name is the Operation name which will send this request out,
33 // each operation should has unique request name, so that we can get operation's name from this request.
34 // Note: this is not true for response, multiple operations may have the same response name,
35 // so we can not get operation's name from response.
36 inline virtual const char* GetServiceRequestName() const override { return "CreateFlywheel"; }
37
38 AWS_COMPREHEND_API Aws::String SerializePayload() const override;
39
41
42
44
47 inline const Aws::String& GetFlywheelName() const { return m_flywheelName; }
48 inline bool FlywheelNameHasBeenSet() const { return m_flywheelNameHasBeenSet; }
49 template<typename FlywheelNameT = Aws::String>
50 void SetFlywheelName(FlywheelNameT&& value) { m_flywheelNameHasBeenSet = true; m_flywheelName = std::forward<FlywheelNameT>(value); }
51 template<typename FlywheelNameT = Aws::String>
52 CreateFlywheelRequest& WithFlywheelName(FlywheelNameT&& value) { SetFlywheelName(std::forward<FlywheelNameT>(value)); return *this;}
54
56
61 inline const Aws::String& GetActiveModelArn() const { return m_activeModelArn; }
62 inline bool ActiveModelArnHasBeenSet() const { return m_activeModelArnHasBeenSet; }
63 template<typename ActiveModelArnT = Aws::String>
64 void SetActiveModelArn(ActiveModelArnT&& value) { m_activeModelArnHasBeenSet = true; m_activeModelArn = std::forward<ActiveModelArnT>(value); }
65 template<typename ActiveModelArnT = Aws::String>
66 CreateFlywheelRequest& WithActiveModelArn(ActiveModelArnT&& value) { SetActiveModelArn(std::forward<ActiveModelArnT>(value)); return *this;}
68
70
74 inline const Aws::String& GetDataAccessRoleArn() const { return m_dataAccessRoleArn; }
75 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
76 template<typename DataAccessRoleArnT = Aws::String>
77 void SetDataAccessRoleArn(DataAccessRoleArnT&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::forward<DataAccessRoleArnT>(value); }
78 template<typename DataAccessRoleArnT = Aws::String>
79 CreateFlywheelRequest& WithDataAccessRoleArn(DataAccessRoleArnT&& value) { SetDataAccessRoleArn(std::forward<DataAccessRoleArnT>(value)); return *this;}
81
83
87 inline const TaskConfig& GetTaskConfig() const { return m_taskConfig; }
88 inline bool TaskConfigHasBeenSet() const { return m_taskConfigHasBeenSet; }
89 template<typename TaskConfigT = TaskConfig>
90 void SetTaskConfig(TaskConfigT&& value) { m_taskConfigHasBeenSet = true; m_taskConfig = std::forward<TaskConfigT>(value); }
91 template<typename TaskConfigT = TaskConfig>
92 CreateFlywheelRequest& WithTaskConfig(TaskConfigT&& value) { SetTaskConfig(std::forward<TaskConfigT>(value)); return *this;}
94
96
100 inline ModelType GetModelType() const { return m_modelType; }
101 inline bool ModelTypeHasBeenSet() const { return m_modelTypeHasBeenSet; }
102 inline void SetModelType(ModelType value) { m_modelTypeHasBeenSet = true; m_modelType = value; }
103 inline CreateFlywheelRequest& WithModelType(ModelType value) { SetModelType(value); return *this;}
105
107
112 inline const Aws::String& GetDataLakeS3Uri() const { return m_dataLakeS3Uri; }
113 inline bool DataLakeS3UriHasBeenSet() const { return m_dataLakeS3UriHasBeenSet; }
114 template<typename DataLakeS3UriT = Aws::String>
115 void SetDataLakeS3Uri(DataLakeS3UriT&& value) { m_dataLakeS3UriHasBeenSet = true; m_dataLakeS3Uri = std::forward<DataLakeS3UriT>(value); }
116 template<typename DataLakeS3UriT = Aws::String>
117 CreateFlywheelRequest& WithDataLakeS3Uri(DataLakeS3UriT&& value) { SetDataLakeS3Uri(std::forward<DataLakeS3UriT>(value)); return *this;}
119
121
124 inline const DataSecurityConfig& GetDataSecurityConfig() const { return m_dataSecurityConfig; }
125 inline bool DataSecurityConfigHasBeenSet() const { return m_dataSecurityConfigHasBeenSet; }
126 template<typename DataSecurityConfigT = DataSecurityConfig>
127 void SetDataSecurityConfig(DataSecurityConfigT&& value) { m_dataSecurityConfigHasBeenSet = true; m_dataSecurityConfig = std::forward<DataSecurityConfigT>(value); }
128 template<typename DataSecurityConfigT = DataSecurityConfig>
129 CreateFlywheelRequest& WithDataSecurityConfig(DataSecurityConfigT&& value) { SetDataSecurityConfig(std::forward<DataSecurityConfigT>(value)); return *this;}
131
133
137 inline const Aws::String& GetClientRequestToken() const { return m_clientRequestToken; }
138 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
139 template<typename ClientRequestTokenT = Aws::String>
140 void SetClientRequestToken(ClientRequestTokenT&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::forward<ClientRequestTokenT>(value); }
141 template<typename ClientRequestTokenT = Aws::String>
142 CreateFlywheelRequest& WithClientRequestToken(ClientRequestTokenT&& value) { SetClientRequestToken(std::forward<ClientRequestTokenT>(value)); return *this;}
144
146
149 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
150 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
151 template<typename TagsT = Aws::Vector<Tag>>
152 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
153 template<typename TagsT = Aws::Vector<Tag>>
154 CreateFlywheelRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
155 template<typename TagsT = Tag>
156 CreateFlywheelRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
158 private:
159
160 Aws::String m_flywheelName;
161 bool m_flywheelNameHasBeenSet = false;
162
163 Aws::String m_activeModelArn;
164 bool m_activeModelArnHasBeenSet = false;
165
166 Aws::String m_dataAccessRoleArn;
167 bool m_dataAccessRoleArnHasBeenSet = false;
168
169 TaskConfig m_taskConfig;
170 bool m_taskConfigHasBeenSet = false;
171
172 ModelType m_modelType{ModelType::NOT_SET};
173 bool m_modelTypeHasBeenSet = false;
174
175 Aws::String m_dataLakeS3Uri;
176 bool m_dataLakeS3UriHasBeenSet = false;
177
178 DataSecurityConfig m_dataSecurityConfig;
179 bool m_dataSecurityConfigHasBeenSet = false;
180
181 Aws::String m_clientRequestToken{Aws::Utils::UUID::PseudoRandomUUID()};
182 bool m_clientRequestTokenHasBeenSet = true;
183
184 Aws::Vector<Tag> m_tags;
185 bool m_tagsHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace Comprehend
190} // 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