AWS SDK for C++  1.9.1
AWS SDK for C++
CreateVirtualGatewayRequest.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 "CreateVirtualGateway"; }
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 CreateVirtualGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
86 
92  inline CreateVirtualGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
93 
99  inline CreateVirtualGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
100 
101 
105  inline const Aws::String& GetMeshName() const{ return m_meshName; }
106 
110  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
111 
115  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
116 
120  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
121 
125  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
126 
130  inline CreateVirtualGatewayRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
131 
135  inline CreateVirtualGatewayRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
136 
140  inline CreateVirtualGatewayRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
141 
142 
151  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
152 
161  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
162 
171  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
172 
181  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
182 
191  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
192 
201  inline CreateVirtualGatewayRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
202 
211  inline CreateVirtualGatewayRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
212 
221  inline CreateVirtualGatewayRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
222 
223 
227  inline const VirtualGatewaySpec& GetSpec() const{ return m_spec; }
228 
232  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
233 
237  inline void SetSpec(const VirtualGatewaySpec& value) { m_specHasBeenSet = true; m_spec = value; }
238 
242  inline void SetSpec(VirtualGatewaySpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
243 
247  inline CreateVirtualGatewayRequest& WithSpec(const VirtualGatewaySpec& value) { SetSpec(value); return *this;}
248 
252  inline CreateVirtualGatewayRequest& WithSpec(VirtualGatewaySpec&& value) { SetSpec(std::move(value)); return *this;}
253 
254 
261  inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
262 
269  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
270 
277  inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
278 
285  inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
286 
293  inline CreateVirtualGatewayRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
294 
301  inline CreateVirtualGatewayRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
302 
309  inline CreateVirtualGatewayRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
310 
317  inline CreateVirtualGatewayRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
318 
319 
323  inline const Aws::String& GetVirtualGatewayName() const{ return m_virtualGatewayName; }
324 
328  inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
329 
333  inline void SetVirtualGatewayName(const Aws::String& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = value; }
334 
338  inline void SetVirtualGatewayName(Aws::String&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::move(value); }
339 
343  inline void SetVirtualGatewayName(const char* value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName.assign(value); }
344 
348  inline CreateVirtualGatewayRequest& WithVirtualGatewayName(const Aws::String& value) { SetVirtualGatewayName(value); return *this;}
349 
353  inline CreateVirtualGatewayRequest& WithVirtualGatewayName(Aws::String&& value) { SetVirtualGatewayName(std::move(value)); return *this;}
354 
358  inline CreateVirtualGatewayRequest& WithVirtualGatewayName(const char* value) { SetVirtualGatewayName(value); return *this;}
359 
360  private:
361 
362  Aws::String m_clientToken;
363  bool m_clientTokenHasBeenSet;
364 
365  Aws::String m_meshName;
366  bool m_meshNameHasBeenSet;
367 
368  Aws::String m_meshOwner;
369  bool m_meshOwnerHasBeenSet;
370 
371  VirtualGatewaySpec m_spec;
372  bool m_specHasBeenSet;
373 
374  Aws::Vector<TagRef> m_tags;
375  bool m_tagsHasBeenSet;
376 
377  Aws::String m_virtualGatewayName;
378  bool m_virtualGatewayNameHasBeenSet;
379  };
380 
381 } // namespace Model
382 } // namespace AppMesh
383 } // namespace Aws
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshName
void SetMeshName(const char *value)
Definition: CreateVirtualGatewayRequest.h:125
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithClientToken
CreateVirtualGatewayRequest & WithClientToken(const char *value)
Definition: CreateVirtualGatewayRequest.h:99
Aws::AppMesh::Model::CreateVirtualGatewayRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:57
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::CreateVirtualGatewayRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws::AppMesh::Model::CreateVirtualGatewayRequest
Definition: CreateVirtualGatewayRequest.h:30
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshName
CreateVirtualGatewayRequest & WithMeshName(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:135
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:120
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetClientToken
void SetClientToken(const char *value)
Definition: CreateVirtualGatewayRequest.h:78
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetTags
void SetTags(Aws::Vector< TagRef > &&value)
Definition: CreateVirtualGatewayRequest.h:285
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshOwner
CreateVirtualGatewayRequest & WithMeshOwner(const char *value)
Definition: CreateVirtualGatewayRequest.h:221
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetVirtualGatewayName
void SetVirtualGatewayName(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:338
TagRef.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshName
CreateVirtualGatewayRequest & WithMeshName(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:130
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetVirtualGatewayName
void SetVirtualGatewayName(const char *value)
Definition: CreateVirtualGatewayRequest.h:343
Aws::AppMesh::Model::TagRef
Definition: TagRef.h:36
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: CreateVirtualGatewayRequest.h:151
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetTags
void SetTags(const Aws::Vector< TagRef > &value)
Definition: CreateVirtualGatewayRequest.h:277
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithSpec
CreateVirtualGatewayRequest & WithSpec(VirtualGatewaySpec &&value)
Definition: CreateVirtualGatewayRequest.h:252
Aws::AppMesh::Model::CreateVirtualGatewayRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:269
AppMesh_EXPORTS.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithSpec
CreateVirtualGatewayRequest & WithSpec(const VirtualGatewaySpec &value)
Definition: CreateVirtualGatewayRequest.h:247
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: CreateVirtualGatewayRequest.h:105
AWSVector.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:71
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:171
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithClientToken
CreateVirtualGatewayRequest & WithClientToken(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:92
Aws::AppMesh::Model::CreateVirtualGatewayRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:161
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: CreateVirtualGatewayRequest.h:50
Aws::AppMesh::Model::CreateVirtualGatewayRequest::AddTags
CreateVirtualGatewayRequest & AddTags(TagRef &&value)
Definition: CreateVirtualGatewayRequest.h:317
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateVirtualGatewayRequest.h:38
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetSpec
void SetSpec(const VirtualGatewaySpec &value)
Definition: CreateVirtualGatewayRequest.h:237
Aws::AppMesh::Model::CreateVirtualGatewayRequest::AddTags
CreateVirtualGatewayRequest & AddTags(const TagRef &value)
Definition: CreateVirtualGatewayRequest.h:309
Aws::AppMesh::Model::CreateVirtualGatewayRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:110
AWSString.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:115
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetVirtualGatewayName
void SetVirtualGatewayName(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:333
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithTags
CreateVirtualGatewayRequest & WithTags(const Aws::Vector< TagRef > &value)
Definition: CreateVirtualGatewayRequest.h:293
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetVirtualGatewayName
const Aws::String & GetVirtualGatewayName() const
Definition: CreateVirtualGatewayRequest.h:323
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:64
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetSpec
void SetSpec(VirtualGatewaySpec &&value)
Definition: CreateVirtualGatewayRequest.h:242
Aws::AppMesh::Model::CreateVirtualGatewayRequest::VirtualGatewayNameHasBeenSet
bool VirtualGatewayNameHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:328
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshOwner
CreateVirtualGatewayRequest & WithMeshOwner(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:211
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithVirtualGatewayName
CreateVirtualGatewayRequest & WithVirtualGatewayName(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:353
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: CreateVirtualGatewayRequest.h:181
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshName
CreateVirtualGatewayRequest & WithMeshName(const char *value)
Definition: CreateVirtualGatewayRequest.h:140
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithVirtualGatewayName
CreateVirtualGatewayRequest & WithVirtualGatewayName(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:348
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithClientToken
CreateVirtualGatewayRequest & WithClientToken(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:85
VirtualGatewaySpec.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithVirtualGatewayName
CreateVirtualGatewayRequest & WithVirtualGatewayName(const char *value)
Definition: CreateVirtualGatewayRequest.h:358
Aws::AppMesh::Model::CreateVirtualGatewayRequest::CreateVirtualGatewayRequest
CreateVirtualGatewayRequest()
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithMeshOwner
CreateVirtualGatewayRequest & WithMeshOwner(const Aws::String &value)
Definition: CreateVirtualGatewayRequest.h:201
Aws::AppMesh::Model::VirtualGatewaySpec
Definition: VirtualGatewaySpec.h:36
UUID.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetSpec
const VirtualGatewaySpec & GetSpec() const
Definition: CreateVirtualGatewayRequest.h:227
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: CreateVirtualGatewayRequest.h:191
Aws::AppMesh::Model::CreateVirtualGatewayRequest::WithTags
CreateVirtualGatewayRequest & WithTags(Aws::Vector< TagRef > &&value)
Definition: CreateVirtualGatewayRequest.h:301
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::CreateVirtualGatewayRequest::GetTags
const Aws::Vector< TagRef > & GetTags() const
Definition: CreateVirtualGatewayRequest.h:261
AppMeshRequest.h
Aws::AppMesh::Model::CreateVirtualGatewayRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: CreateVirtualGatewayRequest.h:232