AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
51 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
52 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
53 inline CreateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
54 inline CreateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
55 inline CreateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
57
59
64 inline const Aws::String& GetEndpointConfigName() const{ return m_endpointConfigName; }
65 inline bool EndpointConfigNameHasBeenSet() const { return m_endpointConfigNameHasBeenSet; }
66 inline void SetEndpointConfigName(const Aws::String& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = value; }
67 inline void SetEndpointConfigName(Aws::String&& value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName = std::move(value); }
68 inline void SetEndpointConfigName(const char* value) { m_endpointConfigNameHasBeenSet = true; m_endpointConfigName.assign(value); }
70 inline CreateEndpointRequest& WithEndpointConfigName(Aws::String&& value) { SetEndpointConfigName(std::move(value)); return *this;}
71 inline CreateEndpointRequest& WithEndpointConfigName(const char* value) { SetEndpointConfigName(value); return *this;}
73
75
76 inline const DeploymentConfig& GetDeploymentConfig() const{ return m_deploymentConfig; }
77 inline bool DeploymentConfigHasBeenSet() const { return m_deploymentConfigHasBeenSet; }
78 inline void SetDeploymentConfig(const DeploymentConfig& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = value; }
79 inline void SetDeploymentConfig(DeploymentConfig&& value) { m_deploymentConfigHasBeenSet = true; m_deploymentConfig = std::move(value); }
81 inline CreateEndpointRequest& WithDeploymentConfig(DeploymentConfig&& value) { SetDeploymentConfig(std::move(value)); return *this;}
83
85
92 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
93 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
94 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
95 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
96 inline CreateEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
97 inline CreateEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
98 inline CreateEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
99 inline CreateEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
101 private:
102
103 Aws::String m_endpointName;
104 bool m_endpointNameHasBeenSet = false;
105
106 Aws::String m_endpointConfigName;
107 bool m_endpointConfigNameHasBeenSet = false;
108
109 DeploymentConfig m_deploymentConfig;
110 bool m_deploymentConfigHasBeenSet = false;
111
112 Aws::Vector<Tag> m_tags;
113 bool m_tagsHasBeenSet = false;
114 };
115
116} // namespace Model
117} // namespace SageMaker
118} // namespace Aws
CreateEndpointRequest & WithEndpointConfigName(const char *value)
CreateEndpointRequest & AddTags(const Tag &value)
const Aws::Vector< Tag > & GetTags() const
CreateEndpointRequest & WithDeploymentConfig(const DeploymentConfig &value)
virtual const char * GetServiceRequestName() const override
void SetTags(const Aws::Vector< Tag > &value)
CreateEndpointRequest & WithDeploymentConfig(DeploymentConfig &&value)
CreateEndpointRequest & WithEndpointName(const char *value)
void SetDeploymentConfig(DeploymentConfig &&value)
CreateEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_SAGEMAKER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
void SetEndpointConfigName(const Aws::String &value)
CreateEndpointRequest & WithEndpointName(Aws::String &&value)
CreateEndpointRequest & AddTags(Tag &&value)
AWS_SAGEMAKER_API Aws::String SerializePayload() const override
void SetDeploymentConfig(const DeploymentConfig &value)
CreateEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEndpointRequest & WithEndpointConfigName(const Aws::String &value)
CreateEndpointRequest & WithEndpointName(const Aws::String &value)
CreateEndpointRequest & WithEndpointConfigName(Aws::String &&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