AWS SDK for C++

AWS SDK for C++ Version 1.11.719

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/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
33 public:
34 AWS_SAGEMAKER_API InferenceComponentSpecificationSummary() = default;
37 AWS_SAGEMAKER_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
44 inline const Aws::String& GetModelName() const { return m_modelName; }
45 inline bool ModelNameHasBeenSet() const { return m_modelNameHasBeenSet; }
46 template <typename ModelNameT = Aws::String>
47 void SetModelName(ModelNameT&& value) {
48 m_modelNameHasBeenSet = true;
49 m_modelName = std::forward<ModelNameT>(value);
50 }
51 template <typename ModelNameT = Aws::String>
53 SetModelName(std::forward<ModelNameT>(value));
54 return *this;
55 }
57
59
63 inline const InferenceComponentContainerSpecificationSummary& GetContainer() const { return m_container; }
64 inline bool ContainerHasBeenSet() const { return m_containerHasBeenSet; }
65 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
66 void SetContainer(ContainerT&& value) {
67 m_containerHasBeenSet = true;
68 m_container = std::forward<ContainerT>(value);
69 }
70 template <typename ContainerT = InferenceComponentContainerSpecificationSummary>
72 SetContainer(std::forward<ContainerT>(value));
73 return *this;
74 }
76
78
81 inline const InferenceComponentStartupParameters& GetStartupParameters() const { return m_startupParameters; }
82 inline bool StartupParametersHasBeenSet() const { return m_startupParametersHasBeenSet; }
83 template <typename StartupParametersT = InferenceComponentStartupParameters>
84 void SetStartupParameters(StartupParametersT&& value) {
85 m_startupParametersHasBeenSet = true;
86 m_startupParameters = std::forward<StartupParametersT>(value);
87 }
88 template <typename StartupParametersT = InferenceComponentStartupParameters>
90 SetStartupParameters(std::forward<StartupParametersT>(value));
91 return *this;
92 }
94
96
101 return m_computeResourceRequirements;
102 }
103 inline bool ComputeResourceRequirementsHasBeenSet() const { return m_computeResourceRequirementsHasBeenSet; }
104 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
105 void SetComputeResourceRequirements(ComputeResourceRequirementsT&& value) {
106 m_computeResourceRequirementsHasBeenSet = true;
107 m_computeResourceRequirements = std::forward<ComputeResourceRequirementsT>(value);
108 }
109 template <typename ComputeResourceRequirementsT = InferenceComponentComputeResourceRequirements>
111 SetComputeResourceRequirements(std::forward<ComputeResourceRequirementsT>(value));
112 return *this;
113 }
115
117
121 inline const Aws::String& GetBaseInferenceComponentName() const { return m_baseInferenceComponentName; }
122 inline bool BaseInferenceComponentNameHasBeenSet() const { return m_baseInferenceComponentNameHasBeenSet; }
123 template <typename BaseInferenceComponentNameT = Aws::String>
124 void SetBaseInferenceComponentName(BaseInferenceComponentNameT&& value) {
125 m_baseInferenceComponentNameHasBeenSet = true;
126 m_baseInferenceComponentName = std::forward<BaseInferenceComponentNameT>(value);
127 }
128 template <typename BaseInferenceComponentNameT = Aws::String>
130 SetBaseInferenceComponentName(std::forward<BaseInferenceComponentNameT>(value));
131 return *this;
132 }
134
136
139 inline const InferenceComponentDataCacheConfigSummary& GetDataCacheConfig() const { return m_dataCacheConfig; }
140 inline bool DataCacheConfigHasBeenSet() const { return m_dataCacheConfigHasBeenSet; }
141 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
142 void SetDataCacheConfig(DataCacheConfigT&& value) {
143 m_dataCacheConfigHasBeenSet = true;
144 m_dataCacheConfig = std::forward<DataCacheConfigT>(value);
145 }
146 template <typename DataCacheConfigT = InferenceComponentDataCacheConfigSummary>
148 SetDataCacheConfig(std::forward<DataCacheConfigT>(value));
149 return *this;
150 }
152 private:
153 Aws::String m_modelName;
154
156
157 InferenceComponentStartupParameters m_startupParameters;
158
159 InferenceComponentComputeResourceRequirements m_computeResourceRequirements;
160
161 Aws::String m_baseInferenceComponentName;
162
164 bool m_modelNameHasBeenSet = false;
165 bool m_containerHasBeenSet = false;
166 bool m_startupParametersHasBeenSet = false;
167 bool m_computeResourceRequirementsHasBeenSet = false;
168 bool m_baseInferenceComponentNameHasBeenSet = false;
169 bool m_dataCacheConfigHasBeenSet = false;
170};
171
172} // namespace Model
173} // namespace SageMaker
174} // 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)
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