AWS SDK for C++  1.9.129
AWS SDK for C++
CreateVirtualRouterRequest.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 "CreateVirtualRouter"; }
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 CreateVirtualRouterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
89 
95  inline CreateVirtualRouterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
96 
102  inline CreateVirtualRouterRequest& 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 CreateVirtualRouterRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
134 
138  inline CreateVirtualRouterRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
139 
143  inline CreateVirtualRouterRequest& 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 CreateVirtualRouterRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
205 
214  inline CreateVirtualRouterRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
215 
224  inline CreateVirtualRouterRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
225 
226 
230  inline const VirtualRouterSpec& GetSpec() const{ return m_spec; }
231 
235  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
236 
240  inline void SetSpec(const VirtualRouterSpec& value) { m_specHasBeenSet = true; m_spec = value; }
241 
245  inline void SetSpec(VirtualRouterSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
246 
250  inline CreateVirtualRouterRequest& WithSpec(const VirtualRouterSpec& value) { SetSpec(value); return *this;}
251 
255  inline CreateVirtualRouterRequest& WithSpec(VirtualRouterSpec&& value) { SetSpec(std::move(value)); return *this;}
256 
257 
264  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
265 
272  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
273 
280  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
281 
288  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
289 
296  inline CreateVirtualRouterRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
297 
304  inline CreateVirtualRouterRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
305 
312  inline CreateVirtualRouterRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
313 
320  inline CreateVirtualRouterRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
321 
322 
326  inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
327 
331  inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
332 
336  inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
337 
341  inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
342 
346  inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
347 
351  inline CreateVirtualRouterRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
352 
356  inline CreateVirtualRouterRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
357 
361  inline CreateVirtualRouterRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
362 
363  private:
364 
365  Aws::String m_clientToken;
366  bool m_clientTokenHasBeenSet;
367 
368  Aws::String m_meshName;
369  bool m_meshNameHasBeenSet;
370 
371  Aws::String m_meshOwner;
372  bool m_meshOwnerHasBeenSet;
373 
374  VirtualRouterSpec m_spec;
375  bool m_specHasBeenSet;
376 
377  Aws::Vector<TagRef> m_tags;
378  bool m_tagsHasBeenSet;
379 
380  Aws::String m_virtualRouterName;
381  bool m_virtualRouterNameHasBeenSet;
382  };
383 
384 } // namespace Model
385 } // namespace AppMesh
386 } // namespace Aws
Aws::AppMesh::Model::CreateVirtualRouterRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::CreateVirtualRouterRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:164
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetVirtualRouterName
const Aws::String & GetVirtualRouterName() const
Definition: CreateVirtualRouterRequest.h:326
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithVirtualRouterName
CreateVirtualRouterRequest & WithVirtualRouterName(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:351
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:74
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithClientToken
CreateVirtualRouterRequest & WithClientToken(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:95
Aws::AppMesh::Model::CreateVirtualRouterRequest::AddTags
CreateVirtualRouterRequest & AddTags(TagRef &&value)
Definition: CreateVirtualRouterRequest.h:320
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: CreateVirtualRouterRequest.h:108
Aws::AppMesh::Model::CreateVirtualRouterRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:60
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:184
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshOwner
CreateVirtualRouterRequest & WithMeshOwner(const char *value)
Definition: CreateVirtualRouterRequest.h:224
TagRef.h
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: CreateVirtualRouterRequest.h:280
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:174
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:67
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithClientToken
CreateVirtualRouterRequest & WithClientToken(const char *value)
Definition: CreateVirtualRouterRequest.h:102
VirtualRouterSpec.h
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithTags
CreateVirtualRouterRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: CreateVirtualRouterRequest.h:296
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: CreateVirtualRouterRequest.h:288
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:118
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetVirtualRouterName
void SetVirtualRouterName(const char *value)
Definition: CreateVirtualRouterRequest.h:346
Aws::AppMesh::Model::CreateVirtualRouterRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:235
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetSpec
void SetSpec(const VirtualRouterSpec &value)
Definition: CreateVirtualRouterRequest.h:240
Aws::AppMesh::Model::VirtualRouterSpec
Definition: VirtualRouterSpec.h:34
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithSpec
CreateVirtualRouterRequest & WithSpec(const VirtualRouterSpec &value)
Definition: CreateVirtualRouterRequest.h:250
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetVirtualRouterName
void SetVirtualRouterName(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:341
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: CreateVirtualRouterRequest.h:264
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshOwner
CreateVirtualRouterRequest & WithMeshOwner(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:204
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithVirtualRouterName
CreateVirtualRouterRequest & WithVirtualRouterName(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:356
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshOwner
CreateVirtualRouterRequest & WithMeshOwner(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:214
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:123
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithClientToken
CreateVirtualRouterRequest & WithClientToken(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:88
Aws::AppMesh::Model::CreateVirtualRouterRequest
Definition: CreateVirtualRouterRequest.h:33
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateVirtualRouterRequest.h:81
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: CreateVirtualRouterRequest.h:154
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetVirtualRouterName
void SetVirtualRouterName(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:336
AWSString.h
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshName
CreateVirtualRouterRequest & WithMeshName(const char *value)
Definition: CreateVirtualRouterRequest.h:143
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshName
CreateVirtualRouterRequest & WithMeshName(const Aws::String &value)
Definition: CreateVirtualRouterRequest.h:133
Aws::AppMesh::Model::CreateVirtualRouterRequest::VirtualRouterNameHasBeenSet
bool VirtualRouterNameHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:331
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetSpec
void SetSpec(VirtualRouterSpec &&value)
Definition: CreateVirtualRouterRequest.h:245
Aws::AppMesh::Model::CreateVirtualRouterRequest::CreateVirtualRouterRequest
CreateVirtualRouterRequest()
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshName
void SetMeshName(const char *value)
Definition: CreateVirtualRouterRequest.h:128
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithSpec
CreateVirtualRouterRequest & WithSpec(VirtualRouterSpec &&value)
Definition: CreateVirtualRouterRequest.h:255
Aws::AppMesh::Model::CreateVirtualRouterRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:113
Aws::AppMesh::Model::CreateVirtualRouterRequest::AddTags
CreateVirtualRouterRequest & AddTags(const TagRef &value)
Definition: CreateVirtualRouterRequest.h:312
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::CreateVirtualRouterRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateVirtualRouterRequest.h:272
Aws::AppMesh::Model::CreateVirtualRouterRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: CreateVirtualRouterRequest.h:194
Aws::AppMesh::Model::CreateVirtualRouterRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithTags
CreateVirtualRouterRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: CreateVirtualRouterRequest.h:304
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVirtualRouterRequest.h:41
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithVirtualRouterName
CreateVirtualRouterRequest & WithVirtualRouterName(const char *value)
Definition: CreateVirtualRouterRequest.h:361
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetSpec
const VirtualRouterSpec & GetSpec() const
Definition: CreateVirtualRouterRequest.h:230
UUID.h
Aws::AppMesh::Model::CreateVirtualRouterRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateVirtualRouterRequest.h:53
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::CreateVirtualRouterRequest::WithMeshName
CreateVirtualRouterRequest & WithMeshName(Aws::String &&value)
Definition: CreateVirtualRouterRequest.h:138
AppMeshRequest.h