AWS SDK for C++  1.9.14
AWS SDK for C++
CreateRouteRequest.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 
33  {
34  public:
36 
37  // Service request name is the Operation name which will send this request out,
38  // each operation should has unique request name, so that we can get operation's name from this request.
39  // Note: this is not true for response, multiple operations may have the same response name,
40  // so we can not get operation's name from response.
41  inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
42 
43  Aws::String SerializePayload() const override;
44 
45  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46 
47 
53  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
54 
60  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
61 
67  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
68 
74  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
75 
81  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
82 
88  inline CreateRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 
95  inline CreateRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
96 
102  inline CreateRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
103 
104 
108  inline const Aws::String& GetMeshName() const{ return m_meshName; }
109 
113  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
114 
118  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
119 
123  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
124 
128  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
129 
133  inline CreateRouteRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
134 
138  inline CreateRouteRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
139 
143  inline CreateRouteRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
144 
145 
154  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
155 
164  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
165 
174  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
175 
184  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
185 
194  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
195 
204  inline CreateRouteRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
205 
214  inline CreateRouteRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
215 
224  inline CreateRouteRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
225 
226 
230  inline const Aws::String& GetRouteName() const{ return m_routeName; }
231 
235  inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
236 
240  inline void SetRouteName(const Aws::String& value) { m_routeNameHasBeenSet = true; m_routeName = value; }
241 
245  inline void SetRouteName(Aws::String&& value) { m_routeNameHasBeenSet = true; m_routeName = std::move(value); }
246 
250  inline void SetRouteName(const char* value) { m_routeNameHasBeenSet = true; m_routeName.assign(value); }
251 
255  inline CreateRouteRequest& WithRouteName(const Aws::String& value) { SetRouteName(value); return *this;}
256 
260  inline CreateRouteRequest& WithRouteName(Aws::String&& value) { SetRouteName(std::move(value)); return *this;}
261 
265  inline CreateRouteRequest& WithRouteName(const char* value) { SetRouteName(value); return *this;}
266 
267 
271  inline const RouteSpec& GetSpec() const{ return m_spec; }
272 
276  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
277 
281  inline void SetSpec(const RouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
282 
286  inline void SetSpec(RouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
287 
291  inline CreateRouteRequest& WithSpec(const RouteSpec& value) { SetSpec(value); return *this;}
292 
296  inline CreateRouteRequest& WithSpec(RouteSpec&& value) { SetSpec(std::move(value)); return *this;}
297 
298 
305  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
306 
313  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
314 
321  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
322 
329  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
330 
337  inline CreateRouteRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
338 
345  inline CreateRouteRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
346 
353  inline CreateRouteRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
354 
361  inline CreateRouteRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
362 
363 
369  inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
370 
376  inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
377 
383  inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
384 
390  inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
391 
397  inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
398 
404  inline CreateRouteRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
405 
411  inline CreateRouteRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
412 
418  inline CreateRouteRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
419 
420  private:
421 
422  Aws::String m_clientToken;
423  bool m_clientTokenHasBeenSet;
424 
425  Aws::String m_meshName;
426  bool m_meshNameHasBeenSet;
427 
428  Aws::String m_meshOwner;
429  bool m_meshOwnerHasBeenSet;
430 
431  Aws::String m_routeName;
432  bool m_routeNameHasBeenSet;
433 
434  RouteSpec m_spec;
435  bool m_specHasBeenSet;
436 
437  Aws::Vector<TagRef> m_tags;
438  bool m_tagsHasBeenSet;
439 
440  Aws::String m_virtualRouterName;
441  bool m_virtualRouterNameHasBeenSet;
442  };
443 
444 } // namespace Model
445 } // namespace AppMesh
446 } // namespace Aws
Aws::AppMesh::Model::CreateRouteRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: CreateRouteRequest.h:329
Aws::AppMesh::Model::CreateRouteRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateRouteRequest.h:74
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::CreateRouteRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: CreateRouteRequest.h:174
Aws::AppMesh::Model::CreateRouteRequest::GetRouteName
const Aws::String & GetRouteName() const
Definition: CreateRouteRequest.h:230
Aws::AppMesh::Model::CreateRouteRequest::SetSpec
void SetSpec(const RouteSpec &value)
Definition: CreateRouteRequest.h:281
Aws::AppMesh::Model::CreateRouteRequest::WithClientToken
CreateRouteRequest & WithClientToken(const Aws::String &value)
Definition: CreateRouteRequest.h:88
Aws::AppMesh::Model::CreateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(const Aws::String &value)
Definition: CreateRouteRequest.h:383
Aws::AppMesh::Model::CreateRouteRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateRouteRequest.h:53
Aws::AppMesh::Model::CreateRouteRequest::SetSpec
void SetSpec(RouteSpec &&value)
Definition: CreateRouteRequest.h:286
Aws::AppMesh::Model::CreateRouteRequest::AddTags
CreateRouteRequest & AddTags(TagRef &&value)
Definition: CreateRouteRequest.h:361
TagRef.h
Aws::AppMesh::Model::CreateRouteRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: CreateRouteRequest.h:321
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::CreateRouteRequest::WithRouteName
CreateRouteRequest & WithRouteName(Aws::String &&value)
Definition: CreateRouteRequest.h:260
Aws::AppMesh::Model::CreateRouteRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateRouteRequest.h:313
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::CreateRouteRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: CreateRouteRequest.h:154
Aws::AppMesh::Model::CreateRouteRequest::WithMeshName
CreateRouteRequest & WithMeshName(const char *value)
Definition: CreateRouteRequest.h:143
Aws::AppMesh::Model::CreateRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateRouteRequest.h:41
Aws::AppMesh::Model::CreateRouteRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: CreateRouteRequest.h:113
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::CreateRouteRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateRouteRequest.h:67
Aws::AppMesh::Model::RouteSpec
Definition: RouteSpec.h:35
Aws::AppMesh::Model::CreateRouteRequest::WithVirtualRouterName
CreateRouteRequest & WithVirtualRouterName(const Aws::String &value)
Definition: CreateRouteRequest.h:404
Aws::AppMesh::Model::CreateRouteRequest::WithMeshOwner
CreateRouteRequest & WithMeshOwner(Aws::String &&value)
Definition: CreateRouteRequest.h:214
Aws::AppMesh::Model::CreateRouteRequest::WithMeshOwner
CreateRouteRequest & WithMeshOwner(const char *value)
Definition: CreateRouteRequest.h:224
Aws::AppMesh::Model::CreateRouteRequest::SetMeshName
void SetMeshName(const char *value)
Definition: CreateRouteRequest.h:128
Aws::AppMesh::Model::CreateRouteRequest::CreateRouteRequest
CreateRouteRequest()
Aws::AppMesh::Model::CreateRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::CreateRouteRequest::SetRouteName
void SetRouteName(const char *value)
Definition: CreateRouteRequest.h:250
Aws::AppMesh::Model::CreateRouteRequest
Definition: CreateRouteRequest.h:33
Aws::AppMesh::Model::CreateRouteRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: CreateRouteRequest.h:305
Aws::AppMesh::Model::CreateRouteRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AppMesh::Model::CreateRouteRequest::WithSpec
CreateRouteRequest & WithSpec(const RouteSpec &value)
Definition: CreateRouteRequest.h:291
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::CreateRouteRequest::WithRouteName
CreateRouteRequest & WithRouteName(const char *value)
Definition: CreateRouteRequest.h:265
Aws::AppMesh::Model::CreateRouteRequest::WithMeshName
CreateRouteRequest & WithMeshName(const Aws::String &value)
Definition: CreateRouteRequest.h:133
Aws::AppMesh::Model::CreateRouteRequest::WithTags
CreateRouteRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: CreateRouteRequest.h:337
Aws::AppMesh::Model::CreateRouteRequest::SetRouteName
void SetRouteName(Aws::String &&value)
Definition: CreateRouteRequest.h:245
Aws::AppMesh::Model::CreateRouteRequest::GetVirtualRouterName
const Aws::String & GetVirtualRouterName() const
Definition: CreateRouteRequest.h:369
Aws::AppMesh::Model::CreateRouteRequest::WithClientToken
CreateRouteRequest & WithClientToken(const char *value)
Definition: CreateRouteRequest.h:102
Aws::AppMesh::Model::CreateRouteRequest::WithVirtualRouterName
CreateRouteRequest & WithVirtualRouterName(const char *value)
Definition: CreateRouteRequest.h:418
Aws::AppMesh::Model::CreateRouteRequest::WithClientToken
CreateRouteRequest & WithClientToken(Aws::String &&value)
Definition: CreateRouteRequest.h:95
Aws::AppMesh::Model::CreateRouteRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: CreateRouteRequest.h:194
AWSString.h
Aws::AppMesh::Model::CreateRouteRequest::WithMeshOwner
CreateRouteRequest & WithMeshOwner(const Aws::String &value)
Definition: CreateRouteRequest.h:204
Aws::AppMesh::Model::CreateRouteRequest::GetSpec
const RouteSpec & GetSpec() const
Definition: CreateRouteRequest.h:271
Aws::AppMesh::Model::CreateRouteRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateRouteRequest.h:60
Aws::AppMesh::Model::CreateRouteRequest::VirtualRouterNameHasBeenSet
bool VirtualRouterNameHasBeenSet() const
Definition: CreateRouteRequest.h:376
Aws::AppMesh::Model::CreateRouteRequest::AddTags
CreateRouteRequest & AddTags(const TagRef &value)
Definition: CreateRouteRequest.h:353
Aws::AppMesh::Model::CreateRouteRequest::RouteNameHasBeenSet
bool RouteNameHasBeenSet() const
Definition: CreateRouteRequest.h:235
Aws::AppMesh::Model::CreateRouteRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateRouteRequest.h:81
Aws::AppMesh::Model::CreateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(Aws::String &&value)
Definition: CreateRouteRequest.h:390
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::CreateRouteRequest::WithRouteName
CreateRouteRequest & WithRouteName(const Aws::String &value)
Definition: CreateRouteRequest.h:255
Aws::AppMesh::Model::CreateRouteRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: CreateRouteRequest.h:164
Aws::AppMesh::Model::CreateRouteRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: CreateRouteRequest.h:123
Aws::AppMesh::Model::CreateRouteRequest::WithSpec
CreateRouteRequest & WithSpec(RouteSpec &&value)
Definition: CreateRouteRequest.h:296
Aws::AppMesh::Model::CreateRouteRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: CreateRouteRequest.h:276
Aws::AppMesh::Model::CreateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(const char *value)
Definition: CreateRouteRequest.h:397
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::CreateRouteRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: CreateRouteRequest.h:184
Aws::AppMesh::Model::CreateRouteRequest::WithTags
CreateRouteRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: CreateRouteRequest.h:345
RouteSpec.h
Aws::AppMesh::Model::CreateRouteRequest::WithVirtualRouterName
CreateRouteRequest & WithVirtualRouterName(Aws::String &&value)
Definition: CreateRouteRequest.h:411
UUID.h
Aws::AppMesh::Model::CreateRouteRequest::SetRouteName
void SetRouteName(const Aws::String &value)
Definition: CreateRouteRequest.h:240
Aws::AppMesh::Model::CreateRouteRequest::WithMeshName
CreateRouteRequest & WithMeshName(Aws::String &&value)
Definition: CreateRouteRequest.h:138
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
AppMeshRequest.h
Aws::AppMesh::Model::CreateRouteRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: CreateRouteRequest.h:108
Aws::AppMesh::Model::CreateRouteRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: CreateRouteRequest.h:118