AWS SDK for C++

AWS SDK for C++ Version 1.11.806

Loading...
Searching...
No Matches
UpdateInferenceComponentRequest.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/InferenceComponentDeploymentConfig.h>
12#include <aws/sagemaker/model/InferenceComponentRuntimeConfig.h>
13#include <aws/sagemaker/model/InferenceComponentSpecification.h>
14
15#include <utility>
16
17namespace Aws {
18namespace SageMaker {
19namespace Model {
20
24 public:
25 AWS_SAGEMAKER_API UpdateInferenceComponentRequest() = 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 "UpdateInferenceComponent"; }
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
60 inline const InferenceComponentSpecification& GetSpecification() const { return m_specification; }
61 inline bool SpecificationHasBeenSet() const { return m_specificationHasBeenSet; }
62 template <typename SpecificationT = InferenceComponentSpecification>
63 void SetSpecification(SpecificationT&& value) {
64 m_specificationHasBeenSet = true;
65 m_specification = std::forward<SpecificationT>(value);
66 }
67 template <typename SpecificationT = InferenceComponentSpecification>
69 SetSpecification(std::forward<SpecificationT>(value));
70 return *this;
71 }
73
75
82 inline const Aws::Vector<InferenceComponentSpecification>& GetSpecifications() const { return m_specifications; }
83 inline bool SpecificationsHasBeenSet() const { return m_specificationsHasBeenSet; }
84 template <typename SpecificationsT = Aws::Vector<InferenceComponentSpecification>>
85 void SetSpecifications(SpecificationsT&& value) {
86 m_specificationsHasBeenSet = true;
87 m_specifications = std::forward<SpecificationsT>(value);
88 }
89 template <typename SpecificationsT = Aws::Vector<InferenceComponentSpecification>>
91 SetSpecifications(std::forward<SpecificationsT>(value));
92 return *this;
93 }
94 template <typename SpecificationsT = InferenceComponentSpecification>
96 m_specificationsHasBeenSet = true;
97 m_specifications.emplace_back(std::forward<SpecificationsT>(value));
98 return *this;
99 }
101
103
107 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
108 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
109 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
110 void SetRuntimeConfig(RuntimeConfigT&& value) {
111 m_runtimeConfigHasBeenSet = true;
112 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
113 }
114 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
116 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
117 return *this;
118 }
120
122
126 inline const InferenceComponentDeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
127 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
128 template <typename DeploymentConfigT = InferenceComponentDeploymentConfig>
129 void SetDeploymentConfig(DeploymentConfigT&& value) {
130 m_deploymentConfigHasBeenSet = true;
131 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
132 }
133 template <typename DeploymentConfigT = InferenceComponentDeploymentConfig>
135 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
136 return *this;
137 }
139 private:
140 Aws::String m_inferenceComponentName;
141
142 InferenceComponentSpecification m_specification;
143
145
146 InferenceComponentRuntimeConfig m_runtimeConfig;
147
148 InferenceComponentDeploymentConfig m_deploymentConfig;
149 bool m_inferenceComponentNameHasBeenSet = false;
150 bool m_specificationHasBeenSet = false;
151 bool m_specificationsHasBeenSet = false;
152 bool m_runtimeConfigHasBeenSet = false;
153 bool m_deploymentConfigHasBeenSet = false;
154};
155
156} // namespace Model
157} // namespace SageMaker
158} // namespace Aws
const InferenceComponentRuntimeConfig & GetRuntimeConfig() const
UpdateInferenceComponentRequest & WithSpecifications(SpecificationsT &&value)
const Aws::Vector< InferenceComponentSpecification > & GetSpecifications() const
const InferenceComponentDeploymentConfig & GetDeploymentConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateInferenceComponentRequest & WithDeploymentConfig(DeploymentConfigT &&value)
UpdateInferenceComponentRequest & WithRuntimeConfig(RuntimeConfigT &&value)
AWS_SAGEMAKER_API UpdateInferenceComponentRequest()=default
UpdateInferenceComponentRequest & AddSpecifications(SpecificationsT &&value)
const InferenceComponentSpecification & GetSpecification() const
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateInferenceComponentRequest & WithInferenceComponentName(InferenceComponentNameT &&value)
UpdateInferenceComponentRequest & WithSpecification(SpecificationT &&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