AWS SDK for C++  1.8.71
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 
54  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
55 
62  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
63 
70  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
71 
78  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
79 
86  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
87 
94  inline CreateVirtualRouterRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
95 
102  inline CreateVirtualRouterRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
103 
110  inline CreateVirtualRouterRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
111 
112 
116  inline const Aws::String& GetMeshName() const{ return m_meshName; }
117 
121  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
122 
126  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
127 
131  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
132 
136  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
137 
141  inline CreateVirtualRouterRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
142 
146  inline CreateVirtualRouterRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
147 
151  inline CreateVirtualRouterRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
152 
153 
164  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
165 
176  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
177 
188  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
189 
200  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
201 
212  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
213 
224  inline CreateVirtualRouterRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
225 
236  inline CreateVirtualRouterRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
237 
248  inline CreateVirtualRouterRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
249 
250 
254  inline const VirtualRouterSpec& GetSpec() const{ return m_spec; }
255 
259  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
260 
264  inline void SetSpec(const VirtualRouterSpec& value) { m_specHasBeenSet = true; m_spec = value; }
265 
269  inline void SetSpec(VirtualRouterSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
270 
274  inline CreateVirtualRouterRequest& WithSpec(const VirtualRouterSpec& value) { SetSpec(value); return *this;}
275 
279  inline CreateVirtualRouterRequest& WithSpec(VirtualRouterSpec&& value) { SetSpec(std::move(value)); return *this;}
280 
281 
292  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
293 
304  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
305 
316  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
317 
328  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
329 
340  inline CreateVirtualRouterRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
341 
352  inline CreateVirtualRouterRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
353 
364  inline CreateVirtualRouterRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
365 
376  inline CreateVirtualRouterRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
377 
378 
382  inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
383 
387  inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
388 
392  inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
393 
397  inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
398 
402  inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
403 
407  inline CreateVirtualRouterRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
408 
412  inline CreateVirtualRouterRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
413 
417  inline CreateVirtualRouterRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
418 
419  private:
420 
421  Aws::String m_clientToken;
422  bool m_clientTokenHasBeenSet;
423 
424  Aws::String m_meshName;
425  bool m_meshNameHasBeenSet;
426 
427  Aws::String m_meshOwner;
428  bool m_meshOwnerHasBeenSet;
429 
430  VirtualRouterSpec m_spec;
431  bool m_specHasBeenSet;
432 
433  Aws::Vector<TagRef> m_tags;
434  bool m_tagsHasBeenSet;
435 
436  Aws::String m_virtualRouterName;
437  bool m_virtualRouterNameHasBeenSet;
438  };
439 
440 } // namespace Model
441 } // namespace AppMesh
442 } // namespace Aws
CreateVirtualRouterRequest & WithClientToken(const Aws::String &value)
CreateVirtualRouterRequest & WithMeshOwner(Aws::String &&value)
CreateVirtualRouterRequest & WithMeshName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateVirtualRouterRequest & AddTags(TagRef &&value)
CreateVirtualRouterRequest & WithMeshName(Aws::String &&value)
CreateVirtualRouterRequest & WithVirtualRouterName(Aws::String &&value)
CreateVirtualRouterRequest & AddTags(const TagRef &value)
CreateVirtualRouterRequest & WithClientToken(Aws::String &&value)
void SetTags(const Aws::Vector< TagRef > &value)
CreateVirtualRouterRequest & WithVirtualRouterName(const char *value)
virtual const char * GetServiceRequestName() const override
CreateVirtualRouterRequest & WithMeshOwner(const char *value)
CreateVirtualRouterRequest & WithTags(const Aws::Vector< TagRef > &value)
CreateVirtualRouterRequest & WithSpec(const VirtualRouterSpec &value)
CreateVirtualRouterRequest & WithSpec(VirtualRouterSpec &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateVirtualRouterRequest & WithMeshName(const Aws::String &value)
CreateVirtualRouterRequest & WithMeshOwner(const Aws::String &value)
CreateVirtualRouterRequest & WithVirtualRouterName(const Aws::String &value)
#define AWS_APPMESH_API
CreateVirtualRouterRequest & WithClientToken(const char *value)
CreateVirtualRouterRequest & WithTags(Aws::Vector< TagRef > &&value)