AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateFeatureGroupRequest.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/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/FeatureDefinition.h>
12#include <aws/sagemaker/model/OfflineStoreConfig.h>
13#include <aws/sagemaker/model/OnlineStoreConfig.h>
14#include <aws/sagemaker/model/Tag.h>
15#include <aws/sagemaker/model/ThroughputConfig.h>
16
17#include <utility>
18
19namespace Aws {
20namespace SageMaker {
21namespace Model {
22
26 public:
27 AWS_SAGEMAKER_API CreateFeatureGroupRequest() = 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 "CreateFeatureGroup"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
40
47 inline const Aws::String& GetFeatureGroupName() const { return m_featureGroupName; }
48 inline bool FeatureGroupNameHasBeenSet() const { return m_featureGroupNameHasBeenSet; }
49 template <typename FeatureGroupNameT = Aws::String>
50 void SetFeatureGroupName(FeatureGroupNameT&& value) {
51 m_featureGroupNameHasBeenSet = true;
52 m_featureGroupName = std::forward<FeatureGroupNameT>(value);
53 }
54 template <typename FeatureGroupNameT = Aws::String>
55 CreateFeatureGroupRequest& WithFeatureGroupName(FeatureGroupNameT&& value) {
56 SetFeatureGroupName(std::forward<FeatureGroupNameT>(value));
57 return *this;
58 }
60
62
73 inline const Aws::String& GetRecordIdentifierFeatureName() const { return m_recordIdentifierFeatureName; }
74 inline bool RecordIdentifierFeatureNameHasBeenSet() const { return m_recordIdentifierFeatureNameHasBeenSet; }
75 template <typename RecordIdentifierFeatureNameT = Aws::String>
76 void SetRecordIdentifierFeatureName(RecordIdentifierFeatureNameT&& value) {
77 m_recordIdentifierFeatureNameHasBeenSet = true;
78 m_recordIdentifierFeatureName = std::forward<RecordIdentifierFeatureNameT>(value);
79 }
80 template <typename RecordIdentifierFeatureNameT = Aws::String>
81 CreateFeatureGroupRequest& WithRecordIdentifierFeatureName(RecordIdentifierFeatureNameT&& value) {
82 SetRecordIdentifierFeatureName(std::forward<RecordIdentifierFeatureNameT>(value));
83 return *this;
84 }
86
88
107 inline const Aws::String& GetEventTimeFeatureName() const { return m_eventTimeFeatureName; }
108 inline bool EventTimeFeatureNameHasBeenSet() const { return m_eventTimeFeatureNameHasBeenSet; }
109 template <typename EventTimeFeatureNameT = Aws::String>
110 void SetEventTimeFeatureName(EventTimeFeatureNameT&& value) {
111 m_eventTimeFeatureNameHasBeenSet = true;
112 m_eventTimeFeatureName = std::forward<EventTimeFeatureNameT>(value);
113 }
114 template <typename EventTimeFeatureNameT = Aws::String>
115 CreateFeatureGroupRequest& WithEventTimeFeatureName(EventTimeFeatureNameT&& value) {
116 SetEventTimeFeatureName(std::forward<EventTimeFeatureNameT>(value));
117 return *this;
118 }
120
122
131 inline const Aws::Vector<FeatureDefinition>& GetFeatureDefinitions() const { return m_featureDefinitions; }
132 inline bool FeatureDefinitionsHasBeenSet() const { return m_featureDefinitionsHasBeenSet; }
133 template <typename FeatureDefinitionsT = Aws::Vector<FeatureDefinition>>
134 void SetFeatureDefinitions(FeatureDefinitionsT&& value) {
135 m_featureDefinitionsHasBeenSet = true;
136 m_featureDefinitions = std::forward<FeatureDefinitionsT>(value);
137 }
138 template <typename FeatureDefinitionsT = Aws::Vector<FeatureDefinition>>
139 CreateFeatureGroupRequest& WithFeatureDefinitions(FeatureDefinitionsT&& value) {
140 SetFeatureDefinitions(std::forward<FeatureDefinitionsT>(value));
141 return *this;
142 }
143 template <typename FeatureDefinitionsT = FeatureDefinition>
144 CreateFeatureGroupRequest& AddFeatureDefinitions(FeatureDefinitionsT&& value) {
145 m_featureDefinitionsHasBeenSet = true;
146 m_featureDefinitions.emplace_back(std::forward<FeatureDefinitionsT>(value));
147 return *this;
148 }
150
152
159 inline const OnlineStoreConfig& GetOnlineStoreConfig() const { return m_onlineStoreConfig; }
160 inline bool OnlineStoreConfigHasBeenSet() const { return m_onlineStoreConfigHasBeenSet; }
161 template <typename OnlineStoreConfigT = OnlineStoreConfig>
162 void SetOnlineStoreConfig(OnlineStoreConfigT&& value) {
163 m_onlineStoreConfigHasBeenSet = true;
164 m_onlineStoreConfig = std::forward<OnlineStoreConfigT>(value);
165 }
166 template <typename OnlineStoreConfigT = OnlineStoreConfig>
168 SetOnlineStoreConfig(std::forward<OnlineStoreConfigT>(value));
169 return *this;
170 }
172
174
190 inline const OfflineStoreConfig& GetOfflineStoreConfig() const { return m_offlineStoreConfig; }
191 inline bool OfflineStoreConfigHasBeenSet() const { return m_offlineStoreConfigHasBeenSet; }
192 template <typename OfflineStoreConfigT = OfflineStoreConfig>
193 void SetOfflineStoreConfig(OfflineStoreConfigT&& value) {
194 m_offlineStoreConfigHasBeenSet = true;
195 m_offlineStoreConfig = std::forward<OfflineStoreConfigT>(value);
196 }
197 template <typename OfflineStoreConfigT = OfflineStoreConfig>
198 CreateFeatureGroupRequest& WithOfflineStoreConfig(OfflineStoreConfigT&& value) {
199 SetOfflineStoreConfig(std::forward<OfflineStoreConfigT>(value));
200 return *this;
201 }
203
205
206 inline const ThroughputConfig& GetThroughputConfig() const { return m_throughputConfig; }
207 inline bool ThroughputConfigHasBeenSet() const { return m_throughputConfigHasBeenSet; }
208 template <typename ThroughputConfigT = ThroughputConfig>
209 void SetThroughputConfig(ThroughputConfigT&& value) {
210 m_throughputConfigHasBeenSet = true;
211 m_throughputConfig = std::forward<ThroughputConfigT>(value);
212 }
213 template <typename ThroughputConfigT = ThroughputConfig>
215 SetThroughputConfig(std::forward<ThroughputConfigT>(value));
216 return *this;
217 }
219
221
226 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
227 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
228 template <typename RoleArnT = Aws::String>
229 void SetRoleArn(RoleArnT&& value) {
230 m_roleArnHasBeenSet = true;
231 m_roleArn = std::forward<RoleArnT>(value);
232 }
233 template <typename RoleArnT = Aws::String>
235 SetRoleArn(std::forward<RoleArnT>(value));
236 return *this;
237 }
239
241
244 inline const Aws::String& GetDescription() const { return m_description; }
245 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
246 template <typename DescriptionT = Aws::String>
247 void SetDescription(DescriptionT&& value) {
248 m_descriptionHasBeenSet = true;
249 m_description = std::forward<DescriptionT>(value);
250 }
251 template <typename DescriptionT = Aws::String>
253 SetDescription(std::forward<DescriptionT>(value));
254 return *this;
255 }
257
259
263 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
264 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
265 template <typename TagsT = Aws::Vector<Tag>>
266 void SetTags(TagsT&& value) {
267 m_tagsHasBeenSet = true;
268 m_tags = std::forward<TagsT>(value);
269 }
270 template <typename TagsT = Aws::Vector<Tag>>
272 SetTags(std::forward<TagsT>(value));
273 return *this;
274 }
275 template <typename TagsT = Tag>
277 m_tagsHasBeenSet = true;
278 m_tags.emplace_back(std::forward<TagsT>(value));
279 return *this;
280 }
282 private:
283 Aws::String m_featureGroupName;
284
285 Aws::String m_recordIdentifierFeatureName;
286
287 Aws::String m_eventTimeFeatureName;
288
289 Aws::Vector<FeatureDefinition> m_featureDefinitions;
290
291 OnlineStoreConfig m_onlineStoreConfig;
292
293 OfflineStoreConfig m_offlineStoreConfig;
294
295 ThroughputConfig m_throughputConfig;
296
297 Aws::String m_roleArn;
298
299 Aws::String m_description;
300
301 Aws::Vector<Tag> m_tags;
302 bool m_featureGroupNameHasBeenSet = false;
303 bool m_recordIdentifierFeatureNameHasBeenSet = false;
304 bool m_eventTimeFeatureNameHasBeenSet = false;
305 bool m_featureDefinitionsHasBeenSet = false;
306 bool m_onlineStoreConfigHasBeenSet = false;
307 bool m_offlineStoreConfigHasBeenSet = false;
308 bool m_throughputConfigHasBeenSet = false;
309 bool m_roleArnHasBeenSet = false;
310 bool m_descriptionHasBeenSet = false;
311 bool m_tagsHasBeenSet = false;
312};
313
314} // namespace Model
315} // namespace SageMaker
316} // namespace Aws
CreateFeatureGroupRequest & WithFeatureDefinitions(FeatureDefinitionsT &&value)
CreateFeatureGroupRequest & WithEventTimeFeatureName(EventTimeFeatureNameT &&value)
AWS_SAGEMAKER_API CreateFeatureGroupRequest()=default
CreateFeatureGroupRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateFeatureGroupRequest & WithThroughputConfig(ThroughputConfigT &&value)
virtual const char * GetServiceRequestName() const override
CreateFeatureGroupRequest & WithRecordIdentifierFeatureName(RecordIdentifierFeatureNameT &&value)
CreateFeatureGroupRequest & WithRoleArn(RoleArnT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateFeatureGroupRequest & AddFeatureDefinitions(FeatureDefinitionsT &&value)
void SetRecordIdentifierFeatureName(RecordIdentifierFeatureNameT &&value)
CreateFeatureGroupRequest & AddTags(TagsT &&value)
CreateFeatureGroupRequest & WithFeatureGroupName(FeatureGroupNameT &&value)
CreateFeatureGroupRequest & WithOfflineStoreConfig(OfflineStoreConfigT &&value)
CreateFeatureGroupRequest & WithOnlineStoreConfig(OnlineStoreConfigT &&value)
CreateFeatureGroupRequest & WithDescription(DescriptionT &&value)
const Aws::Vector< FeatureDefinition > & GetFeatureDefinitions() const
void SetEventTimeFeatureName(EventTimeFeatureNameT &&value)
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