AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
UpdateInferenceComponentRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/sagemaker/SageMaker_EXPORTS.h>
10#include <aws/sagemaker/model/InferenceComponentDeploymentConfig.h>
11#include <aws/sagemaker/model/InferenceComponentRuntimeConfig.h>
12#include <aws/sagemaker/model/InferenceComponentSpecification.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateInferenceComponentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "UpdateInferenceComponent"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetInferenceComponentName() const { return m_inferenceComponentName; }
41 inline bool InferenceComponentNameHasBeenSet() const { return m_inferenceComponentNameHasBeenSet; }
42 template <typename InferenceComponentNameT = Aws::String>
43 void SetInferenceComponentName(InferenceComponentNameT&& value) {
44 m_inferenceComponentNameHasBeenSet = true;
45 m_inferenceComponentName = std::forward<InferenceComponentNameT>(value);
46 }
47 template <typename InferenceComponentNameT = Aws::String>
49 SetInferenceComponentName(std::forward<InferenceComponentNameT>(value));
50 return *this;
51 }
53
55
59 inline const InferenceComponentSpecification& GetSpecification() const { return m_specification; }
60 inline bool SpecificationHasBeenSet() const { return m_specificationHasBeenSet; }
61 template <typename SpecificationT = InferenceComponentSpecification>
62 void SetSpecification(SpecificationT&& value) {
63 m_specificationHasBeenSet = true;
64 m_specification = std::forward<SpecificationT>(value);
65 }
66 template <typename SpecificationT = InferenceComponentSpecification>
68 SetSpecification(std::forward<SpecificationT>(value));
69 return *this;
70 }
72
74
78 inline const InferenceComponentRuntimeConfig& GetRuntimeConfig() const { return m_runtimeConfig; }
79 inline bool RuntimeConfigHasBeenSet() const { return m_runtimeConfigHasBeenSet; }
80 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
81 void SetRuntimeConfig(RuntimeConfigT&& value) {
82 m_runtimeConfigHasBeenSet = true;
83 m_runtimeConfig = std::forward<RuntimeConfigT>(value);
84 }
85 template <typename RuntimeConfigT = InferenceComponentRuntimeConfig>
87 SetRuntimeConfig(std::forward<RuntimeConfigT>(value));
88 return *this;
89 }
91
93
97 inline const InferenceComponentDeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
98 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
99 template <typename DeploymentConfigT = InferenceComponentDeploymentConfig>
100 void SetDeploymentConfig(DeploymentConfigT&& value) {
101 m_deploymentConfigHasBeenSet = true;
102 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
103 }
104 template <typename DeploymentConfigT = InferenceComponentDeploymentConfig>
106 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
107 return *this;
108 }
110 private:
111 Aws::String m_inferenceComponentName;
112
113 InferenceComponentSpecification m_specification;
114
115 InferenceComponentRuntimeConfig m_runtimeConfig;
116
117 InferenceComponentDeploymentConfig m_deploymentConfig;
118 bool m_inferenceComponentNameHasBeenSet = false;
119 bool m_specificationHasBeenSet = false;
120 bool m_runtimeConfigHasBeenSet = false;
121 bool m_deploymentConfigHasBeenSet = false;
122};
123
124} // namespace Model
125} // namespace SageMaker
126} // namespace Aws
const InferenceComponentRuntimeConfig & GetRuntimeConfig() 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
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