AWS SDK for C++

AWS SDK for C++ Version 1.11.780

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
15#include <utility>
16
17namespace Aws {
18namespace Utils {
19namespace Json {
20class JsonValue;
21class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SageMaker {
25namespace Model {
26
35 public:
36 AWS_SAGEMAKER_API InferenceComponentSpecification() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline const Aws::String& GetModelName() const { return m_modelName; }
47 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
48 template <typename ModelNameT = Aws::String>
49 void SetModelName(ModelNameT&& value) {
50 m_modelNameHasBeenSet = true;
51 m_modelName = std::forward<ModelNameT>(value);
52 }
53 template <typename ModelNameT = Aws::String>
55 SetModelName(std::forward<ModelNameT>(value));
56 return *this;
57 }
59
61
65 inline const InferenceComponentContainerSpecification& GetContainer() const { return m_container; }
66 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
67 template <typename ContainerT = InferenceComponentContainerSpecification>
68 void SetContainer(ContainerT&& value) {
69 m_containerHasBeenSet = true;
70 m_container = std::forward<ContainerT>(value);
71 }
72 template <typename ContainerT = InferenceComponentContainerSpecification>
74 SetContainer(std::forward<ContainerT>(value));
75 return *this;
76 }
78
80
83 inline const InferenceComponentStartupParameters& GetStartupParameters() const { return m_startupParameters; }
84 inline bool StartupParametersHasBeenSet() const { return m_startupParametersHasBeenSet; }
85 template <typename StartupParametersT = InferenceComponentStartupParameters>
86 void SetStartupParameters(StartupParametersT&& value) {
87 m_startupParametersHasBeenSet = true;
88 m_startupParameters = std::forward<StartupParametersT>(value);
89 }
90 template <typename StartupParametersT = InferenceComponentStartupParameters>
92 SetStartupParameters(std::forward<StartupParametersT>(value));
93 return *this;
94 }
96
98
106 return m_computeResourceRequirements;
107 }
108 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
109 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
110 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
111 m_computeResourceRequirementsHasBeenSet = true;
112 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
113 }
114 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
116 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
117 return *this;
118 }
120
122
138 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
139 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
140 template <typename BaseInferenceComponentNameT = Aws::String>
141 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
142 m_baseInferenceComponentNameHasBeenSet = true;
143 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
144 }
145 template <typename BaseInferenceComponentNameT = Aws::String>
147 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
148 return *this;
149 }
151
153
156 inline const InferenceComponentDataCacheConfig& GetDataCacheConfig() const { return m_dataCacheConfig; }
157 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
158 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
159 void SetDataCacheConfig(DataCacheConfigT&& value) {
160 m_dataCacheConfigHasBeenSet = true;
161 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
162 }
163 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
165 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
166 return *this;
167 }
169
171
175 inline const InferenceComponentSchedulingConfig& GetSchedulingConfig() const { return m_schedulingConfig; }
176 inline bool SchedulingConfigHasBeenSet() const { return m_schedulingConfigHasBeenSet; }
177 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
178 void SetSchedulingConfig(SchedulingConfigT&& value) {
179 m_schedulingConfigHasBeenSet = true;
180 m_schedulingConfig = std::forward<SchedulingConfigT>(value);
181 }
182 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
184 SetSchedulingConfig(std::forward<SchedulingConfigT>(value));
185 return *this;
186 }
188 private:
189 Aws::String m_modelName;
190
192
193 InferenceComponentStartupParameters m_startupParameters;
194
195 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
196
197 Aws::String m_baseInferenceComponentName;
198
199 InferenceComponentDataCacheConfig m_dataCacheConfig;
200
201 InferenceComponentSchedulingConfig m_schedulingConfig;
202 bool m_modelNameHasBeenSet = false;
203 bool m_containerHasBeenSet = false;
204 bool m_startupParametersHasBeenSet = false;
205 bool m_computeResourceRequirementsHasBeenSet = false;
206 bool m_baseInferenceComponentNameHasBeenSet = false;
207 bool m_dataCacheConfigHasBeenSet = false;
208 bool m_schedulingConfigHasBeenSet = false;
209};
210
211} // namespace Model
212} // namespace SageMaker
213} // 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)
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