AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateInferenceExperimentRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sagemaker/model/InferenceExperimentType.h>
11#include <aws/sagemaker/model/InferenceExperimentSchedule.h>
12#include <aws/core/utils/memory/stl/AWSVector.h>
13#include <aws/sagemaker/model/InferenceExperimentDataStorageConfig.h>
14#include <aws/sagemaker/model/ShadowModeConfig.h>
15#include <aws/sagemaker/model/ModelVariantConfig.h>
16#include <aws/sagemaker/model/Tag.h>
17#include <utility>
18
19namespace Aws
20{
21namespace SageMaker
22{
23namespace Model
24{
25
29 {
30 public:
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateInferenceExperiment"; }
38
39 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
40
42
43
45
48 inline const Aws::String& GetName() const{ return m_name; }
49 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
50 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
51 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
52 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
53 inline CreateInferenceExperimentRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
54 inline CreateInferenceExperimentRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
55 inline CreateInferenceExperimentRequest& WithName(const char* value) { SetName(value); return *this;}
57
59
66 inline const InferenceExperimentType& GetType() const{ return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 inline void SetType(const InferenceExperimentType& value) { m_typeHasBeenSet = true; m_type = value; }
69 inline void SetType(InferenceExperimentType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
70 inline CreateInferenceExperimentRequest& WithType(const InferenceExperimentType& value) { SetType(value); return *this;}
71 inline CreateInferenceExperimentRequest& WithType(InferenceExperimentType&& value) { SetType(std::move(value)); return *this;}
73
75
80 inline const InferenceExperimentSchedule& GetSchedule() const{ return m_schedule; }
81 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
82 inline void SetSchedule(const InferenceExperimentSchedule& value) { m_scheduleHasBeenSet = true; m_schedule = value; }
83 inline void SetSchedule(InferenceExperimentSchedule&& value) { m_scheduleHasBeenSet = true; m_schedule = std::move(value); }
85 inline CreateInferenceExperimentRequest& WithSchedule(InferenceExperimentSchedule&& value) { SetSchedule(std::move(value)); return *this;}
87
89
92 inline const Aws::String& GetDescription() const{ return m_description; }
93 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
94 inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; }
95 inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); }
96 inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); }
97 inline CreateInferenceExperimentRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;}
98 inline CreateInferenceExperimentRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;}
99 inline CreateInferenceExperimentRequest& WithDescription(const char* value) { SetDescription(value); return *this;}
101
103
108 inline const Aws::String& GetRoleArn() const{ return m_roleArn; }
109 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
110 inline void SetRoleArn(const Aws::String& value) { m_roleArnHasBeenSet = true; m_roleArn = value; }
111 inline void SetRoleArn(Aws::String&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::move(value); }
112 inline void SetRoleArn(const char* value) { m_roleArnHasBeenSet = true; m_roleArn.assign(value); }
113 inline CreateInferenceExperimentRequest& WithRoleArn(const Aws::String& value) { SetRoleArn(value); return *this;}
114 inline CreateInferenceExperimentRequest& WithRoleArn(Aws::String&& value) { SetRoleArn(std::move(value)); return *this;}
115 inline CreateInferenceExperimentRequest& WithRoleArn(const char* value) { SetRoleArn(value); return *this;}
117
119
123 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
124 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
125 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
126 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
127 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
129 inline CreateInferenceExperimentRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
130 inline CreateInferenceExperimentRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
132
134
140 inline const Aws::Vector<ModelVariantConfig>& GetModelVariants() const{ return m_modelVariants; }
141 inline bool ModelVariantsHasBeenSet() const { return m_modelVariantsHasBeenSet; }
142 inline void SetModelVariants(const Aws::Vector<ModelVariantConfig>& value) { m_modelVariantsHasBeenSet = true; m_modelVariants = value; }
143 inline void SetModelVariants(Aws::Vector<ModelVariantConfig>&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants = std::move(value); }
146 inline CreateInferenceExperimentRequest& AddModelVariants(const ModelVariantConfig& value) { m_modelVariantsHasBeenSet = true; m_modelVariants.push_back(value); return *this; }
147 inline CreateInferenceExperimentRequest& AddModelVariants(ModelVariantConfig&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants.push_back(std::move(value)); return *this; }
149
151
158 inline const InferenceExperimentDataStorageConfig& GetDataStorageConfig() const{ return m_dataStorageConfig; }
159 inline bool DataStorageConfigHasBeenSet() const { return m_dataStorageConfigHasBeenSet; }
160 inline void SetDataStorageConfig(const InferenceExperimentDataStorageConfig& value) { m_dataStorageConfigHasBeenSet = true; m_dataStorageConfig = value; }
161 inline void SetDataStorageConfig(InferenceExperimentDataStorageConfig&& value) { m_dataStorageConfigHasBeenSet = true; m_dataStorageConfig = std::move(value); }
165
167
174 inline const ShadowModeConfig& GetShadowModeConfig() const{ return m_shadowModeConfig; }
175 inline bool ShadowModeConfigHasBeenSet() const { return m_shadowModeConfigHasBeenSet; }
176 inline void SetShadowModeConfig(const ShadowModeConfig& value) { m_shadowModeConfigHasBeenSet = true; m_shadowModeConfig = value; }
177 inline void SetShadowModeConfig(ShadowModeConfig&& value) { m_shadowModeConfigHasBeenSet = true; m_shadowModeConfig = std::move(value); }
181
183
213 inline const Aws::String& GetKmsKey() const{ return m_kmsKey; }
214 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
215 inline void SetKmsKey(const Aws::String& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = value; }
216 inline void SetKmsKey(Aws::String&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::move(value); }
217 inline void SetKmsKey(const char* value) { m_kmsKeyHasBeenSet = true; m_kmsKey.assign(value); }
218 inline CreateInferenceExperimentRequest& WithKmsKey(const Aws::String& value) { SetKmsKey(value); return *this;}
219 inline CreateInferenceExperimentRequest& WithKmsKey(Aws::String&& value) { SetKmsKey(std::move(value)); return *this;}
220 inline CreateInferenceExperimentRequest& WithKmsKey(const char* value) { SetKmsKey(value); return *this;}
222
224
231 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
232 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
233 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
234 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
235 inline CreateInferenceExperimentRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
236 inline CreateInferenceExperimentRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
237 inline CreateInferenceExperimentRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
238 inline CreateInferenceExperimentRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
240 private:
241
242 Aws::String m_name;
243 bool m_nameHasBeenSet = false;
244
246 bool m_typeHasBeenSet = false;
247
249 bool m_scheduleHasBeenSet = false;
250
251 Aws::String m_description;
252 bool m_descriptionHasBeenSet = false;
253
254 Aws::String m_roleArn;
255 bool m_roleArnHasBeenSet = false;
256
257 Aws::String m_endpointName;
258 bool m_endpointNameHasBeenSet = false;
259
260 Aws::Vector<ModelVariantConfig> m_modelVariants;
261 bool m_modelVariantsHasBeenSet = false;
262
263 InferenceExperimentDataStorageConfig m_dataStorageConfig;
264 bool m_dataStorageConfigHasBeenSet = false;
265
266 ShadowModeConfig m_shadowModeConfig;
267 bool m_shadowModeConfigHasBeenSet = false;
268
269 Aws::String m_kmsKey;
270 bool m_kmsKeyHasBeenSet = false;
271
272 Aws::Vector<Tag> m_tags;
273 bool m_tagsHasBeenSet = false;
274 };
275
276} // namespace Model
277} // namespace SageMaker
278} // namespace Aws
CreateInferenceExperimentRequest & AddTags(const Tag &value)
CreateInferenceExperimentRequest & WithShadowModeConfig(ShadowModeConfig &&value)
void SetModelVariants(const Aws::Vector< ModelVariantConfig > &value)
CreateInferenceExperimentRequest & WithDescription(const Aws::String &value)
CreateInferenceExperimentRequest & WithDescription(Aws::String &&value)
CreateInferenceExperimentRequest & WithRoleArn(const char *value)
const Aws::Vector< ModelVariantConfig > & GetModelVariants() const
CreateInferenceExperimentRequest & WithName(const Aws::String &value)
CreateInferenceExperimentRequest & WithEndpointName(Aws::String &&value)
CreateInferenceExperimentRequest & WithSchedule(const InferenceExperimentSchedule &value)
CreateInferenceExperimentRequest & WithSchedule(InferenceExperimentSchedule &&value)
CreateInferenceExperimentRequest & AddModelVariants(const ModelVariantConfig &value)
CreateInferenceExperimentRequest & WithModelVariants(const Aws::Vector< ModelVariantConfig > &value)
CreateInferenceExperimentRequest & WithDataStorageConfig(const InferenceExperimentDataStorageConfig &value)
CreateInferenceExperimentRequest & WithType(InferenceExperimentType &&value)
void SetDataStorageConfig(const InferenceExperimentDataStorageConfig &value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceExperimentRequest & WithType(const InferenceExperimentType &value)
void SetModelVariants(Aws::Vector< ModelVariantConfig > &&value)
CreateInferenceExperimentRequest & WithEndpointName(const char *value)
CreateInferenceExperimentRequest & WithShadowModeConfig(const ShadowModeConfig &value)
CreateInferenceExperimentRequest & WithRoleArn(const Aws::String &value)
CreateInferenceExperimentRequest & WithDataStorageConfig(InferenceExperimentDataStorageConfig &&value)
CreateInferenceExperimentRequest & WithRoleArn(Aws::String &&value)
CreateInferenceExperimentRequest & AddModelVariants(ModelVariantConfig &&value)
CreateInferenceExperimentRequest & WithName(Aws::String &&value)
void SetDataStorageConfig(InferenceExperimentDataStorageConfig &&value)
CreateInferenceExperimentRequest & WithModelVariants(Aws::Vector< ModelVariantConfig > &&value)
CreateInferenceExperimentRequest & WithEndpointName(const Aws::String &value)
CreateInferenceExperimentRequest & WithKmsKey(const Aws::String &value)
CreateInferenceExperimentRequest & WithDescription(const char *value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateInferenceExperimentRequest & WithKmsKey(Aws::String &&value)
CreateInferenceExperimentRequest & WithName(const char *value)
CreateInferenceExperimentRequest & WithKmsKey(const char *value)
const InferenceExperimentDataStorageConfig & GetDataStorageConfig() const
CreateInferenceExperimentRequest & WithTags(Aws::Vector< Tag > &&value)
CreateInferenceExperimentRequest & WithTags(const Aws::Vector< Tag > &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