AWS SDK for C++  1.8.95
AWS SDK for C++
UpdateEndpointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace SageMaker
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "UpdateEndpoint"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
37 
38 
42  inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
43 
47  inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
48 
52  inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
53 
57  inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
58 
62  inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
63 
67  inline UpdateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
68 
72  inline UpdateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
73 
77  inline UpdateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
78 
79 
83  inline const Aws::String& GetEndpointConfigName() const{ return m_endpointConfigName; }
84 
88  inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
89 
93  inline void SetEndpointConfigName(const Aws::String& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = value; }
94 
98  inline void SetEndpointConfigName(Aws::String&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::move(value); }
99 
103  inline void SetEndpointConfigName(const char* value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName.assign(value); }
104 
108  inline UpdateEndpointRequest& WithEndpointConfigName(const Aws::String& value) { SetEndpointConfigName(value); return *this;}
109 
113  inline UpdateEndpointRequest& WithEndpointConfigName(Aws::String&& value) { SetEndpointConfigName(std::move(value)); return *this;}
114 
118  inline UpdateEndpointRequest& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;}
119 
120 
129  inline bool GetRetainAllVariantProperties() const{ return m_retainAllVariantProperties; }
130 
139  inline bool RetainAllVariantPropertiesHasBeenSet() const { return m_retainAllVariantPropertiesHasBeenSet; }
140 
149  inline void SetRetainAllVariantProperties(bool value) { m_retainAllVariantPropertiesHasBeenSet = true; m_retainAllVariantProperties = value; }
150 
159  inline UpdateEndpointRequest& WithRetainAllVariantProperties(bool value) { SetRetainAllVariantProperties(value); return *this;}
160 
161 
171  inline const Aws::Vector<VariantProperty>& GetExcludeRetainedVariantProperties() const{ return m_excludeRetainedVariantProperties; }
172 
182  inline bool ExcludeRetainedVariantPropertiesHasBeenSet() const { return m_excludeRetainedVariantPropertiesHasBeenSet; }
183 
193  inline void SetExcludeRetainedVariantProperties(const Aws::Vector<VariantProperty>& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties = value; }
194 
204  inline void SetExcludeRetainedVariantProperties(Aws::Vector<VariantProperty>&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties = std::move(value); }
205 
215  inline UpdateEndpointRequest& WithExcludeRetainedVariantProperties(const Aws::Vector<VariantProperty>& value) { SetExcludeRetainedVariantProperties(value); return *this;}
216 
226  inline UpdateEndpointRequest& WithExcludeRetainedVariantProperties(Aws::Vector<VariantProperty>&& value) { SetExcludeRetainedVariantProperties(std::move(value)); return *this;}
227 
237  inline UpdateEndpointRequest& AddExcludeRetainedVariantProperties(const VariantProperty& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.push_back(value); return *this; }
238 
248  inline UpdateEndpointRequest& AddExcludeRetainedVariantProperties(VariantProperty&& value) { m_excludeRetainedVariantPropertiesHasBeenSet = true; m_excludeRetainedVariantProperties.push_back(std::move(value)); return *this; }
249 
250  private:
251 
252  Aws::String m_endpointName;
253  bool m_endpointNameHasBeenSet;
254 
255  Aws::String m_endpointConfigName;
256  bool m_endpointConfigNameHasBeenSet;
257 
258  bool m_retainAllVariantProperties;
259  bool m_retainAllVariantPropertiesHasBeenSet;
260 
261  Aws::Vector<VariantProperty> m_excludeRetainedVariantProperties;
262  bool m_excludeRetainedVariantPropertiesHasBeenSet;
263  };
264 
265 } // namespace Model
266 } // namespace SageMaker
267 } // namespace Aws
UpdateEndpointRequest & WithRetainAllVariantProperties(bool value)
#define AWS_SAGEMAKER_API
UpdateEndpointRequest & WithEndpointName(const char *value)
void SetExcludeRetainedVariantProperties(Aws::Vector< VariantProperty > &&value)
UpdateEndpointRequest & WithEndpointConfigName(const char *value)
UpdateEndpointRequest & WithExcludeRetainedVariantProperties(Aws::Vector< VariantProperty > &&value)
void SetEndpointName(const Aws::String &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
const Aws::Vector< VariantProperty > & GetExcludeRetainedVariantProperties() const
UpdateEndpointRequest & AddExcludeRetainedVariantProperties(VariantProperty &&value)
UpdateEndpointRequest & WithExcludeRetainedVariantProperties(const Aws::Vector< VariantProperty > &value)
void SetExcludeRetainedVariantProperties(const Aws::Vector< VariantProperty > &value)
UpdateEndpointRequest & WithEndpointConfigName(Aws::String &&value)
virtual const char * GetServiceRequestName() const override
void SetEndpointConfigName(const Aws::String &value)
UpdateEndpointRequest & WithEndpointConfigName(const Aws::String &value)
UpdateEndpointRequest & WithEndpointName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateEndpointRequest & WithEndpointName(Aws::String &&value)
UpdateEndpointRequest & AddExcludeRetainedVariantProperties(const VariantProperty &value)