AWS SDK for C++

AWS SDK for C++ Version 1.11.805

Loading...
Searching...
No Matches
InferenceComponentSpecification.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMaker_EXPORTS.h>
9#include <aws/sagemaker/model/InferenceComponentComputeResourceRequirements.h>
10#include <aws/sagemaker/model/InferenceComponentContainerSpecification.h>
11#include <aws/sagemaker/model/InferenceComponentDataCacheConfig.h>
12#include <aws/sagemaker/model/InferenceComponentSchedulingConfig.h>
13#include <aws/sagemaker/model/InferenceComponentStartupParameters.h>
14#include <aws/sagemaker/model/ProductionVariantInstanceType.h>
15
16#include <utility>
17
18namespace Aws {
19namespace Utils {
20namespace Json {
21class JsonValue;
22class JsonView;
23} // namespace Json
24} // namespace Utils
25namespace SageMaker {
26namespace Model {
27
36 public:
37 AWS_SAGEMAKER_API InferenceComponentSpecification() = default;
40 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
43
48 inline ProductionVariantInstanceType GetInstanceType() const { return m_instanceType; }
49 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
51 m_instanceTypeHasBeenSet = true;
52 m_instanceType = value;
53 }
55 SetInstanceType(value);
56 return *this;
57 }
59
61
65 inline const Aws::String& GetModelName() const { return m_modelName; }
66 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
67 template <typename ModelNameT = Aws::String>
68 void SetModelName(ModelNameT&& value) {
69 m_modelNameHasBeenSet = true;
70 m_modelName = std::forward<ModelNameT>(value);
71 }
72 template <typename ModelNameT = Aws::String>
74 SetModelName(std::forward<ModelNameT>(value));
75 return *this;
76 }
78
80
84 inline const InferenceComponentContainerSpecification& GetContainer() const { return m_container; }
85 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
86 template <typename ContainerT = InferenceComponentContainerSpecification>
87 void SetContainer(ContainerT&& value) {
88 m_containerHasBeenSet = true;
89 m_container = std::forward<ContainerT>(value);
90 }
91 template <typename ContainerT = InferenceComponentContainerSpecification>
93 SetContainer(std::forward<ContainerT>(value));
94 return *this;
95 }
97
99
102 inline const InferenceComponentStartupParameters& GetStartupParameters() const { return m_startupParameters; }
103 inline bool StartupParametersHasBeenSet() const { return m_startupParametersHasBeenSet; }
104 template <typename StartupParametersT = InferenceComponentStartupParameters>
105 void SetStartupParameters(StartupParametersT&& value) {
106 m_startupParametersHasBeenSet = true;
107 m_startupParameters = std::forward<StartupParametersT>(value);
108 }
109 template <typename StartupParametersT = InferenceComponentStartupParameters>
111 SetStartupParameters(std::forward<StartupParametersT>(value));
112 return *this;
113 }
115
117
125 return m_computeResourceRequirements;
126 }
127 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
128 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
129 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
130 m_computeResourceRequirementsHasBeenSet = true;
131 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
132 }
133 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
135 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
136 return *this;
137 }
139
141
157 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
158 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
159 template <typename BaseInferenceComponentNameT = Aws::String>
160 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
161 m_baseInferenceComponentNameHasBeenSet = true;
162 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
163 }
164 template <typename BaseInferenceComponentNameT = Aws::String>
166 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
167 return *this;
168 }
170
172
175 inline const InferenceComponentDataCacheConfig& GetDataCacheConfig() const { return m_dataCacheConfig; }
176 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
177 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
178 void SetDataCacheConfig(DataCacheConfigT&& value) {
179 m_dataCacheConfigHasBeenSet = true;
180 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
181 }
182 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
184 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
185 return *this;
186 }
188
190
194 inline const InferenceComponentSchedulingConfig& GetSchedulingConfig() const { return m_schedulingConfig; }
195 inline bool SchedulingConfigHasBeenSet() const { return m_schedulingConfigHasBeenSet; }
196 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
197 void SetSchedulingConfig(SchedulingConfigT&& value) {
198 m_schedulingConfigHasBeenSet = true;
199 m_schedulingConfig = std::forward<SchedulingConfigT>(value);
200 }
201 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
203 SetSchedulingConfig(std::forward<SchedulingConfigT>(value));
204 return *this;
205 }
207 private:
209
210 Aws::String m_modelName;
211
212 InferenceComponentContainerSpecification m_container;
213
214 InferenceComponentStartupParameters m_startupParameters;
215
216 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
217
218 Aws::String m_baseInferenceComponentName;
219
220 InferenceComponentDataCacheConfig m_dataCacheConfig;
221
222 InferenceComponentSchedulingConfig m_schedulingConfig;
223 bool m_instanceTypeHasBeenSet = false;
224 bool m_modelNameHasBeenSet = false;
225 bool m_containerHasBeenSet = false;
226 bool m_startupParametersHasBeenSet = false;
227 bool m_computeResourceRequirementsHasBeenSet = false;
228 bool m_baseInferenceComponentNameHasBeenSet = false;
229 bool m_dataCacheConfigHasBeenSet = false;
230 bool m_schedulingConfigHasBeenSet = false;
231};
232
233} // namespace Model
234} // namespace SageMaker
235} // namespace Aws
void SetComputeResourceRequirements(ComputeResourceRequirementsT &&value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
InferenceComponentSpecification & WithModelName(ModelNameT &&value)
AWS_SAGEMAKER_API InferenceComponentSpecification & operator=(Aws::Utils::Json::JsonView jsonValue)
const InferenceComponentSchedulingConfig & GetSchedulingConfig() const
void SetBaseInferenceComponentName(BaseInferenceComponentNameT &&value)
InferenceComponentSpecification & WithBaseInferenceComponentName(BaseInferenceComponentNameT &&value)
InferenceComponentSpecification & WithContainer(ContainerT &&value)
InferenceComponentSpecification & WithInstanceType(ProductionVariantInstanceType value)
const InferenceComponentStartupParameters & GetStartupParameters() const
InferenceComponentSpecification & WithStartupParameters(StartupParametersT &&value)
InferenceComponentSpecification & WithComputeResourceRequirements(ComputeResourceRequirementsT &&value)
InferenceComponentSpecification & WithSchedulingConfig(SchedulingConfigT &&value)
InferenceComponentSpecification & WithDataCacheConfig(DataCacheConfigT &&value)
const InferenceComponentComputeResourceRequirements & GetComputeResourceRequirements() const
const InferenceComponentContainerSpecification & GetContainer() const
const InferenceComponentDataCacheConfig & GetDataCacheConfig() const
AWS_SAGEMAKER_API InferenceComponentSpecification(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API InferenceComponentSpecification()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue