AWS SDK for C++

AWS SDK for C++ Version 1.11.743

Loading...
Searching...
No Matches
CreateRouteRequest.h
1
6#pragma once
7#include <aws/appmesh/AppMeshRequest.h>
8#include <aws/appmesh/AppMesh_EXPORTS.h>
9#include <aws/appmesh/model/RouteSpec.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
30 public:
31 AWS_APPMESH_API CreateRouteRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
38
39 AWS_APPMESH_API Aws::String SerializePayload() const override;
40
41 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
44
49 inline const Aws::String& GetClientToken() const { return m_clientToken; }
50 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
51 template <typename ClientTokenT = Aws::String>
52 void SetClientToken(ClientTokenT&& value) {
53 m_clientTokenHasBeenSet = true;
54 m_clientToken = std::forward<ClientTokenT>(value);
55 }
56 template <typename ClientTokenT = Aws::String>
57 CreateRouteRequest& WithClientToken(ClientTokenT&& value) {
58 SetClientToken(std::forward<ClientTokenT>(value));
59 return *this;
60 }
62
64
67 inline const Aws::String& GetMeshName() const { return m_meshName; }
68 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
69 template <typename MeshNameT = Aws::String>
70 void SetMeshName(MeshNameT&& value) {
71 m_meshNameHasBeenSet = true;
72 m_meshName = std::forward<MeshNameT>(value);
73 }
74 template <typename MeshNameT = Aws::String>
75 CreateRouteRequest& WithMeshName(MeshNameT&& value) {
76 SetMeshName(std::forward<MeshNameT>(value));
77 return *this;
78 }
80
82
90 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
91 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
92 template <typename MeshOwnerT = Aws::String>
93 void SetMeshOwner(MeshOwnerT&& value) {
94 m_meshOwnerHasBeenSet = true;
95 m_meshOwner = std::forward<MeshOwnerT>(value);
96 }
97 template <typename MeshOwnerT = Aws::String>
98 CreateRouteRequest& WithMeshOwner(MeshOwnerT&& value) {
99 SetMeshOwner(std::forward<MeshOwnerT>(value));
100 return *this;
101 }
103
105
108 inline const Aws::String& GetRouteName() const { return m_routeName; }
109 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
110 template <typename RouteNameT = Aws::String>
111 void SetRouteName(RouteNameT&& value) {
112 m_routeNameHasBeenSet = true;
113 m_routeName = std::forward<RouteNameT>(value);
114 }
115 template <typename RouteNameT = Aws::String>
116 CreateRouteRequest& WithRouteName(RouteNameT&& value) {
117 SetRouteName(std::forward<RouteNameT>(value));
118 return *this;
119 }
121
123
126 inline const RouteSpec& GetSpec() const { return m_spec; }
127 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
128 template <typename SpecT = RouteSpec>
129 void SetSpec(SpecT&& value) {
130 m_specHasBeenSet = true;
131 m_spec = std::forward<SpecT>(value);
132 }
133 template <typename SpecT = RouteSpec>
134 CreateRouteRequest& WithSpec(SpecT&& value) {
135 SetSpec(std::forward<SpecT>(value));
136 return *this;
137 }
139
141
147 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
148 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
149 template <typename TagsT = Aws::Vector<TagRef>>
150 void SetTags(TagsT&& value) {
151 m_tagsHasBeenSet = true;
152 m_tags = std::forward<TagsT>(value);
153 }
154 template <typename TagsT = Aws::Vector<TagRef>>
155 CreateRouteRequest& WithTags(TagsT&& value) {
156 SetTags(std::forward<TagsT>(value));
157 return *this;
158 }
159 template <typename TagsT = TagRef>
160 CreateRouteRequest& AddTags(TagsT&& value) {
161 m_tagsHasBeenSet = true;
162 m_tags.emplace_back(std::forward<TagsT>(value));
163 return *this;
164 }
166
168
173 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
174 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
175 template <typename VirtualRouterNameT = Aws::String>
176 void SetVirtualRouterName(VirtualRouterNameT&& value) {
177 m_virtualRouterNameHasBeenSet = true;
178 m_virtualRouterName = std::forward<VirtualRouterNameT>(value);
179 }
180 template <typename VirtualRouterNameT = Aws::String>
181 CreateRouteRequest& WithVirtualRouterName(VirtualRouterNameT&& value) {
182 SetVirtualRouterName(std::forward<VirtualRouterNameT>(value));
183 return *this;
184 }
186 private:
188
189 Aws::String m_meshName;
190
191 Aws::String m_meshOwner;
192
193 Aws::String m_routeName;
194
195 RouteSpec m_spec;
196
197 Aws::Vector<TagRef> m_tags;
198
199 Aws::String m_virtualRouterName;
200 bool m_clientTokenHasBeenSet = true;
201 bool m_meshNameHasBeenSet = false;
202 bool m_meshOwnerHasBeenSet = false;
203 bool m_routeNameHasBeenSet = false;
204 bool m_specHasBeenSet = false;
205 bool m_tagsHasBeenSet = false;
206 bool m_virtualRouterNameHasBeenSet = false;
207};
208
209} // namespace Model
210} // namespace AppMesh
211} // namespace Aws
CreateRouteRequest & AddTags(TagsT &&value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetMeshOwner() const
CreateRouteRequest & WithRouteName(RouteNameT &&value)
void SetVirtualRouterName(VirtualRouterNameT &&value)
CreateRouteRequest & WithSpec(SpecT &&value)
const Aws::String & GetVirtualRouterName() const
void SetClientToken(ClientTokenT &&value)
CreateRouteRequest & WithMeshOwner(MeshOwnerT &&value)
const Aws::String & GetClientToken() const
CreateRouteRequest & WithClientToken(ClientTokenT &&value)
CreateRouteRequest & WithVirtualRouterName(VirtualRouterNameT &&value)
CreateRouteRequest & WithMeshName(MeshNameT &&value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateRouteRequest & WithTags(TagsT &&value)
const Aws::String & GetMeshName() const
AWS_APPMESH_API CreateRouteRequest()=default
const Aws::Vector< TagRef > & GetTags() const
AWS_APPMESH_API Aws::String SerializePayload() const override
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector