AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
31 AWS_SAGEMAKER_API CreateInferenceExperimentRequest() = default;
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 template<typename NameT = Aws::String>
51 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
52 template<typename NameT = Aws::String>
53 CreateInferenceExperimentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
55
57
64 inline InferenceExperimentType GetType() const { return m_type; }
65 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
66 inline void SetType(InferenceExperimentType value) { m_typeHasBeenSet = true; m_type = value; }
69
71
76 inline const InferenceExperimentSchedule& GetSchedule() const { return m_schedule; }
77 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
78 template<typename ScheduleT = InferenceExperimentSchedule>
79 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
80 template<typename ScheduleT = InferenceExperimentSchedule>
81 CreateInferenceExperimentRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
83
85
88 inline const Aws::String& GetDescription() const { return m_description; }
89 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
90 template<typename DescriptionT = Aws::String>
91 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
92 template<typename DescriptionT = Aws::String>
93 CreateInferenceExperimentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
95
97
102 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
103 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
104 template<typename RoleArnT = Aws::String>
105 void SetRoleArn(RoleArnT&& value) { m_roleArnHasBeenSet = true; m_roleArn = std::forward<RoleArnT>(value); }
106 template<typename RoleArnT = Aws::String>
107 CreateInferenceExperimentRequest& WithRoleArn(RoleArnT&& value) { SetRoleArn(std::forward<RoleArnT>(value)); return *this;}
109
111
115 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
116 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
117 template<typename EndpointNameT = Aws::String>
118 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
119 template<typename EndpointNameT = Aws::String>
120 CreateInferenceExperimentRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
122
124
130 inline const Aws::Vector<ModelVariantConfig>& GetModelVariants() const { return m_modelVariants; }
131 inline bool ModelVariantsHasBeenSet() const { return m_modelVariantsHasBeenSet; }
132 template<typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
133 void SetModelVariants(ModelVariantsT&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants = std::forward<ModelVariantsT>(value); }
134 template<typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
135 CreateInferenceExperimentRequest& WithModelVariants(ModelVariantsT&& value) { SetModelVariants(std::forward<ModelVariantsT>(value)); return *this;}
136 template<typename ModelVariantsT = ModelVariantConfig>
137 CreateInferenceExperimentRequest& AddModelVariants(ModelVariantsT&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants.emplace_back(std::forward<ModelVariantsT>(value)); return *this; }
139
141
148 inline const InferenceExperimentDataStorageConfig& GetDataStorageConfig() const { return m_dataStorageConfig; }
149 inline bool DataStorageConfigHasBeenSet() const { return m_dataStorageConfigHasBeenSet; }
150 template<typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
151 void SetDataStorageConfig(DataStorageConfigT&& value) { m_dataStorageConfigHasBeenSet = true; m_dataStorageConfig = std::forward<DataStorageConfigT>(value); }
152 template<typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
153 CreateInferenceExperimentRequest& WithDataStorageConfig(DataStorageConfigT&& value) { SetDataStorageConfig(std::forward<DataStorageConfigT>(value)); return *this;}
155
157
164 inline const ShadowModeConfig& GetShadowModeConfig() const { return m_shadowModeConfig; }
165 inline bool ShadowModeConfigHasBeenSet() const { return m_shadowModeConfigHasBeenSet; }
166 template<typename ShadowModeConfigT = ShadowModeConfig>
167 void SetShadowModeConfig(ShadowModeConfigT&& value) { m_shadowModeConfigHasBeenSet = true; m_shadowModeConfig = std::forward<ShadowModeConfigT>(value); }
168 template<typename ShadowModeConfigT = ShadowModeConfig>
169 CreateInferenceExperimentRequest& WithShadowModeConfig(ShadowModeConfigT&& value) { SetShadowModeConfig(std::forward<ShadowModeConfigT>(value)); return *this;}
171
173
203 inline const Aws::String& GetKmsKey() const { return m_kmsKey; }
204 inline bool KmsKeyHasBeenSet() const { return m_kmsKeyHasBeenSet; }
205 template<typename KmsKeyT = Aws::String>
206 void SetKmsKey(KmsKeyT&& value) { m_kmsKeyHasBeenSet = true; m_kmsKey = std::forward<KmsKeyT>(value); }
207 template<typename KmsKeyT = Aws::String>
208 CreateInferenceExperimentRequest& WithKmsKey(KmsKeyT&& value) { SetKmsKey(std::forward<KmsKeyT>(value)); return *this;}
210
212
219 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
220 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
221 template<typename TagsT = Aws::Vector<Tag>>
222 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
223 template<typename TagsT = Aws::Vector<Tag>>
224 CreateInferenceExperimentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
225 template<typename TagsT = Tag>
226 CreateInferenceExperimentRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
228 private:
229
230 Aws::String m_name;
231 bool m_nameHasBeenSet = false;
232
234 bool m_typeHasBeenSet = false;
235
236 InferenceExperimentSchedule m_schedule;
237 bool m_scheduleHasBeenSet = false;
238
239 Aws::String m_description;
240 bool m_descriptionHasBeenSet = false;
241
242 Aws::String m_roleArn;
243 bool m_roleArnHasBeenSet = false;
244
245 Aws::String m_endpointName;
246 bool m_endpointNameHasBeenSet = false;
247
248 Aws::Vector<ModelVariantConfig> m_modelVariants;
249 bool m_modelVariantsHasBeenSet = false;
250
251 InferenceExperimentDataStorageConfig m_dataStorageConfig;
252 bool m_dataStorageConfigHasBeenSet = false;
253
254 ShadowModeConfig m_shadowModeConfig;
255 bool m_shadowModeConfigHasBeenSet = false;
256
257 Aws::String m_kmsKey;
258 bool m_kmsKeyHasBeenSet = false;
259
260 Aws::Vector<Tag> m_tags;
261 bool m_tagsHasBeenSet = false;
262 };
263
264} // namespace Model
265} // namespace SageMaker
266} // 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