AWS SDK for C++

AWS SDK for C++ Version 1.11.780

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
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
34 public:
35 AWS_SAGEMAKER_API InferenceComponentSpecificationSummary() = 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 InferenceComponentContainerSpecificationSummary& GetContainer() const { return m_container; }
65 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
66 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
67 void SetContainer(ContainerT&& value) {
68 m_containerHasBeenSet = true;
69 m_container = std::forward<ContainerT>(value);
70 }
71 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
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
102 return m_computeResourceRequirements;
103 }
104 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
105 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
106 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
107 m_computeResourceRequirementsHasBeenSet = true;
108 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
109 }
110 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
112 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
113 return *this;
114 }
116
118
122 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
123 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
124 template <typename BaseInferenceComponentNameT = Aws::String>
125 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
126 m_baseInferenceComponentNameHasBeenSet = true;
127 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
128 }
129 template <typename BaseInferenceComponentNameT = Aws::String>
131 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
132 return *this;
133 }
135
137
140 inline const InferenceComponentDataCacheConfigSummary& GetDataCacheConfig() const { return m_dataCacheConfig; }
141 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
142 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
143 void SetDataCacheConfig(DataCacheConfigT&& value) {
144 m_dataCacheConfigHasBeenSet = true;
145 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
146 }
147 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
149 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
150 return *this;
151 }
153
155
159 inline const InferenceComponentSchedulingConfig& GetSchedulingConfig() const { return m_schedulingConfig; }
160 inline bool SchedulingConfigHasBeenSet() const { return m_schedulingConfigHasBeenSet; }
161 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
162 void SetSchedulingConfig(SchedulingConfigT&& value) {
163 m_schedulingConfigHasBeenSet = true;
164 m_schedulingConfig = std::forward<SchedulingConfigT>(value);
165 }
166 template <typename SchedulingConfigT = InferenceComponentSchedulingConfig>
168 SetSchedulingConfig(std::forward<SchedulingConfigT>(value));
169 return *this;
170 }
172 private:
173 Aws::String m_modelName;
174
176
177 InferenceComponentStartupParameters m_startupParameters;
178
179 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
180
181 Aws::String m_baseInferenceComponentName;
182
184
185 InferenceComponentSchedulingConfig m_schedulingConfig;
186 bool m_modelNameHasBeenSet = false;
187 bool m_containerHasBeenSet = false;
188 bool m_startupParametersHasBeenSet = false;
189 bool m_computeResourceRequirementsHasBeenSet = false;
190 bool m_baseInferenceComponentNameHasBeenSet = false;
191 bool m_dataCacheConfigHasBeenSet = false;
192 bool m_schedulingConfigHasBeenSet = false;
193};
194
195} // namespace Model
196} // namespace SageMaker
197} // namespace Aws
InferenceComponentSpecificationSummary & WithContainer(ContainerT &&value)
InferenceComponentSpecificationSummary & WithComputeResourceRequirements(ComputeResourceRequirementsT &&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