AWS SDK for C++

AWS SDK for C++ Version 1.11.804

Loading...
Searching...
No Matches
InferenceComponentSpecificationSummary.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/InferenceComponentContainerSpecificationSummary.h>
11#include <aws/sagemaker/model/InferenceComponentDataCacheConfigSummary.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
35 public:
36 AWS_SAGEMAKER_API InferenceComponentSpecificationSummary() = default;
39 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
40
42
46 inline ProductionVariantInstanceType GetInstanceType() const { return m_instanceType; }
47 inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; }
49 m_instanceTypeHasBeenSet = true;
50 m_instanceType = value;
51 }
53 SetInstanceType(value);
54 return *this;
55 }
57
59
63 inline const Aws::String& GetModelName() const { return m_modelName; }
64 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
65 template <typename ModelNameT = Aws::String>
66 void SetModelName(ModelNameT&& value) {
67 m_modelNameHasBeenSet = true;
68 m_modelName = std::forward<ModelNameT>(value);
69 }
70 template <typename ModelNameT = Aws::String>
72 SetModelName(std::forward<ModelNameT>(value));
73 return *this;
74 }
76
78
82 inline const InferenceComponentContainerSpecificationSummary& GetContainer() const { return m_container; }
83 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
84 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
85 void SetContainer(ContainerT&& value) {
86 m_containerHasBeenSet = true;
87 m_container = std::forward<ContainerT>(value);
88 }
89 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
91 SetContainer(std::forward<ContainerT>(value));
92 return *this;
93 }
95
97
100 inline const InferenceComponentStartupParameters& GetStartupParameters() const { return m_startupParameters; }
101 inline bool StartupParametersHasBeenSet() const { return m_startupParametersHasBeenSet; }
102 template <typename StartupParametersT = InferenceComponentStartupParameters>
103 void SetStartupParameters(StartupParametersT&& value) {
104 m_startupParametersHasBeenSet = true;
105 m_startupParameters = std::forward<StartupParametersT>(value);
106 }
107 template <typename StartupParametersT = InferenceComponentStartupParameters>
109 SetStartupParameters(std::forward<StartupParametersT>(value));
110 return *this;
111 }
113
115
120 return m_computeResourceRequirements;
121 }
122 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
123 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
124 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
125 m_computeResourceRequirementsHasBeenSet = true;
126 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
127 }
128 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
130 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
131 return *this;
132 }
134
136
140 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
141 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
142 template <typename BaseInferenceComponentNameT = Aws::String>
143 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
144 m_baseInferenceComponentNameHasBeenSet = true;
145 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
146 }
147 template <typename BaseInferenceComponentNameT = Aws::String>
149 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
150 return *this;
151 }
153
155
158 inline const InferenceComponentDataCacheConfigSummary& GetDataCacheConfig() const { return m_dataCacheConfig; }
159 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
160 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
161 void SetDataCacheConfig(DataCacheConfigT&& value) {
162 m_dataCacheConfigHasBeenSet = true;
163 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
164 }
165 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
167 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
168 return *this;
169 }
171
173
177 inline const InferenceComponentSchedulingConfig& GetSchedulingConfig() const { return m_schedulingConfig; }
178 inline bool SchedulingConfigHasBeenSet() const { return m_schedulingConfigHasBeenSet; }
179 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
180 void SetSchedulingConfig(SchedulingConfigT&& value) {
181 m_schedulingConfigHasBeenSet = true;
182 m_schedulingConfig = std::forward<SchedulingConfigT>(value);
183 }
184 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
186 SetSchedulingConfig(std::forward<SchedulingConfigT>(value));
187 return *this;
188 }
190 private:
192
193 Aws::String m_modelName;
194
195 InferenceComponentContainerSpecificationSummary m_container;
196
197 InferenceComponentStartupParameters m_startupParameters;
198
199 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
200
201 Aws::String m_baseInferenceComponentName;
202
203 InferenceComponentDataCacheConfigSummary m_dataCacheConfig;
204
205 InferenceComponentSchedulingConfig m_schedulingConfig;
206 bool m_instanceTypeHasBeenSet = false;
207 bool m_modelNameHasBeenSet = false;
208 bool m_containerHasBeenSet = false;
209 bool m_startupParametersHasBeenSet = false;
210 bool m_computeResourceRequirementsHasBeenSet = false;
211 bool m_baseInferenceComponentNameHasBeenSet = false;
212 bool m_dataCacheConfigHasBeenSet = false;
213 bool m_schedulingConfigHasBeenSet = false;
214};
215
216} // namespace Model
217} // namespace SageMaker
218} // namespace Aws
InferenceComponentSpecificationSummary & WithContainer(ContainerT &&value)
InferenceComponentSpecificationSummary & WithComputeResourceRequirements(ComputeResourceRequirementsT &&value)
InferenceComponentSpecificationSummary & WithInstanceType(ProductionVariantInstanceType value)
AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const
const InferenceComponentContainerSpecificationSummary & GetContainer() const
InferenceComponentSpecificationSummary & WithStartupParameters(StartupParametersT &&value)
InferenceComponentSpecificationSummary & WithSchedulingConfig(SchedulingConfigT &&value)
const InferenceComponentDataCacheConfigSummary & GetDataCacheConfig() const
InferenceComponentSpecificationSummary & WithDataCacheConfig(DataCacheConfigT &&value)
InferenceComponentSpecificationSummary & WithBaseInferenceComponentName(BaseInferenceComponentNameT &&value)
InferenceComponentSpecificationSummary & WithModelName(ModelNameT &&value)
const InferenceComponentComputeResourceRequirements & GetComputeResourceRequirements() const
AWS_SAGEMAKER_API InferenceComponentSpecificationSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SAGEMAKER_API InferenceComponentSpecificationSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue