AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
UpdateEndpointRequest.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/DeploymentConfig.h>
12#include <aws/sagemaker/model/VariantProperty.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API UpdateEndpointRequest() = 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 "UpdateEndpoint"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
40 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
41 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
42 template <typename EndpointNameT = Aws::String>
43 void SetEndpointName(EndpointNameT&& value) {
44 m_endpointNameHasBeenSet = true;
45 m_endpointName = std::forward<EndpointNameT>(value);
46 }
47 template <typename EndpointNameT = Aws::String>
48 UpdateEndpointRequest& WithEndpointName(EndpointNameT&& value) {
49 SetEndpointName(std::forward<EndpointNameT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetEndpointConfigName() const { return m_endpointConfigName; }
59 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
60 template <typename EndpointConfigNameT = Aws::String>
61 void SetEndpointConfigName(EndpointConfigNameT&& value) {
62 m_endpointConfigNameHasBeenSet = true;
63 m_endpointConfigName = std::forward<EndpointConfigNameT>(value);
64 }
65 template <typename EndpointConfigNameT = Aws::String>
66 UpdateEndpointRequest& WithEndpointConfigName(EndpointConfigNameT&& value) {
67 SetEndpointConfigName(std::forward<EndpointConfigNameT>(value));
68 return *this;
69 }
71
73
83 inline bool GetRetainAllVariantProperties() const { return m_retainAllVariantProperties; }
84 inline bool RetainAllVariantPropertiesHasBeenSet() const { return m_retainAllVariantPropertiesHasBeenSet; }
85 inline void SetRetainAllVariantProperties(bool value) {
86 m_retainAllVariantPropertiesHasBeenSet = true;
87 m_retainAllVariantProperties = value;
88 }
91 return *this;
92 }
94
96
106 inline const Aws::Vector<VariantProperty>& GetExcludeRetainedVariantProperties() const { return m_excludeRetainedVariantProperties; }
107 inline bool ExcludeRetainedVariantPropertiesHasBeenSet() const { return m_excludeRetainedVariantPropertiesHasBeenSet; }
108 template <typename ExcludeRetainedVariantPropertiesT = Aws::Vector<VariantProperty>>
109 void SetExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) {
110 m_excludeRetainedVariantPropertiesHasBeenSet = true;
111 m_excludeRetainedVariantProperties = std::forward<ExcludeRetainedVariantPropertiesT>(value);
112 }
113 template <typename ExcludeRetainedVariantPropertiesT = Aws::Vector<VariantProperty>>
114 UpdateEndpointRequest& WithExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) {
115 SetExcludeRetainedVariantProperties(std::forward<ExcludeRetainedVariantPropertiesT>(value));
116 return *this;
117 }
118 template <typename ExcludeRetainedVariantPropertiesT = VariantProperty>
119 UpdateEndpointRequest& AddExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) {
120 m_excludeRetainedVariantPropertiesHasBeenSet = true;
121 m_excludeRetainedVariantProperties.emplace_back(std::forward<ExcludeRetainedVariantPropertiesT>(value));
122 return *this;
123 }
125
127
131 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
132 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
133 template <typename DeploymentConfigT = DeploymentConfig>
134 void SetDeploymentConfig(DeploymentConfigT&& value) {
135 m_deploymentConfigHasBeenSet = true;
136 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
137 }
138 template <typename DeploymentConfigT = DeploymentConfig>
139 UpdateEndpointRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
140 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
141 return *this;
142 }
144
146
150 inline bool GetRetainDeploymentConfig() const { return m_retainDeploymentConfig; }
151 inline bool RetainDeploymentConfigHasBeenSet() const { return m_retainDeploymentConfigHasBeenSet; }
152 inline void SetRetainDeploymentConfig(bool value) {
153 m_retainDeploymentConfigHasBeenSet = true;
154 m_retainDeploymentConfig = value;
155 }
158 return *this;
159 }
161 private:
162 Aws::String m_endpointName;
163
164 Aws::String m_endpointConfigName;
165
166 bool m_retainAllVariantProperties{false};
167
168 Aws::Vector<VariantProperty> m_excludeRetainedVariantProperties;
169
170 DeploymentConfig m_deploymentConfig;
171
172 bool m_retainDeploymentConfig{false};
173 bool m_endpointNameHasBeenSet = false;
174 bool m_endpointConfigNameHasBeenSet = false;
175 bool m_retainAllVariantPropertiesHasBeenSet = false;
176 bool m_excludeRetainedVariantPropertiesHasBeenSet = false;
177 bool m_deploymentConfigHasBeenSet = false;
178 bool m_retainDeploymentConfigHasBeenSet = false;
179};
180
181} // namespace Model
182} // namespace SageMaker
183} // namespace Aws
UpdateEndpointRequest & WithExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT &&value)
UpdateEndpointRequest & WithEndpointName(EndpointNameT &&value)
AWS_SAGEMAKER_API UpdateEndpointRequest()=default
const DeploymentConfig & GetDeploymentConfig() const
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
UpdateEndpointRequest & AddExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT &&value)
void SetDeploymentConfig(DeploymentConfigT &&value)
UpdateEndpointRequest & WithDeploymentConfig(DeploymentConfigT &&value)
UpdateEndpointRequest & WithEndpointConfigName(EndpointConfigNameT &&value)
virtual const char * GetServiceRequestName() const override
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateEndpointRequest & WithRetainAllVariantProperties(bool value)
UpdateEndpointRequest & WithRetainDeploymentConfig(bool value)
void SetExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT &&value)
const Aws::Vector< VariantProperty > & GetExcludeRetainedVariantProperties() const
void SetEndpointConfigName(EndpointConfigNameT &&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