AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UpdateInferenceExperimentRequest.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/InferenceExperimentSchedule.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/InferenceExperimentDataStorageConfig.h>
13#include <aws/sagemaker/model/ShadowModeConfig.h>
14#include <aws/sagemaker/model/ModelVariantConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace SageMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_SAGEMAKER_API UpdateInferenceExperimentRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "UpdateInferenceExperiment"; }
36
37 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
38
40
41
43
46 inline const Aws::String& GetName() const { return m_name; }
47 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 template<typename NameT = Aws::String>
49 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
50 template<typename NameT = Aws::String>
51 UpdateInferenceExperimentRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
53
55
61 inline const InferenceExperimentSchedule& GetSchedule() const { return m_schedule; }
62 inline bool ScheduleHasBeenSet() const { return m_scheduleHasBeenSet; }
63 template<typename ScheduleT = InferenceExperimentSchedule>
64 void SetSchedule(ScheduleT&& value) { m_scheduleHasBeenSet = true; m_schedule = std::forward<ScheduleT>(value); }
65 template<typename ScheduleT = InferenceExperimentSchedule>
66 UpdateInferenceExperimentRequest& WithSchedule(ScheduleT&& value) { SetSchedule(std::forward<ScheduleT>(value)); return *this;}
68
70
73 inline const Aws::String& GetDescription() const { return m_description; }
74 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
75 template<typename DescriptionT = Aws::String>
76 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
77 template<typename DescriptionT = Aws::String>
78 UpdateInferenceExperimentRequest& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
80
82
86 inline const Aws::Vector<ModelVariantConfig>& GetModelVariants() const { return m_modelVariants; }
87 inline bool ModelVariantsHasBeenSet() const { return m_modelVariantsHasBeenSet; }
88 template<typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
89 void SetModelVariants(ModelVariantsT&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants = std::forward<ModelVariantsT>(value); }
90 template<typename ModelVariantsT = Aws::Vector<ModelVariantConfig>>
91 UpdateInferenceExperimentRequest& WithModelVariants(ModelVariantsT&& value) { SetModelVariants(std::forward<ModelVariantsT>(value)); return *this;}
92 template<typename ModelVariantsT = ModelVariantConfig>
93 UpdateInferenceExperimentRequest& AddModelVariants(ModelVariantsT&& value) { m_modelVariantsHasBeenSet = true; m_modelVariants.emplace_back(std::forward<ModelVariantsT>(value)); return *this; }
95
97
101 inline const InferenceExperimentDataStorageConfig& GetDataStorageConfig() const { return m_dataStorageConfig; }
102 inline bool DataStorageConfigHasBeenSet() const { return m_dataStorageConfigHasBeenSet; }
103 template<typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
104 void SetDataStorageConfig(DataStorageConfigT&& value) { m_dataStorageConfigHasBeenSet = true; m_dataStorageConfig = std::forward<DataStorageConfigT>(value); }
105 template<typename DataStorageConfigT = InferenceExperimentDataStorageConfig>
106 UpdateInferenceExperimentRequest& WithDataStorageConfig(DataStorageConfigT&& value) { SetDataStorageConfig(std::forward<DataStorageConfigT>(value)); return *this;}
108
110
117 inline const ShadowModeConfig& GetShadowModeConfig() const { return m_shadowModeConfig; }
118 inline bool ShadowModeConfigHasBeenSet() const { return m_shadowModeConfigHasBeenSet; }
119 template<typename ShadowModeConfigT = ShadowModeConfig>
120 void SetShadowModeConfig(ShadowModeConfigT&& value) { m_shadowModeConfigHasBeenSet = true; m_shadowModeConfig = std::forward<ShadowModeConfigT>(value); }
121 template<typename ShadowModeConfigT = ShadowModeConfig>
122 UpdateInferenceExperimentRequest& WithShadowModeConfig(ShadowModeConfigT&& value) { SetShadowModeConfig(std::forward<ShadowModeConfigT>(value)); return *this;}
124 private:
125
126 Aws::String m_name;
127 bool m_nameHasBeenSet = false;
128
130 bool m_scheduleHasBeenSet = false;
131
132 Aws::String m_description;
133 bool m_descriptionHasBeenSet = false;
134
135 Aws::Vector<ModelVariantConfig> m_modelVariants;
136 bool m_modelVariantsHasBeenSet = false;
137
138 InferenceExperimentDataStorageConfig m_dataStorageConfig;
139 bool m_dataStorageConfigHasBeenSet = false;
140
141 ShadowModeConfig m_shadowModeConfig;
142 bool m_shadowModeConfigHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace SageMaker
147} // 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