AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
CreateEndpointRequest.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/sagemaker/model/DeploymentConfig.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/sagemaker/model/Tag.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SageMaker
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SAGEMAKER_API CreateEndpointRequest() = 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 "CreateEndpoint"; }
34
35 AWS_SAGEMAKER_API Aws::String SerializePayload() const override;
36
38
39
41
48 inline const Aws::String& GetEndpointName() const { return m_endpointName; }
49 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
50 template<typename EndpointNameT = Aws::String>
51 void SetEndpointName(EndpointNameT&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::forward<EndpointNameT>(value); }
52 template<typename EndpointNameT = Aws::String>
53 CreateEndpointRequest& WithEndpointName(EndpointNameT&& value) { SetEndpointName(std::forward<EndpointNameT>(value)); return *this;}
55
57
62 inline const Aws::String& GetEndpointConfigName() const { return m_endpointConfigName; }
63 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
64 template<typename EndpointConfigNameT = Aws::String>
65 void SetEndpointConfigName(EndpointConfigNameT&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::forward<EndpointConfigNameT>(value); }
66 template<typename EndpointConfigNameT = Aws::String>
67 CreateEndpointRequest& WithEndpointConfigName(EndpointConfigNameT&& value) { SetEndpointConfigName(std::forward<EndpointConfigNameT>(value)); return *this;}
69
71
72 inline const DeploymentConfig& GetDeploymentConfig() const { return m_deploymentConfig; }
73 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
74 template<typename DeploymentConfigT = DeploymentConfig>
75 void SetDeploymentConfig(DeploymentConfigT&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::forward<DeploymentConfigT>(value); }
76 template<typename DeploymentConfigT = DeploymentConfig>
77 CreateEndpointRequest& WithDeploymentConfig(DeploymentConfigT&& value) { SetDeploymentConfig(std::forward<DeploymentConfigT>(value)); return *this;}
79
81
88 inline const Aws::Vector<Tag>& GetTags() const { return m_tags; }
89 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
90 template<typename TagsT = Aws::Vector<Tag>>
91 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
92 template<typename TagsT = Aws::Vector<Tag>>
93 CreateEndpointRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
94 template<typename TagsT = Tag>
95 CreateEndpointRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
97 private:
98
99 Aws::String m_endpointName;
100 bool m_endpointNameHasBeenSet = false;
101
102 Aws::String m_endpointConfigName;
103 bool m_endpointConfigNameHasBeenSet = false;
104
105 DeploymentConfig m_deploymentConfig;
106 bool m_deploymentConfigHasBeenSet = false;
107
108 Aws::Vector<Tag> m_tags;
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace SageMaker
114} // namespace Aws
const Aws::Vector< Tag > & GetTags() const
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