AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateVirtualGatewayRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/appmesh/AppMeshRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/appmesh/model/VirtualGatewaySpec.h>
11#include <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appmesh/model/TagRef.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace AppMesh
23{
24namespace Model
25{
26
30 {
31 public:
32 AWS_APPMESH_API CreateVirtualGatewayRequest();
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_APPMESH_API Aws::String SerializePayload() const override;
41
42 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
54 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
55 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
56 inline CreateVirtualGatewayRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
57 inline CreateVirtualGatewayRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
58 inline CreateVirtualGatewayRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
60
62
65 inline const Aws::String& GetMeshName() const{ return m_meshName; }
66 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
67 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
68 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
69 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
70 inline CreateVirtualGatewayRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
71 inline CreateVirtualGatewayRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
72 inline CreateVirtualGatewayRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
74
76
84 inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
85 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
86 inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
87 inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
88 inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
89 inline CreateVirtualGatewayRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
90 inline CreateVirtualGatewayRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
91 inline CreateVirtualGatewayRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
93
95
98 inline const VirtualGatewaySpec& GetSpec() const{ return m_spec; }
99 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
100 inline void SetSpec(const VirtualGatewaySpec& value) { m_specHasBeenSet = true; m_spec = value; }
101 inline void SetSpec(VirtualGatewaySpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
102 inline CreateVirtualGatewayRequest& WithSpec(const VirtualGatewaySpec& value) { SetSpec(value); return *this;}
103 inline CreateVirtualGatewayRequest& WithSpec(VirtualGatewaySpec&& value) { SetSpec(std::move(value)); return *this;}
105
107
113 inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
114 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
115 inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
116 inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
117 inline CreateVirtualGatewayRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
118 inline CreateVirtualGatewayRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
119 inline CreateVirtualGatewayRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
120 inline CreateVirtualGatewayRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
122
124
127 inline const Aws::String& GetVirtualGatewayName() const{ return m_virtualGatewayName; }
128 inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
129 inline void SetVirtualGatewayName(const Aws::String& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = value; }
130 inline void SetVirtualGatewayName(Aws::String&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::move(value); }
131 inline void SetVirtualGatewayName(const char* value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName.assign(value); }
133 inline CreateVirtualGatewayRequest& WithVirtualGatewayName(Aws::String&& value) { SetVirtualGatewayName(std::move(value)); return *this;}
134 inline CreateVirtualGatewayRequest& WithVirtualGatewayName(const char* value) { SetVirtualGatewayName(value); return *this;}
136 private:
137
138 Aws::String m_clientToken;
139 bool m_clientTokenHasBeenSet = false;
140
141 Aws::String m_meshName;
142 bool m_meshNameHasBeenSet = false;
143
144 Aws::String m_meshOwner;
145 bool m_meshOwnerHasBeenSet = false;
146
147 VirtualGatewaySpec m_spec;
148 bool m_specHasBeenSet = false;
149
150 Aws::Vector<TagRef> m_tags;
151 bool m_tagsHasBeenSet = false;
152
153 Aws::String m_virtualGatewayName;
154 bool m_virtualGatewayNameHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace AppMesh
159} // namespace Aws
virtual const char * GetServiceRequestName() const override
CreateVirtualGatewayRequest & WithClientToken(const Aws::String &value)
CreateVirtualGatewayRequest & WithMeshOwner(const char *value)
CreateVirtualGatewayRequest & WithVirtualGatewayName(const char *value)
CreateVirtualGatewayRequest & WithTags(Aws::Vector< TagRef > &&value)
CreateVirtualGatewayRequest & WithVirtualGatewayName(Aws::String &&value)
CreateVirtualGatewayRequest & AddTags(const TagRef &value)
CreateVirtualGatewayRequest & WithSpec(const VirtualGatewaySpec &value)
CreateVirtualGatewayRequest & WithMeshOwner(const Aws::String &value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateVirtualGatewayRequest & WithSpec(VirtualGatewaySpec &&value)
CreateVirtualGatewayRequest & WithMeshOwner(Aws::String &&value)
CreateVirtualGatewayRequest & WithMeshName(Aws::String &&value)
CreateVirtualGatewayRequest & WithVirtualGatewayName(const Aws::String &value)
CreateVirtualGatewayRequest & WithClientToken(const char *value)
CreateVirtualGatewayRequest & WithMeshName(const Aws::String &value)
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateVirtualGatewayRequest & AddTags(TagRef &&value)
CreateVirtualGatewayRequest & WithMeshName(const char *value)
CreateVirtualGatewayRequest & WithTags(const Aws::Vector< TagRef > &value)
CreateVirtualGatewayRequest & WithClientToken(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector