AWS SDK for C++

AWS SDK for C++ Version 1.11.806

Loading...
Searching...
No Matches
CreateInferenceComponentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/sagemaker/SageMakerRequest.h>
10#include <aws/sagemaker/SageMaker_EXPORTS.h>
11#include <aws/sagemaker/model/InferenceComponentRuntimeConfig.h>
12#include <aws/sagemaker/model/InferenceComponentSpecification.h>
13#include <aws/sagemaker/model/Tag.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API CreateInferenceComponentRequest() = default;
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "CreateInferenceComponent"; }
32
33 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
34
36
38
41 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
42 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
43 template <typename InferenceComponentNameT = Aws::String>
44 void SetInferenceComponentName(InferenceComponentNameT&& value) {
45 m_inferenceComponentNameHasBeenSet = true;
46 m_inferenceComponentName = std::forward<InferenceComponentNameT>(value);
47 }
48 template <typename InferenceComponentNameT = Aws::String>
50 SetInferenceComponentName(std::forward<InferenceComponentNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
60 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
61 template <typename EndpointNameT = Aws::String>
62 void SetEndpointName(EndpointNameT&& value) {
63 m_endpointNameHasBeenSet = true;
64 m_endpointName = std::forward<EndpointNameT>(value);
65 }
66 template <typename EndpointNameT = Aws::String>
68 SetEndpointName(std::forward<EndpointNameT>(value));
69 return *this;
70 }
72
74
78 inline const Aws::String& GetVariantName() const { return m_variantName; }
79 inline bool VariantNameHasBeenSet() const { return m_variantNameHasBeenSet; }
80 template <typename VariantNameT = Aws::String>
81 void SetVariantName(VariantNameT&& value) {
82 m_variantNameHasBeenSet = true;
83 m_variantName = std::forward<VariantNameT>(value);
84 }
85 template <typename VariantNameT = Aws::String>
87 SetVariantName(std::forward<VariantNameT>(value));
88 return *this;
89 }
91
93
97 inline const InferenceComponentSpecification& GetSpecification() const { return m_specification; }
98 inline bool SpecificationHasBeenSet() const { return m_specificationHasBeenSet; }
99 template <typename SpecificationT = InferenceComponentSpecification>
100 void SetSpecification(SpecificationT&& value) {
101 m_specificationHasBeenSet = true;
102 m_specification = std::forward<SpecificationT>(value);
103 }
104 template <typename SpecificationT = InferenceComponentSpecification>
106 SetSpecification(std::forward<SpecificationT>(value));
107 return *this;
108 }
110
112
119 inline const Aws::Vector<InferenceComponentSpecification>& GetSpecifications() const { return m_specifications; }
120 inline bool SpecificationsHasBeenSet() const { return m_specificationsHasBeenSet; }
121 template <typename SpecificationsT = Aws::Vector<InferenceComponentSpecification>>
122 void SetSpecifications(SpecificationsT&& value) {
123 m_specificationsHasBeenSet = true;
124 m_specifications = std::forward<SpecificationsT>(value);
125 }
126 template <typename SpecificationsT = Aws::Vector<InferenceComponentSpecification>>
128 SetSpecifications(std::forward<SpecificationsT>(value));
129 return *this;
130 }
131 template <typename SpecificationsT = InferenceComponentSpecification>
133 m_specificationsHasBeenSet = true;
134 m_specifications.emplace_back(std::forward<SpecificationsT>(value));
135 return *this;
136 }
138
140
144 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
145 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
146 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
147 void SetRuntimeConfig(RuntimeConfigT&& value) {
148 m_runtimeConfigHasBeenSet = true;
149 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
150 }
151 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
153 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
154 return *this;
155 }
157
159
166 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
167 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
168 template <typename TagsT = Aws::Vector<Tag>>
169 void SetTags(TagsT&& value) {
170 m_tagsHasBeenSet = true;
171 m_tags = std::forward<TagsT>(value);
172 }
173 template <typename TagsT = Aws::Vector<Tag>>
175 SetTags(std::forward<TagsT>(value));
176 return *this;
177 }
178 template <typename TagsT = Tag>
180 m_tagsHasBeenSet = true;
181 m_tags.emplace_back(std::forward<TagsT>(value));
182 return *this;
183 }
185 private:
186 Aws::String m_inferenceComponentName;
187
188 Aws::String m_endpointName;
189
190 Aws::String m_variantName;
191
192 InferenceComponentSpecification m_specification;
193
195
196 InferenceComponentRuntimeConfig m_runtimeConfig;
197
198 Aws::Vector<Tag> m_tags;
199 bool m_inferenceComponentNameHasBeenSet = false;
200 bool m_endpointNameHasBeenSet = false;
201 bool m_variantNameHasBeenSet = false;
202 bool m_specificationHasBeenSet = false;
203 bool m_specificationsHasBeenSet = false;
204 bool m_runtimeConfigHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206};
207
208} // namespace Model
209} // namespace SageMaker
210} // namespace Aws
const Aws::Vector< InferenceComponentSpecification > & GetSpecifications() const
CreateInferenceComponentRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateInferenceComponentRequest & WithVariantName(VariantNameT &&value)
const InferenceComponentSpecification & GetSpecification() const
CreateInferenceComponentRequest & WithEndpointName(EndpointNameT &&value)
CreateInferenceComponentRequest & WithSpecification(SpecificationT &&value)
CreateInferenceComponentRequest & WithRuntimeConfig(RuntimeConfigT &&value)
CreateInferenceComponentRequest & AddTags(TagsT &&value)
CreateInferenceComponentRequest & WithSpecifications(SpecificationsT &&value)
CreateInferenceComponentRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
AWS_SAGEMAKER_API CreateInferenceComponentRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InferenceComponentRuntimeConfig & GetRuntimeConfig() const
CreateInferenceComponentRequest & AddSpecifications(SpecificationsT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector