AWS SDK for C++

AWS SDK for C++ Version 1.11.718

Loading...
Searching...
No Matches
CreateEndpointRequest.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/Tag.h>
13
14#include <utility>
15
16namespace Aws {
17namespace SageMaker {
18namespace Model {
19
23 public:
24 AWS_SAGEMAKER_API CreateEndpointRequest() = 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 "CreateEndpoint"; }
31
32 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
33
35
37
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) {
48 m_endpointNameHasBeenSet = true;
49 m_endpointName = std::forward<EndpointNameT>(value);
50 }
51 template <typename EndpointNameT = Aws::String>
52 CreateEndpointRequest& WithEndpointName(EndpointNameT&& value) {
53 SetEndpointName(std::forward<EndpointNameT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetEndpointConfigName() const { return m_endpointConfigName; }
65 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
66 template <typename EndpointConfigNameT = Aws::String>
67 void SetEndpointConfigName(EndpointConfigNameT&& value) {
68 m_endpointConfigNameHasBeenSet = true;
69 m_endpointConfigName = std::forward<EndpointConfigNameT>(value);
70 }
71 template <typename EndpointConfigNameT = Aws::String>
72 CreateEndpointRequest& WithEndpointConfigName(EndpointConfigNameT&& value) {
73 SetEndpointConfigName(std::forward<EndpointConfigNameT>(value));
74 return *this;
75 }
77
79
80 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
81 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
82 template <typename DeploymentConfigT = DeploymentConfig>
83 void SetDeploymentConfig(DeploymentConfigT&& value) {
84 m_deploymentConfigHasBeenSet = true;
85 m_deploymentConfig = std::forward<DeploymentConfigT>(value);
86 }
87 template <typename DeploymentConfigT = DeploymentConfig>
88 CreateEndpointRequest& WithDeploymentConfig(DeploymentConfigT&& value) {
89 SetDeploymentConfig(std::forward<DeploymentConfigT>(value));
90 return *this;
91 }
93
95
102 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
103 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
104 template <typename TagsT = Aws::Vector<Tag>>
105 void SetTags(TagsT&& value) {
106 m_tagsHasBeenSet = true;
107 m_tags = std::forward<TagsT>(value);
108 }
109 template <typename TagsT = Aws::Vector<Tag>>
111 SetTags(std::forward<TagsT>(value));
112 return *this;
113 }
114 template <typename TagsT = Tag>
116 m_tagsHasBeenSet = true;
117 m_tags.emplace_back(std::forward<TagsT>(value));
118 return *this;
119 }
121 private:
122 Aws::String m_endpointName;
123
124 Aws::String m_endpointConfigName;
125
126 DeploymentConfig m_deploymentConfig;
127
128 Aws::Vector<Tag> m_tags;
129 bool m_endpointNameHasBeenSet = false;
130 bool m_endpointConfigNameHasBeenSet = false;
131 bool m_deploymentConfigHasBeenSet = false;
132 bool m_tagsHasBeenSet = false;
133};
134
135} // namespace Model
136} // namespace SageMaker
137} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & AddTags(TagsT &&value)
CreateEndpointRequest & WithDeploymentConfig(DeploymentConfigT &&value)
CreateEndpointRequest & WithTags(TagsT &&value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
CreateEndpointRequest & WithEndpointName(EndpointNameT &&value)
void SetDeploymentConfig(DeploymentConfigT &&value)
AWS_SAGEMAKER_API CreateEndpointRequest()=default
void SetEndpointConfigName(EndpointConfigNameT &&value)
CreateEndpointRequest & WithEndpointConfigName(EndpointConfigNameT &&value)
const DeploymentConfig & GetDeploymentConfig() const
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