AWS SDK for C++

AWS SDK for C++ Version 1.11.718

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
116 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
117 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
118 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
119 void SetRuntimeConfig(RuntimeConfigT&& value) {
120 m_runtimeConfigHasBeenSet = true;
121 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
122 }
123 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
125 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
126 return *this;
127 }
129
131
138 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
139 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
140 template <typename TagsT = Aws::Vector<Tag>>
141 void SetTags(TagsT&& value) {
142 m_tagsHasBeenSet = true;
143 m_tags = std::forward<TagsT>(value);
144 }
145 template <typename TagsT = Aws::Vector<Tag>>
147 SetTags(std::forward<TagsT>(value));
148 return *this;
149 }
150 template <typename TagsT = Tag>
152 m_tagsHasBeenSet = true;
153 m_tags.emplace_back(std::forward<TagsT>(value));
154 return *this;
155 }
157 private:
158 Aws::String m_inferenceComponentName;
159
160 Aws::String m_endpointName;
161
162 Aws::String m_variantName;
163
164 InferenceComponentSpecification m_specification;
165
166 InferenceComponentRuntimeConfig m_runtimeConfig;
167
168 Aws::Vector<Tag> m_tags;
169 bool m_inferenceComponentNameHasBeenSet = false;
170 bool m_endpointNameHasBeenSet = false;
171 bool m_variantNameHasBeenSet = false;
172 bool m_specificationHasBeenSet = false;
173 bool m_runtimeConfigHasBeenSet = false;
174 bool m_tagsHasBeenSet = false;
175};
176
177} // namespace Model
178} // namespace SageMaker
179} // namespace Aws
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 & WithInferenceComponentName(InferenceComponentNameT &&value)
AWS_SAGEMAKER_API CreateInferenceComponentRequest()=default
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
const InferenceComponentRuntimeConfig & GetRuntimeConfig() const
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