AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateInferenceExperimentRequest.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/ModelVariantConfig.h>
14#include <aws/sagemaker/model/ShadowModeConfig.h>
15
16#include <utility>
17
18namespace Aws {
19namespace SageMaker {
20namespace Model {
21
25 public:
26 AWS_SAGEMAKER_API UpdateInferenceExperimentRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "UpdateInferenceExperiment"; }
33
34 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
35
37
39
42 inline const Aws::String& GetName() const { return m_name; }
43 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
44 template <typename NameT = Aws::String>
45 void SetName(NameT&& value) {
46 m_nameHasBeenSet = true;
47 m_name = std::forward<NameT>(value);
48 }
49 template <typename NameT = Aws::String>
51 SetName(std::forward<NameT>(value));
52 return *this;
53 }
55
57
63 inline const InferenceExperimentSchedule& GetSchedule() const { return m_schedule; }
64 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
65 template <typename ScheduleT = InferenceExperimentSchedule>
66 void SetSchedule(ScheduleT&& value) {
67 m_scheduleHasBeenSet = true;
68 m_schedule = std::forward<ScheduleT>(value);
69 }
70 template <typename ScheduleT = InferenceExperimentSchedule>
72 SetSchedule(std::forward<ScheduleT>(value));
73 return *this;
74 }
76
78
81 inline const Aws::String& GetDescription() const { return m_description; }
82 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
83 template <typename DescriptionT = Aws::String>
84 void SetDescription(DescriptionT&& value) {
85 m_descriptionHasBeenSet = true;
86 m_description = std::forward<DescriptionT>(value);
87 }
88 template <typename DescriptionT = Aws::String>
90 SetDescription(std::forward<DescriptionT>(value));
91 return *this;
92 }
94
96
100 inline const Aws::Vector<ModelVariantConfig>& GetModelVariants() const { return m_modelVariants; }
101 inline bool ModelVariantsHasBeenSet() const { return m_modelVariantsHasBeenSet; }
102 template <typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
103 void SetModelVariants(ModelVariantsT&& value) {
104 m_modelVariantsHasBeenSet = true;
105 m_modelVariants = std::forward<ModelVariantsT>(value);
106 }
107 template <typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
109 SetModelVariants(std::forward<ModelVariantsT>(value));
110 return *this;
111 }
112 template <typename ModelVariantsT = ModelVariantConfig>
114 m_modelVariantsHasBeenSet = true;
115 m_modelVariants.emplace_back(std::forward<ModelVariantsT>(value));
116 return *this;
117 }
119
121
125 inline const InferenceExperimentDataStorageConfig& GetDataStorageConfig() const { return m_dataStorageConfig; }
126 inline bool DataStorageConfigHasBeenSet() const { return m_dataStorageConfigHasBeenSet; }
127 template <typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
128 void SetDataStorageConfig(DataStorageConfigT&& value) {
129 m_dataStorageConfigHasBeenSet = true;
130 m_dataStorageConfig = std::forward<DataStorageConfigT>(value);
131 }
132 template <typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
134 SetDataStorageConfig(std::forward<DataStorageConfigT>(value));
135 return *this;
136 }
138
140
147 inline const ShadowModeConfig& GetShadowModeConfig() const { return m_shadowModeConfig; }
148 inline bool ShadowModeConfigHasBeenSet() const { return m_shadowModeConfigHasBeenSet; }
149 template <typename ShadowModeConfigT = ShadowModeConfig>
150 void SetShadowModeConfig(ShadowModeConfigT&& value) {
151 m_shadowModeConfigHasBeenSet = true;
152 m_shadowModeConfig = std::forward<ShadowModeConfigT>(value);
153 }
154 template <typename ShadowModeConfigT = ShadowModeConfig>
156 SetShadowModeConfig(std::forward<ShadowModeConfigT>(value));
157 return *this;
158 }
160 private:
161 Aws::String m_name;
162
164
165 Aws::String m_description;
166
167 Aws::Vector<ModelVariantConfig> m_modelVariants;
168
169 InferenceExperimentDataStorageConfig m_dataStorageConfig;
170
171 ShadowModeConfig m_shadowModeConfig;
172 bool m_nameHasBeenSet = false;
173 bool m_scheduleHasBeenSet = false;
174 bool m_descriptionHasBeenSet = false;
175 bool m_modelVariantsHasBeenSet = false;
176 bool m_dataStorageConfigHasBeenSet = false;
177 bool m_shadowModeConfigHasBeenSet = false;
178};
179
180} // namespace Model
181} // namespace SageMaker
182} // namespace Aws
UpdateInferenceExperimentRequest & WithShadowModeConfig(ShadowModeConfigT &&value)
const Aws::Vector< ModelVariantConfig > & GetModelVariants() const
UpdateInferenceExperimentRequest & WithName(NameT &&value)
AWS_SAGEMAKER_API UpdateInferenceExperimentRequest()=default
UpdateInferenceExperimentRequest & AddModelVariants(ModelVariantsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InferenceExperimentDataStorageConfig & GetDataStorageConfig() const
UpdateInferenceExperimentRequest & WithDataStorageConfig(DataStorageConfigT &&value)
UpdateInferenceExperimentRequest & WithModelVariants(ModelVariantsT &&value)
UpdateInferenceExperimentRequest & WithSchedule(ScheduleT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateInferenceExperimentRequest & WithDescription(DescriptionT &&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