AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateEndpointRequest.h
1
6#pragma once
7#include <aws/sagemaker/SageMaker_EXPORTS.h>
8#include <aws/sagemaker/SageMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/sagemaker/model/DeploymentConfig.h>
12#include <aws/sagemaker/model/VariantProperty.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API UpdateEndpointRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpoint"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
44 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
45 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
46 template<typename EndpointNameT = Aws::String>
47 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
48 template<typename EndpointNameT = Aws::String>
49 UpdateEndpointRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
51
53
56 inline const Aws::String& GetEndpointConfigName() const { return m_endpointConfigName; }
57 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
58 template<typename EndpointConfigNameT = Aws::String>
59 void SetEndpointConfigName(EndpointConfigNameT&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::forward<EndpointConfigNameT>(value); }
60 template<typename EndpointConfigNameT = Aws::String>
61 UpdateEndpointRequest& WithEndpointConfigName(EndpointConfigNameT&& value) { SetEndpointConfigName(std::forward<EndpointConfigNameT>(value)); return *this;}
63
65
75 inline bool GetRetainAllVariantProperties() const { return m_retainAllVariantProperties; }
76 inline bool RetainAllVariantPropertiesHasBeenSet() const { return m_retainAllVariantPropertiesHasBeenSet; }
77 inline void SetRetainAllVariantProperties(bool value) { m_retainAllVariantPropertiesHasBeenSet = true; m_retainAllVariantProperties = value; }
80
82
92 inline const Aws::Vector<VariantProperty>& GetExcludeRetainedVariantProperties() const { return m_excludeRetainedVariantProperties; }
93 inline bool ExcludeRetainedVariantPropertiesHasBeenSet() const { return m_excludeRetainedVariantPropertiesHasBeenSet; }
94 template<typename ExcludeRetainedVariantPropertiesT = Aws::Vector<VariantProperty>>
95 void SetExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties = std::forward<ExcludeRetainedVariantPropertiesT>(value); }
96 template<typename ExcludeRetainedVariantPropertiesT = Aws::Vector<VariantProperty>>
97 UpdateEndpointRequest& WithExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) { SetExcludeRetainedVariantProperties(std::forward<ExcludeRetainedVariantPropertiesT>(value)); return *this;}
98 template<typename ExcludeRetainedVariantPropertiesT = VariantProperty>
99 UpdateEndpointRequest& AddExcludeRetainedVariantProperties(ExcludeRetainedVariantPropertiesT&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.emplace_back(std::forward<ExcludeRetainedVariantPropertiesT>(value)); return *this; }
101
103
107 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
108 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
109 template<typename DeploymentConfigT = DeploymentConfig>
110 void SetDeploymentConfig(DeploymentConfigT&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::forward<DeploymentConfigT>(value); }
111 template<typename DeploymentConfigT = DeploymentConfig>
112 UpdateEndpointRequest& WithDeploymentConfig(DeploymentConfigT&& value) { SetDeploymentConfig(std::forward<DeploymentConfigT>(value)); return *this;}
114
116
120 inline bool GetRetainDeploymentConfig() const { return m_retainDeploymentConfig; }
121 inline bool RetainDeploymentConfigHasBeenSet() const { return m_retainDeploymentConfigHasBeenSet; }
122 inline void SetRetainDeploymentConfig(bool value) { m_retainDeploymentConfigHasBeenSet = true; m_retainDeploymentConfig = value; }
125 private:
126
127 Aws::String m_endpointName;
128 bool m_endpointNameHasBeenSet = false;
129
130 Aws::String m_endpointConfigName;
131 bool m_endpointConfigNameHasBeenSet = false;
132
133 bool m_retainAllVariantProperties{false};
134 bool m_retainAllVariantPropertiesHasBeenSet = false;
135
136 Aws::Vector<VariantProperty> m_excludeRetainedVariantProperties;
137 bool m_excludeRetainedVariantPropertiesHasBeenSet = false;
138
139 DeploymentConfig m_deploymentConfig;
140 bool m_deploymentConfigHasBeenSet = false;
141
142 bool m_retainDeploymentConfig{false};
143 bool m_retainDeploymentConfigHasBeenSet = false;
144 };
145
146} // namespace Model
147} // namespace SageMaker
148} // 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