AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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/InferenceComponentStartupParameters.h>
13
14#include <utility>
15
16namespace Aws {
17namespace Utils {
18namespace Json {
19class JsonValue;
20class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SageMaker {
24namespace Model {
25
34 public:
35 AWS_SAGEMAKER_API InferenceComponentSpecification() = default;
38 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
39
41
45 inline const Aws::String& GetModelName() const { return m_modelName; }
46 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
47 template <typename ModelNameT = Aws::String>
48 void SetModelName(ModelNameT&& value) {
49 m_modelNameHasBeenSet = true;
50 m_modelName = std::forward<ModelNameT>(value);
51 }
52 template <typename ModelNameT = Aws::String>
54 SetModelName(std::forward<ModelNameT>(value));
55 return *this;
56 }
58
60
64 inline const InferenceComponentContainerSpecification& GetContainer() const { return m_container; }
65 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
66 template <typename ContainerT = InferenceComponentContainerSpecification>
67 void SetContainer(ContainerT&& value) {
68 m_containerHasBeenSet = true;
69 m_container = std::forward<ContainerT>(value);
70 }
71 template <typename ContainerT = InferenceComponentContainerSpecification>
73 SetContainer(std::forward<ContainerT>(value));
74 return *this;
75 }
77
79
82 inline const InferenceComponentStartupParameters& GetStartupParameters() const { return m_startupParameters; }
83 inline bool StartupParametersHasBeenSet() const { return m_startupParametersHasBeenSet; }
84 template <typename StartupParametersT = InferenceComponentStartupParameters>
85 void SetStartupParameters(StartupParametersT&& value) {
86 m_startupParametersHasBeenSet = true;
87 m_startupParameters = std::forward<StartupParametersT>(value);
88 }
89 template <typename StartupParametersT = InferenceComponentStartupParameters>
91 SetStartupParameters(std::forward<StartupParametersT>(value));
92 return *this;
93 }
95
97
105 return m_computeResourceRequirements;
106 }
107 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
108 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
109 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
110 m_computeResourceRequirementsHasBeenSet = true;
111 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
112 }
113 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
115 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
116 return *this;
117 }
119
121
137 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
138 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
139 template <typename BaseInferenceComponentNameT = Aws::String>
140 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
141 m_baseInferenceComponentNameHasBeenSet = true;
142 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
143 }
144 template <typename BaseInferenceComponentNameT = Aws::String>
146 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
147 return *this;
148 }
150
152
155 inline const InferenceComponentDataCacheConfig& GetDataCacheConfig() const { return m_dataCacheConfig; }
156 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
157 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
158 void SetDataCacheConfig(DataCacheConfigT&& value) {
159 m_dataCacheConfigHasBeenSet = true;
160 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
161 }
162 template <typename DataCacheConfigT = InferenceComponentDataCacheConfig>
164 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
165 return *this;
166 }
168 private:
169 Aws::String m_modelName;
170
172
173 InferenceComponentStartupParameters m_startupParameters;
174
175 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
176
177 Aws::String m_baseInferenceComponentName;
178
179 InferenceComponentDataCacheConfig m_dataCacheConfig;
180 bool m_modelNameHasBeenSet = false;
181 bool m_containerHasBeenSet = false;
182 bool m_startupParametersHasBeenSet = false;
183 bool m_computeResourceRequirementsHasBeenSet = false;
184 bool m_baseInferenceComponentNameHasBeenSet = false;
185 bool m_dataCacheConfigHasBeenSet = false;
186};
187
188} // namespace Model
189} // namespace SageMaker
190} // 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)
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 & 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