AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
CreateInferenceExperimentRequest.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/InferenceExperimentDataStorageConfig.h>
12#include <aws/sagemaker/model/InferenceExperimentSchedule.h>
13#include <aws/sagemaker/model/InferenceExperimentType.h>
14#include <aws/sagemaker/model/ModelVariantConfig.h>
15#include <aws/sagemaker/model/ShadowModeConfig.h>
16#include <aws/sagemaker/model/Tag.h>
17
18#include <utility>
19
20namespace Aws {
21namespace SageMaker {
22namespace Model {
23
27 public:
28 AWS_SAGEMAKER_API CreateInferenceExperimentRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateInferenceExperiment"; }
35
36 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
37
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template <typename NameT = Aws::String>
47 void SetName(NameT&& value) {
48 m_nameHasBeenSet = true;
49 m_name = std::forward<NameT>(value);
50 }
51 template <typename NameT = Aws::String>
53 SetName(std::forward<NameT>(value));
54 return *this;
55 }
57
59
66 inline InferenceExperimentType GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(InferenceExperimentType value) {
69 m_typeHasBeenSet = true;
70 m_type = value;
71 }
73 SetType(value);
74 return *this;
75 }
77
79
84 inline const InferenceExperimentSchedule& GetSchedule() const { return m_schedule; }
85 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
86 template <typename ScheduleT = InferenceExperimentSchedule>
87 void SetSchedule(ScheduleT&& value) {
88 m_scheduleHasBeenSet = true;
89 m_schedule = std::forward<ScheduleT>(value);
90 }
91 template <typename ScheduleT = InferenceExperimentSchedule>
93 SetSchedule(std::forward<ScheduleT>(value));
94 return *this;
95 }
97
99
102 inline const Aws::String& GetDescription() const { return m_description; }
103 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
104 template <typename DescriptionT = Aws::String>
105 void SetDescription(DescriptionT&& value) {
106 m_descriptionHasBeenSet = true;
107 m_description = std::forward<DescriptionT>(value);
108 }
109 template <typename DescriptionT = Aws::String>
111 SetDescription(std::forward<DescriptionT>(value));
112 return *this;
113 }
115
117
122 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
123 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
124 template <typename RoleArnT = Aws::String>
125 void SetRoleArn(RoleArnT&& value) {
126 m_roleArnHasBeenSet = true;
127 m_roleArn = std::forward<RoleArnT>(value);
128 }
129 template <typename RoleArnT = Aws::String>
131 SetRoleArn(std::forward<RoleArnT>(value));
132 return *this;
133 }
135
137
141 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
142 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
143 template <typename EndpointNameT = Aws::String>
144 void SetEndpointName(EndpointNameT&& value) {
145 m_endpointNameHasBeenSet = true;
146 m_endpointName = std::forward<EndpointNameT>(value);
147 }
148 template <typename EndpointNameT = Aws::String>
150 SetEndpointName(std::forward<EndpointNameT>(value));
151 return *this;
152 }
154
156
162 inline const Aws::Vector<ModelVariantConfig>& GetModelVariants() const { return m_modelVariants; }
163 inline bool ModelVariantsHasBeenSet() const { return m_modelVariantsHasBeenSet; }
164 template <typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
165 void SetModelVariants(ModelVariantsT&& value) {
166 m_modelVariantsHasBeenSet = true;
167 m_modelVariants = std::forward<ModelVariantsT>(value);
168 }
169 template <typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
171 SetModelVariants(std::forward<ModelVariantsT>(value));
172 return *this;
173 }
174 template <typename ModelVariantsT = ModelVariantConfig>
176 m_modelVariantsHasBeenSet = true;
177 m_modelVariants.emplace_back(std::forward<ModelVariantsT>(value));
178 return *this;
179 }
181
183
190 inline const InferenceExperimentDataStorageConfig& GetDataStorageConfig() const { return m_dataStorageConfig; }
191 inline bool DataStorageConfigHasBeenSet() const { return m_dataStorageConfigHasBeenSet; }
192 template <typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
193 void SetDataStorageConfig(DataStorageConfigT&& value) {
194 m_dataStorageConfigHasBeenSet = true;
195 m_dataStorageConfig = std::forward<DataStorageConfigT>(value);
196 }
197 template <typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
199 SetDataStorageConfig(std::forward<DataStorageConfigT>(value));
200 return *this;
201 }
203
205
212 inline const ShadowModeConfig& GetShadowModeConfig() const { return m_shadowModeConfig; }
213 inline bool ShadowModeConfigHasBeenSet() const { return m_shadowModeConfigHasBeenSet; }
214 template <typename ShadowModeConfigT = ShadowModeConfig>
215 void SetShadowModeConfig(ShadowModeConfigT&& value) {
216 m_shadowModeConfigHasBeenSet = true;
217 m_shadowModeConfig = std::forward<ShadowModeConfigT>(value);
218 }
219 template <typename ShadowModeConfigT = ShadowModeConfig>
221 SetShadowModeConfig(std::forward<ShadowModeConfigT>(value));
222 return *this;
223 }
225
227
257 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
258 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
259 template <typename KmsKeyT = Aws::String>
260 void SetKmsKey(KmsKeyT&& value) {
261 m_kmsKeyHasBeenSet = true;
262 m_kmsKey = std::forward<KmsKeyT>(value);
263 }
264 template <typename KmsKeyT = Aws::String>
266 SetKmsKey(std::forward<KmsKeyT>(value));
267 return *this;
268 }
270
272
279 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
280 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
281 template <typename TagsT = Aws::Vector<Tag>>
282 void SetTags(TagsT&& value) {
283 m_tagsHasBeenSet = true;
284 m_tags = std::forward<TagsT>(value);
285 }
286 template <typename TagsT = Aws::Vector<Tag>>
288 SetTags(std::forward<TagsT>(value));
289 return *this;
290 }
291 template <typename TagsT = Tag>
293 m_tagsHasBeenSet = true;
294 m_tags.emplace_back(std::forward<TagsT>(value));
295 return *this;
296 }
298 private:
299 Aws::String m_name;
300
302
303 InferenceExperimentSchedule m_schedule;
304
305 Aws::String m_description;
306
307 Aws::String m_roleArn;
308
309 Aws::String m_endpointName;
310
311 Aws::Vector<ModelVariantConfig> m_modelVariants;
312
313 InferenceExperimentDataStorageConfig m_dataStorageConfig;
314
315 ShadowModeConfig m_shadowModeConfig;
316
317 Aws::String m_kmsKey;
318
319 Aws::Vector<Tag> m_tags;
320 bool m_nameHasBeenSet = false;
321 bool m_typeHasBeenSet = false;
322 bool m_scheduleHasBeenSet = false;
323 bool m_descriptionHasBeenSet = false;
324 bool m_roleArnHasBeenSet = false;
325 bool m_endpointNameHasBeenSet = false;
326 bool m_modelVariantsHasBeenSet = false;
327 bool m_dataStorageConfigHasBeenSet = false;
328 bool m_shadowModeConfigHasBeenSet = false;
329 bool m_kmsKeyHasBeenSet = false;
330 bool m_tagsHasBeenSet = false;
331};
332
333} // namespace Model
334} // namespace SageMaker
335} // namespace Aws
CreateInferenceExperimentRequest & WithName(NameT &&value)
CreateInferenceExperimentRequest & WithModelVariants(ModelVariantsT &&value)
const Aws::Vector< ModelVariantConfig > & GetModelVariants() const
CreateInferenceExperimentRequest & WithType(InferenceExperimentType value)
CreateInferenceExperimentRequest & WithRoleArn(RoleArnT &&value)
CreateInferenceExperimentRequest & WithSchedule(ScheduleT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceExperimentRequest & WithDataStorageConfig(DataStorageConfigT &&value)
CreateInferenceExperimentRequest & AddModelVariants(ModelVariantsT &&value)
CreateInferenceExperimentRequest & WithDescription(DescriptionT &&value)
CreateInferenceExperimentRequest & WithShadowModeConfig(ShadowModeConfigT &&value)
CreateInferenceExperimentRequest & WithEndpointName(EndpointNameT &&value)
CreateInferenceExperimentRequest & WithTags(TagsT &&value)
CreateInferenceExperimentRequest & WithKmsKey(KmsKeyT &&value)
CreateInferenceExperimentRequest & AddTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InferenceExperimentDataStorageConfig & GetDataStorageConfig() const
AWS_SAGEMAKER_API CreateInferenceExperimentRequest()=default
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