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/comprehend/Comprehend_EXPORTS.h>
8#include <aws/comprehend/ComprehendRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/comprehend/model/Tag.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace Comprehend
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_COMPREHEND_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_COMPREHEND_API Aws::String SerializePayload() const override;
36
38
39
41
45 inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
46 inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
47 inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
48 inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
49 inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
50 inline CreateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
51 inline CreateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
52 inline CreateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
54
56
60 inline const Aws::String& GetModelArn() const{ return m_modelArn; }
61 inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
62 inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
63 inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
64 inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
65 inline CreateEndpointRequest& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
66 inline CreateEndpointRequest& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
67 inline CreateEndpointRequest& WithModelArn(const char* value) { SetModelArn(value); return *this;}
69
71
76 inline int GetDesiredInferenceUnits() const{ return m_desiredInferenceUnits; }
77 inline bool DesiredInferenceUnitsHasBeenSet() const { return m_desiredInferenceUnitsHasBeenSet; }
78 inline void SetDesiredInferenceUnits(int value) { m_desiredInferenceUnitsHasBeenSet = true; m_desiredInferenceUnits = value; }
81
83
88 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
89 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
90 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
91 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
92 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
94 inline CreateEndpointRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
95 inline CreateEndpointRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
97
99
104 inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
105 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
106 inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
107 inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
108 inline CreateEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
109 inline CreateEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
110 inline CreateEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
111 inline CreateEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
113
115
120 inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
121 inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
122 inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
123 inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
124 inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
126 inline CreateEndpointRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
127 inline CreateEndpointRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
129
131
135 inline const Aws::String& GetFlywheelArn() const{ return m_flywheelArn; }
136 inline bool FlywheelArnHasBeenSet() const { return m_flywheelArnHasBeenSet; }
137 inline void SetFlywheelArn(const Aws::String& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = value; }
138 inline void SetFlywheelArn(Aws::String&& value) { m_flywheelArnHasBeenSet = true; m_flywheelArn = std::move(value); }
139 inline void SetFlywheelArn(const char* value) { m_flywheelArnHasBeenSet = true; m_flywheelArn.assign(value); }
140 inline CreateEndpointRequest& WithFlywheelArn(const Aws::String& value) { SetFlywheelArn(value); return *this;}
141 inline CreateEndpointRequest& WithFlywheelArn(Aws::String&& value) { SetFlywheelArn(std::move(value)); return *this;}
142 inline CreateEndpointRequest& WithFlywheelArn(const char* value) { SetFlywheelArn(value); return *this;}
144 private:
145
146 Aws::String m_endpointName;
147 bool m_endpointNameHasBeenSet = false;
148
149 Aws::String m_modelArn;
150 bool m_modelArnHasBeenSet = false;
151
152 int m_desiredInferenceUnits;
153 bool m_desiredInferenceUnitsHasBeenSet = false;
154
155 Aws::String m_clientRequestToken;
156 bool m_clientRequestTokenHasBeenSet = false;
157
158 Aws::Vector<Tag> m_tags;
159 bool m_tagsHasBeenSet = false;
160
161 Aws::String m_dataAccessRoleArn;
162 bool m_dataAccessRoleArnHasBeenSet = false;
163
164 Aws::String m_flywheelArn;
165 bool m_flywheelArnHasBeenSet = false;
166 };
167
168} // namespace Model
169} // namespace Comprehend
170} // namespace Aws
CreateEndpointRequest & WithEndpointName(const Aws::String &value)
CreateEndpointRequest & WithEndpointName(Aws::String &&value)
CreateEndpointRequest & WithModelArn(const Aws::String &value)
CreateEndpointRequest & WithDesiredInferenceUnits(int value)
CreateEndpointRequest & WithDataAccessRoleArn(Aws::String &&value)
CreateEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
CreateEndpointRequest & WithFlywheelArn(const char *value)
CreateEndpointRequest & WithClientRequestToken(Aws::String &&value)
CreateEndpointRequest & WithEndpointName(const char *value)
CreateEndpointRequest & WithModelArn(Aws::String &&value)
CreateEndpointRequest & AddTags(Tag &&value)
void SetClientRequestToken(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
CreateEndpointRequest & WithDataAccessRoleArn(const char *value)
CreateEndpointRequest & WithClientRequestToken(const Aws::String &value)
AWS_COMPREHEND_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
CreateEndpointRequest & WithDataAccessRoleArn(const Aws::String &value)
CreateEndpointRequest & WithFlywheelArn(Aws::String &&value)
CreateEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
AWS_COMPREHEND_API Aws::String SerializePayload() const override
CreateEndpointRequest & WithFlywheelArn(const Aws::String &value)
void SetTags(const Aws::Vector< Tag > &value)
CreateEndpointRequest & WithModelArn(const char *value)
CreateEndpointRequest & AddTags(const Tag &value)
CreateEndpointRequest & WithClientRequestToken(const char *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