AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
CreateGatewayRouteRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/GatewayRouteSpec.h>
10#include <aws/appmesh/model/TagRef.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 CreateGatewayRouteRequest() = 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 "CreateGatewayRoute"; }
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& GetGatewayRouteName() const { return m_gatewayRouteName; }
65 inline bool GatewayRouteNameHasBeenSet() const { return m_gatewayRouteNameHasBeenSet; }
66 template <typename GatewayRouteNameT = Aws::String>
67 void SetGatewayRouteName(GatewayRouteNameT&& value) {
68 m_gatewayRouteNameHasBeenSet = true;
69 m_gatewayRouteName = std::forward<GatewayRouteNameT>(value);
70 }
71 template <typename GatewayRouteNameT = Aws::String>
72 CreateGatewayRouteRequest& WithGatewayRouteName(GatewayRouteNameT&& value) {
73 SetGatewayRouteName(std::forward<GatewayRouteNameT>(value));
74 return *this;
75 }
77
79
82 inline const Aws::String& GetMeshName() const { return m_meshName; }
83 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
84 template <typename MeshNameT = Aws::String>
85 void SetMeshName(MeshNameT&& value) {
86 m_meshNameHasBeenSet = true;
87 m_meshName = std::forward<MeshNameT>(value);
88 }
89 template <typename MeshNameT = Aws::String>
91 SetMeshName(std::forward<MeshNameT>(value));
92 return *this;
93 }
95
97
105 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
106 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
107 template <typename MeshOwnerT = Aws::String>
108 void SetMeshOwner(MeshOwnerT&& value) {
109 m_meshOwnerHasBeenSet = true;
110 m_meshOwner = std::forward<MeshOwnerT>(value);
111 }
112 template <typename MeshOwnerT = Aws::String>
114 SetMeshOwner(std::forward<MeshOwnerT>(value));
115 return *this;
116 }
118
120
123 inline const GatewayRouteSpec& GetSpec() const { return m_spec; }
124 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
125 template <typename SpecT = GatewayRouteSpec>
126 void SetSpec(SpecT&& value) {
127 m_specHasBeenSet = true;
128 m_spec = std::forward<SpecT>(value);
129 }
130 template <typename SpecT = GatewayRouteSpec>
132 SetSpec(std::forward<SpecT>(value));
133 return *this;
134 }
136
138
144 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
145 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
146 template <typename TagsT = Aws::Vector<TagRef>>
147 void SetTags(TagsT&& value) {
148 m_tagsHasBeenSet = true;
149 m_tags = std::forward<TagsT>(value);
150 }
151 template <typename TagsT = Aws::Vector<TagRef>>
153 SetTags(std::forward<TagsT>(value));
154 return *this;
155 }
156 template <typename TagsT = TagRef>
158 m_tagsHasBeenSet = true;
159 m_tags.emplace_back(std::forward<TagsT>(value));
160 return *this;
161 }
163
165
170 inline const Aws::String& GetVirtualGatewayName() const { return m_virtualGatewayName; }
171 inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
172 template <typename VirtualGatewayNameT = Aws::String>
173 void SetVirtualGatewayName(VirtualGatewayNameT&& value) {
174 m_virtualGatewayNameHasBeenSet = true;
175 m_virtualGatewayName = std::forward<VirtualGatewayNameT>(value);
176 }
177 template <typename VirtualGatewayNameT = Aws::String>
178 CreateGatewayRouteRequest& WithVirtualGatewayName(VirtualGatewayNameT&& value) {
179 SetVirtualGatewayName(std::forward<VirtualGatewayNameT>(value));
180 return *this;
181 }
183 private:
185
186 Aws::String m_gatewayRouteName;
187
188 Aws::String m_meshName;
189
190 Aws::String m_meshOwner;
191
192 GatewayRouteSpec m_spec;
193
194 Aws::Vector<TagRef> m_tags;
195
196 Aws::String m_virtualGatewayName;
197 bool m_clientTokenHasBeenSet = true;
198 bool m_gatewayRouteNameHasBeenSet = false;
199 bool m_meshNameHasBeenSet = false;
200 bool m_meshOwnerHasBeenSet = false;
201 bool m_specHasBeenSet = false;
202 bool m_tagsHasBeenSet = false;
203 bool m_virtualGatewayNameHasBeenSet = false;
204};
205
206} // namespace Model
207} // namespace AppMesh
208} // namespace Aws
CreateGatewayRouteRequest & WithGatewayRouteName(GatewayRouteNameT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateGatewayRouteRequest & WithClientToken(ClientTokenT &&value)
CreateGatewayRouteRequest & WithMeshName(MeshNameT &&value)
CreateGatewayRouteRequest & AddTags(TagsT &&value)
CreateGatewayRouteRequest & WithMeshOwner(MeshOwnerT &&value)
CreateGatewayRouteRequest & WithTags(TagsT &&value)
AWS_APPMESH_API CreateGatewayRouteRequest()=default
CreateGatewayRouteRequest & WithSpec(SpecT &&value)
virtual const char * GetServiceRequestName() const override
CreateGatewayRouteRequest & WithVirtualGatewayName(VirtualGatewayNameT &&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