AWS SDK for C++  1.9.66
AWS SDK for C++
CreateEndpointRequest.h
Go to the documentation of this file.
1 
6 #pragma once
12 #include <utility>
13 #include <aws/core/utils/UUID.h>
14 
15 namespace Aws
16 {
17 namespace Comprehend
18 {
19 namespace Model
20 {
21 
25  {
26  public:
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::String SerializePayload() const override;
36 
38 
39 
44  inline const Aws::String& GetEndpointName() const{ return m_endpointName; }
45 
50  inline bool EndpointNameHasBeenSet() const { return m_endpointNameHasBeenSet; }
51 
56  inline void SetEndpointName(const Aws::String& value) { m_endpointNameHasBeenSet = true; m_endpointName = value; }
57 
62  inline void SetEndpointName(Aws::String&& value) { m_endpointNameHasBeenSet = true; m_endpointName = std::move(value); }
63 
68  inline void SetEndpointName(const char* value) { m_endpointNameHasBeenSet = true; m_endpointName.assign(value); }
69 
74  inline CreateEndpointRequest& WithEndpointName(const Aws::String& value) { SetEndpointName(value); return *this;}
75 
80  inline CreateEndpointRequest& WithEndpointName(Aws::String&& value) { SetEndpointName(std::move(value)); return *this;}
81 
86  inline CreateEndpointRequest& WithEndpointName(const char* value) { SetEndpointName(value); return *this;}
87 
88 
93  inline const Aws::String& GetModelArn() const{ return m_modelArn; }
94 
99  inline bool ModelArnHasBeenSet() const { return m_modelArnHasBeenSet; }
100 
105  inline void SetModelArn(const Aws::String& value) { m_modelArnHasBeenSet = true; m_modelArn = value; }
106 
111  inline void SetModelArn(Aws::String&& value) { m_modelArnHasBeenSet = true; m_modelArn = std::move(value); }
112 
117  inline void SetModelArn(const char* value) { m_modelArnHasBeenSet = true; m_modelArn.assign(value); }
118 
123  inline CreateEndpointRequest& WithModelArn(const Aws::String& value) { SetModelArn(value); return *this;}
124 
129  inline CreateEndpointRequest& WithModelArn(Aws::String&& value) { SetModelArn(std::move(value)); return *this;}
130 
135  inline CreateEndpointRequest& WithModelArn(const char* value) { SetModelArn(value); return *this;}
136 
137 
143  inline int GetDesiredInferenceUnits() const{ return m_desiredInferenceUnits; }
144 
150  inline bool DesiredInferenceUnitsHasBeenSet() const { return m_desiredInferenceUnitsHasBeenSet; }
151 
157  inline void SetDesiredInferenceUnits(int value) { m_desiredInferenceUnitsHasBeenSet = true; m_desiredInferenceUnits = value; }
158 
164  inline CreateEndpointRequest& WithDesiredInferenceUnits(int value) { SetDesiredInferenceUnits(value); return *this;}
165 
166 
172  inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
173 
179  inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
180 
186  inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
187 
193  inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
194 
200  inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
201 
207  inline CreateEndpointRequest& WithClientRequestToken(const Aws::String& value) { SetClientRequestToken(value); return *this;}
208 
214  inline CreateEndpointRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
215 
221  inline CreateEndpointRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
222 
223 
229  inline const Aws::Vector<Tag>& GetTags() const{ return m_tags; }
230 
236  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
237 
243  inline void SetTags(const Aws::Vector<Tag>& value) { m_tagsHasBeenSet = true; m_tags = value; }
244 
250  inline void SetTags(Aws::Vector<Tag>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
251 
257  inline CreateEndpointRequest& WithTags(const Aws::Vector<Tag>& value) { SetTags(value); return *this;}
258 
264  inline CreateEndpointRequest& WithTags(Aws::Vector<Tag>&& value) { SetTags(std::move(value)); return *this;}
265 
271  inline CreateEndpointRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
272 
278  inline CreateEndpointRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
279 
280 
286  inline const Aws::String& GetDataAccessRoleArn() const{ return m_dataAccessRoleArn; }
287 
293  inline bool DataAccessRoleArnHasBeenSet() const { return m_dataAccessRoleArnHasBeenSet; }
294 
300  inline void SetDataAccessRoleArn(const Aws::String& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = value; }
301 
307  inline void SetDataAccessRoleArn(Aws::String&& value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn = std::move(value); }
308 
314  inline void SetDataAccessRoleArn(const char* value) { m_dataAccessRoleArnHasBeenSet = true; m_dataAccessRoleArn.assign(value); }
315 
321  inline CreateEndpointRequest& WithDataAccessRoleArn(const Aws::String& value) { SetDataAccessRoleArn(value); return *this;}
322 
328  inline CreateEndpointRequest& WithDataAccessRoleArn(Aws::String&& value) { SetDataAccessRoleArn(std::move(value)); return *this;}
329 
335  inline CreateEndpointRequest& WithDataAccessRoleArn(const char* value) { SetDataAccessRoleArn(value); return *this;}
336 
337  private:
338 
339  Aws::String m_endpointName;
340  bool m_endpointNameHasBeenSet;
341 
342  Aws::String m_modelArn;
343  bool m_modelArnHasBeenSet;
344 
345  int m_desiredInferenceUnits;
346  bool m_desiredInferenceUnitsHasBeenSet;
347 
348  Aws::String m_clientRequestToken;
349  bool m_clientRequestTokenHasBeenSet;
350 
351  Aws::Vector<Tag> m_tags;
352  bool m_tagsHasBeenSet;
353 
354  Aws::String m_dataAccessRoleArn;
355  bool m_dataAccessRoleArnHasBeenSet;
356  };
357 
358 } // namespace Model
359 } // namespace Comprehend
360 } // namespace Aws
Aws::Comprehend::Model::CreateEndpointRequest::WithModelArn
CreateEndpointRequest & WithModelArn(const Aws::String &value)
Definition: CreateEndpointRequest.h:123
Aws::Comprehend::Model::CreateEndpointRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::Comprehend::Model::CreateEndpointRequest::ClientRequestTokenHasBeenSet
bool ClientRequestTokenHasBeenSet() const
Definition: CreateEndpointRequest.h:179
Aws::Comprehend::Model::CreateEndpointRequest::WithClientRequestToken
CreateEndpointRequest & WithClientRequestToken(const char *value)
Definition: CreateEndpointRequest.h:221
Aws::Comprehend::ComprehendRequest
Definition: ComprehendRequest.h:17
Aws::Comprehend::Model::CreateEndpointRequest::AddTags
CreateEndpointRequest & AddTags(const Tag &value)
Definition: CreateEndpointRequest.h:271
Aws::Comprehend::Model::CreateEndpointRequest::CreateEndpointRequest
CreateEndpointRequest()
Aws::Comprehend::Model::CreateEndpointRequest::WithTags
CreateEndpointRequest & WithTags(Aws::Vector< Tag > &&value)
Definition: CreateEndpointRequest.h:264
Aws::Comprehend::Model::CreateEndpointRequest::WithEndpointName
CreateEndpointRequest & WithEndpointName(const char *value)
Definition: CreateEndpointRequest.h:86
AWS_COMPREHEND_API
#define AWS_COMPREHEND_API
Definition: Comprehend_EXPORTS.h:28
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::Comprehend::Model::CreateEndpointRequest::WithDataAccessRoleArn
CreateEndpointRequest & WithDataAccessRoleArn(const Aws::String &value)
Definition: CreateEndpointRequest.h:321
Aws::Comprehend::Model::CreateEndpointRequest::WithDataAccessRoleArn
CreateEndpointRequest & WithDataAccessRoleArn(Aws::String &&value)
Definition: CreateEndpointRequest.h:328
Aws::Comprehend::Model::CreateEndpointRequest::SetEndpointName
void SetEndpointName(const char *value)
Definition: CreateEndpointRequest.h:68
Aws::Comprehend::Model::CreateEndpointRequest::GetTags
const Aws::Vector< Tag > & GetTags() const
Definition: CreateEndpointRequest.h:229
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::Comprehend::Model::CreateEndpointRequest::GetClientRequestToken
const Aws::String & GetClientRequestToken() const
Definition: CreateEndpointRequest.h:172
Aws::Comprehend::Model::CreateEndpointRequest::DataAccessRoleArnHasBeenSet
bool DataAccessRoleArnHasBeenSet() const
Definition: CreateEndpointRequest.h:293
Aws::Comprehend::Model::CreateEndpointRequest::SetClientRequestToken
void SetClientRequestToken(Aws::String &&value)
Definition: CreateEndpointRequest.h:193
Aws::Comprehend::Model::CreateEndpointRequest::GetDataAccessRoleArn
const Aws::String & GetDataAccessRoleArn() const
Definition: CreateEndpointRequest.h:286
AWSVector.h
Aws::Comprehend::Model::CreateEndpointRequest::WithDataAccessRoleArn
CreateEndpointRequest & WithDataAccessRoleArn(const char *value)
Definition: CreateEndpointRequest.h:335
Aws::Comprehend::Model::CreateEndpointRequest::SetTags
void SetTags(Aws::Vector< Tag > &&value)
Definition: CreateEndpointRequest.h:250
Aws::Comprehend::Model::CreateEndpointRequest::WithClientRequestToken
CreateEndpointRequest & WithClientRequestToken(Aws::String &&value)
Definition: CreateEndpointRequest.h:214
Aws::Comprehend::Model::CreateEndpointRequest::SetDesiredInferenceUnits
void SetDesiredInferenceUnits(int value)
Definition: CreateEndpointRequest.h:157
Aws::Comprehend::Model::CreateEndpointRequest::SetModelArn
void SetModelArn(const char *value)
Definition: CreateEndpointRequest.h:117
Aws::Comprehend::Model::CreateEndpointRequest::WithEndpointName
CreateEndpointRequest & WithEndpointName(const Aws::String &value)
Definition: CreateEndpointRequest.h:74
Aws::Comprehend::Model::CreateEndpointRequest::SetModelArn
void SetModelArn(Aws::String &&value)
Definition: CreateEndpointRequest.h:111
Aws::Comprehend::Model::CreateEndpointRequest::SetModelArn
void SetModelArn(const Aws::String &value)
Definition: CreateEndpointRequest.h:105
Aws::Comprehend::Model::CreateEndpointRequest
Definition: CreateEndpointRequest.h:25
Aws::Comprehend::Model::CreateEndpointRequest::DesiredInferenceUnitsHasBeenSet
bool DesiredInferenceUnitsHasBeenSet() const
Definition: CreateEndpointRequest.h:150
Aws::Comprehend::Model::CreateEndpointRequest::WithModelArn
CreateEndpointRequest & WithModelArn(const char *value)
Definition: CreateEndpointRequest.h:135
Aws::Comprehend::Model::CreateEndpointRequest::SetDataAccessRoleArn
void SetDataAccessRoleArn(Aws::String &&value)
Definition: CreateEndpointRequest.h:307
AWSString.h
Aws::Comprehend::Model::CreateEndpointRequest::WithEndpointName
CreateEndpointRequest & WithEndpointName(Aws::String &&value)
Definition: CreateEndpointRequest.h:80
Aws::Comprehend::Model::CreateEndpointRequest::GetEndpointName
const Aws::String & GetEndpointName() const
Definition: CreateEndpointRequest.h:44
Aws::Comprehend::Model::CreateEndpointRequest::SetDataAccessRoleArn
void SetDataAccessRoleArn(const Aws::String &value)
Definition: CreateEndpointRequest.h:300
Aws::Comprehend::Model::CreateEndpointRequest::SetDataAccessRoleArn
void SetDataAccessRoleArn(const char *value)
Definition: CreateEndpointRequest.h:314
ComprehendRequest.h
Aws::Comprehend::Model::CreateEndpointRequest::SetTags
void SetTags(const Aws::Vector< Tag > &value)
Definition: CreateEndpointRequest.h:243
Aws::Comprehend::Model::CreateEndpointRequest::SetEndpointName
void SetEndpointName(Aws::String &&value)
Definition: CreateEndpointRequest.h:62
Aws::Comprehend::Model::CreateEndpointRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateEndpointRequest.h:33
Aws::Comprehend::Model::CreateEndpointRequest::GetModelArn
const Aws::String & GetModelArn() const
Definition: CreateEndpointRequest.h:93
Aws::Comprehend::Model::CreateEndpointRequest::ModelArnHasBeenSet
bool ModelArnHasBeenSet() const
Definition: CreateEndpointRequest.h:99
Aws::Comprehend::Model::CreateEndpointRequest::EndpointNameHasBeenSet
bool EndpointNameHasBeenSet() const
Definition: CreateEndpointRequest.h:50
Aws::Comprehend::Model::CreateEndpointRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateEndpointRequest.h:236
Comprehend_EXPORTS.h
Aws::Comprehend::Model::CreateEndpointRequest::SetClientRequestToken
void SetClientRequestToken(const Aws::String &value)
Definition: CreateEndpointRequest.h:186
Aws
Definition: AccessManagementClient.h:15
Aws::Comprehend::Model::CreateEndpointRequest::WithClientRequestToken
CreateEndpointRequest & WithClientRequestToken(const Aws::String &value)
Definition: CreateEndpointRequest.h:207
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Comprehend::Model::Tag
Definition: Tag.h:35
Aws::Comprehend::Model::CreateEndpointRequest::SetEndpointName
void SetEndpointName(const Aws::String &value)
Definition: CreateEndpointRequest.h:56
Aws::Comprehend::Model::CreateEndpointRequest::WithDesiredInferenceUnits
CreateEndpointRequest & WithDesiredInferenceUnits(int value)
Definition: CreateEndpointRequest.h:164
Aws::Comprehend::Model::CreateEndpointRequest::AddTags
CreateEndpointRequest & AddTags(Tag &&value)
Definition: CreateEndpointRequest.h:278
Aws::Comprehend::Model::CreateEndpointRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::Comprehend::Model::CreateEndpointRequest::WithModelArn
CreateEndpointRequest & WithModelArn(Aws::String &&value)
Definition: CreateEndpointRequest.h:129
Aws::Comprehend::Model::CreateEndpointRequest::WithTags
CreateEndpointRequest & WithTags(const Aws::Vector< Tag > &value)
Definition: CreateEndpointRequest.h:257
Aws::Comprehend::Model::CreateEndpointRequest::GetDesiredInferenceUnits
int GetDesiredInferenceUnits() const
Definition: CreateEndpointRequest.h:143
UUID.h
Tag.h
Aws::Comprehend::Model::CreateEndpointRequest::SetClientRequestToken
void SetClientRequestToken(const char *value)
Definition: CreateEndpointRequest.h:200