AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateVirtualGatewayRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/TagRef.h>
10#include <aws/appmesh/model/VirtualGatewaySpec.h>
11#include <aws/core/utils/UUID.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/core/utils/memory/stl/AWSVector.h>
14
15#include <utility>
16
17namespace Aws {
18namespace Http {
19class URI;
20} // namespace Http
21namespace AppMesh {
22namespace Model {
23
27 public:
28 AWS_APPMESH_API CreateVirtualGatewayRequest() = default;
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "CreateVirtualGateway"; }
35
36 AWS_APPMESH_API Aws::String SerializePayload() const override;
37
38 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
39
41
46 inline const Aws::String& GetClientToken() const { return m_clientToken; }
47 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
48 template <typename ClientTokenT = Aws::String>
49 void SetClientToken(ClientTokenT&& value) {
50 m_clientTokenHasBeenSet = true;
51 m_clientToken = std::forward<ClientTokenT>(value);
52 }
53 template <typename ClientTokenT = Aws::String>
55 SetClientToken(std::forward<ClientTokenT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::String& GetMeshName() const { return m_meshName; }
65 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
66 template <typename MeshNameT = Aws::String>
67 void SetMeshName(MeshNameT&& value) {
68 m_meshNameHasBeenSet = true;
69 m_meshName = std::forward<MeshNameT>(value);
70 }
71 template <typename MeshNameT = Aws::String>
73 SetMeshName(std::forward<MeshNameT>(value));
74 return *this;
75 }
77
79
87 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
88 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
89 template <typename MeshOwnerT = Aws::String>
90 void SetMeshOwner(MeshOwnerT&& value) {
91 m_meshOwnerHasBeenSet = true;
92 m_meshOwner = std::forward<MeshOwnerT>(value);
93 }
94 template <typename MeshOwnerT = Aws::String>
96 SetMeshOwner(std::forward<MeshOwnerT>(value));
97 return *this;
98 }
100
102
105 inline const VirtualGatewaySpec& GetSpec() const { return m_spec; }
106 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
107 template <typename SpecT = VirtualGatewaySpec>
108 void SetSpec(SpecT&& value) {
109 m_specHasBeenSet = true;
110 m_spec = std::forward<SpecT>(value);
111 }
112 template <typename SpecT = VirtualGatewaySpec>
114 SetSpec(std::forward<SpecT>(value));
115 return *this;
116 }
118
120
126 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
127 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
128 template <typename TagsT = Aws::Vector<TagRef>>
129 void SetTags(TagsT&& value) {
130 m_tagsHasBeenSet = true;
131 m_tags = std::forward<TagsT>(value);
132 }
133 template <typename TagsT = Aws::Vector<TagRef>>
135 SetTags(std::forward<TagsT>(value));
136 return *this;
137 }
138 template <typename TagsT = TagRef>
140 m_tagsHasBeenSet = true;
141 m_tags.emplace_back(std::forward<TagsT>(value));
142 return *this;
143 }
145
147
150 inline const Aws::String& GetVirtualGatewayName() const { return m_virtualGatewayName; }
151 inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
152 template <typename VirtualGatewayNameT = Aws::String>
153 void SetVirtualGatewayName(VirtualGatewayNameT&& value) {
154 m_virtualGatewayNameHasBeenSet = true;
155 m_virtualGatewayName = std::forward<VirtualGatewayNameT>(value);
156 }
157 template <typename VirtualGatewayNameT = Aws::String>
159 SetVirtualGatewayName(std::forward<VirtualGatewayNameT>(value));
160 return *this;
161 }
163 private:
165
166 Aws::String m_meshName;
167
168 Aws::String m_meshOwner;
169
170 VirtualGatewaySpec m_spec;
171
172 Aws::Vector<TagRef> m_tags;
173
174 Aws::String m_virtualGatewayName;
175 bool m_clientTokenHasBeenSet = true;
176 bool m_meshNameHasBeenSet = false;
177 bool m_meshOwnerHasBeenSet = false;
178 bool m_specHasBeenSet = false;
179 bool m_tagsHasBeenSet = false;
180 bool m_virtualGatewayNameHasBeenSet = false;
181};
182
183} // namespace Model
184} // namespace AppMesh
185} // namespace Aws
CreateVirtualGatewayRequest & WithVirtualGatewayName(VirtualGatewayNameT &&value)
virtual const char * GetServiceRequestName() const override
CreateVirtualGatewayRequest & WithTags(TagsT &&value)
AWS_APPMESH_API CreateVirtualGatewayRequest()=default
CreateVirtualGatewayRequest & AddTags(TagsT &&value)
CreateVirtualGatewayRequest & WithSpec(SpecT &&value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateVirtualGatewayRequest & WithMeshOwner(MeshOwnerT &&value)
CreateVirtualGatewayRequest & WithClientToken(ClientTokenT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
CreateVirtualGatewayRequest & WithMeshName(MeshNameT &&value)
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector