AWS SDK for C++  1.9.104
AWS SDK for C++
CreateGatewayRouteRequest.h
Go to the documentation of this file.
1 
6 #pragma once
13 #include <utility>
14 #include <aws/core/utils/UUID.h>
15 
16 namespace Aws
17 {
18 namespace Http
19 {
20  class URI;
21 } //namespace Http
22 namespace AppMesh
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33 
34  // Service request name is the Operation name which will send this request out,
35  // each operation should has unique request name, so that we can get operation's name from this request.
36  // Note: this is not true for response, multiple operations may have the same response name,
37  // so we can not get operation's name from response.
38  inline virtual const char* GetServiceRequestName() const override { return "CreateGatewayRoute"; }
39 
40  Aws::String SerializePayload() const override;
41 
42  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43 
44 
50  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
51 
57  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
58 
64  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
65 
71  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
72 
78  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
79 
85  inline CreateGatewayRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
86 
92  inline CreateGatewayRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
93 
99  inline CreateGatewayRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
100 
101 
105  inline const Aws::String& GetGatewayRouteName() const{ return m_gatewayRouteName; }
106 
110  inline bool GatewayRouteNameHasBeenSet() const { return m_gatewayRouteNameHasBeenSet; }
111 
115  inline void SetGatewayRouteName(const Aws::String& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = value; }
116 
120  inline void SetGatewayRouteName(Aws::String&& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = std::move(value); }
121 
125  inline void SetGatewayRouteName(const char* value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName.assign(value); }
126 
130  inline CreateGatewayRouteRequest& WithGatewayRouteName(const Aws::String& value) { SetGatewayRouteName(value); return *this;}
131 
135  inline CreateGatewayRouteRequest& WithGatewayRouteName(Aws::String&& value) { SetGatewayRouteName(std::move(value)); return *this;}
136 
140  inline CreateGatewayRouteRequest& WithGatewayRouteName(const char* value) { SetGatewayRouteName(value); return *this;}
141 
142 
146  inline const Aws::String& GetMeshName() const{ return m_meshName; }
147 
151  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
152 
156  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
157 
161  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
162 
166  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
167 
171  inline CreateGatewayRouteRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
172 
176  inline CreateGatewayRouteRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
177 
181  inline CreateGatewayRouteRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
182 
183 
192  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
193 
202  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
203 
212  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
213 
222  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
223 
232  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
233 
242  inline CreateGatewayRouteRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
243 
252  inline CreateGatewayRouteRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
253 
262  inline CreateGatewayRouteRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
263 
264 
268  inline const GatewayRouteSpec& GetSpec() const{ return m_spec; }
269 
273  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
274 
278  inline void SetSpec(const GatewayRouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
279 
283  inline void SetSpec(GatewayRouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
284 
288  inline CreateGatewayRouteRequest& WithSpec(const GatewayRouteSpec& value) { SetSpec(value); return *this;}
289 
293  inline CreateGatewayRouteRequest& WithSpec(GatewayRouteSpec&& value) { SetSpec(std::move(value)); return *this;}
294 
295 
302  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
303 
310  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
311 
318  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
319 
326  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
327 
334  inline CreateGatewayRouteRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
335 
342  inline CreateGatewayRouteRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
343 
350  inline CreateGatewayRouteRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
351 
358  inline CreateGatewayRouteRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
359 
360 
366  inline const Aws::String& GetVirtualGatewayName() const{ return m_virtualGatewayName; }
367 
373  inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
374 
380  inline void SetVirtualGatewayName(const Aws::String& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = value; }
381 
387  inline void SetVirtualGatewayName(Aws::String&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::move(value); }
388 
394  inline void SetVirtualGatewayName(const char* value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName.assign(value); }
395 
401  inline CreateGatewayRouteRequest& WithVirtualGatewayName(const Aws::String& value) { SetVirtualGatewayName(value); return *this;}
402 
408  inline CreateGatewayRouteRequest& WithVirtualGatewayName(Aws::String&& value) { SetVirtualGatewayName(std::move(value)); return *this;}
409 
415  inline CreateGatewayRouteRequest& WithVirtualGatewayName(const char* value) { SetVirtualGatewayName(value); return *this;}
416 
417  private:
418 
419  Aws::String m_clientToken;
420  bool m_clientTokenHasBeenSet;
421 
422  Aws::String m_gatewayRouteName;
423  bool m_gatewayRouteNameHasBeenSet;
424 
425  Aws::String m_meshName;
426  bool m_meshNameHasBeenSet;
427 
428  Aws::String m_meshOwner;
429  bool m_meshOwnerHasBeenSet;
430 
431  GatewayRouteSpec m_spec;
432  bool m_specHasBeenSet;
433 
434  Aws::Vector<TagRef> m_tags;
435  bool m_tagsHasBeenSet;
436 
437  Aws::String m_virtualGatewayName;
438  bool m_virtualGatewayNameHasBeenSet;
439  };
440 
441 } // namespace Model
442 } // namespace AppMesh
443 } // namespace Aws
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetGatewayRouteName
void SetGatewayRouteName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:120
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithClientToken
CreateGatewayRouteRequest & WithClientToken(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:92
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetSpec
const GatewayRouteSpec & GetSpec() const
Definition: CreateGatewayRouteRequest.h:268
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:161
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithSpec
CreateGatewayRouteRequest & WithSpec(const GatewayRouteSpec &value)
Definition: CreateGatewayRouteRequest.h:288
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetVirtualGatewayName
void SetVirtualGatewayName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:380
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshName
void SetMeshName(const char *value)
Definition: CreateGatewayRouteRequest.h:166
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshOwner
CreateGatewayRouteRequest & WithMeshOwner(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:242
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetVirtualGatewayName
void SetVirtualGatewayName(const char *value)
Definition: CreateGatewayRouteRequest.h:394
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:64
Aws::AppMesh::Model::CreateGatewayRouteRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:310
Aws::AppMesh::Model::CreateGatewayRouteRequest::VirtualGatewayNameHasBeenSet
bool VirtualGatewayNameHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:373
GatewayRouteSpec.h
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: CreateGatewayRouteRequest.h:192
TagRef.h
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithVirtualGatewayName
CreateGatewayRouteRequest & WithVirtualGatewayName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:408
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetGatewayRouteName
void SetGatewayRouteName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:115
Aws::AppMesh::Model::CreateGatewayRouteRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:151
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithClientToken
CreateGatewayRouteRequest & WithClientToken(const char *value)
Definition: CreateGatewayRouteRequest.h:99
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetSpec
void SetSpec(const GatewayRouteSpec &value)
Definition: CreateGatewayRouteRequest.h:278
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateGatewayRouteRequest.h:38
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetGatewayRouteName
const Aws::String & GetGatewayRouteName() const
Definition: CreateGatewayRouteRequest.h:105
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshName
CreateGatewayRouteRequest & WithMeshName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:176
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: CreateGatewayRouteRequest.h:232
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: CreateGatewayRouteRequest.h:318
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithGatewayRouteName
CreateGatewayRouteRequest & WithGatewayRouteName(const char *value)
Definition: CreateGatewayRouteRequest.h:140
Aws::AppMesh::Model::CreateGatewayRouteRequest
Definition: CreateGatewayRouteRequest.h:30
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetGatewayRouteName
void SetGatewayRouteName(const char *value)
Definition: CreateGatewayRouteRequest.h:125
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: CreateGatewayRouteRequest.h:326
Aws::AppMesh::Model::CreateGatewayRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::CreateGatewayRouteRequest::GatewayRouteNameHasBeenSet
bool GatewayRouteNameHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:110
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithClientToken
CreateGatewayRouteRequest & WithClientToken(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:85
Aws::AppMesh::Model::CreateGatewayRouteRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateGatewayRouteRequest.h:78
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithVirtualGatewayName
CreateGatewayRouteRequest & WithVirtualGatewayName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:401
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetVirtualGatewayName
void SetVirtualGatewayName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:387
AWSString.h
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: CreateGatewayRouteRequest.h:302
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithGatewayRouteName
CreateGatewayRouteRequest & WithGatewayRouteName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:130
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:222
Aws::AppMesh::Model::CreateGatewayRouteRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:202
Aws::AppMesh::Model::GatewayRouteSpec
Definition: GatewayRouteSpec.h:34
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithTags
CreateGatewayRouteRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: CreateGatewayRouteRequest.h:334
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshOwner
CreateGatewayRouteRequest & WithMeshOwner(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:252
Aws::AppMesh::Model::CreateGatewayRouteRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:57
Aws::AppMesh::Model::CreateGatewayRouteRequest::AddTags
CreateGatewayRouteRequest & AddTags(const TagRef &value)
Definition: CreateGatewayRouteRequest.h:350
Aws::AppMesh::Model::CreateGatewayRouteRequest::CreateGatewayRouteRequest
CreateGatewayRouteRequest()
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshName
CreateGatewayRouteRequest & WithMeshName(const char *value)
Definition: CreateGatewayRouteRequest.h:181
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshName
CreateGatewayRouteRequest & WithMeshName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:171
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithMeshOwner
CreateGatewayRouteRequest & WithMeshOwner(const char *value)
Definition: CreateGatewayRouteRequest.h:262
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: CreateGatewayRouteRequest.h:146
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:71
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithTags
CreateGatewayRouteRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: CreateGatewayRouteRequest.h:342
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithVirtualGatewayName
CreateGatewayRouteRequest & WithVirtualGatewayName(const char *value)
Definition: CreateGatewayRouteRequest.h:415
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetSpec
void SetSpec(GatewayRouteSpec &&value)
Definition: CreateGatewayRouteRequest.h:283
Aws::AppMesh::Model::CreateGatewayRouteRequest::AddTags
CreateGatewayRouteRequest & AddTags(TagRef &&value)
Definition: CreateGatewayRouteRequest.h:358
UUID.h
Aws::AppMesh::Model::CreateGatewayRouteRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: CreateGatewayRouteRequest.h:273
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateGatewayRouteRequest.h:50
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithSpec
CreateGatewayRouteRequest & WithSpec(GatewayRouteSpec &&value)
Definition: CreateGatewayRouteRequest.h:293
Aws::AppMesh::Model::CreateGatewayRouteRequest::GetVirtualGatewayName
const Aws::String & GetVirtualGatewayName() const
Definition: CreateGatewayRouteRequest.h:366
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:156
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::CreateGatewayRouteRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: CreateGatewayRouteRequest.h:212
Aws::AppMesh::Model::CreateGatewayRouteRequest::WithGatewayRouteName
CreateGatewayRouteRequest & WithGatewayRouteName(Aws::String &&value)
Definition: CreateGatewayRouteRequest.h:135
AppMeshRequest.h