AWS SDK for C++  1.9.1
AWS SDK for C++
UpdateRouteRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 #include <aws/core/utils/UUID.h>
13 
14 namespace Aws
15 {
16 namespace Http
17 {
18  class URI;
19 } //namespace Http
20 namespace AppMesh
21 {
22 namespace Model
23 {
24 
31  {
32  public:
34 
35  // Service request name is the Operation name which will send this request out,
36  // each operation should has unique request name, so that we can get operation's name from this request.
37  // Note: this is not true for response, multiple operations may have the same response name,
38  // so we can not get operation's name from response.
39  inline virtual const char* GetServiceRequestName() const override { return "UpdateRoute"; }
40 
41  Aws::String SerializePayload() const override;
42 
43  void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44 
45 
51  inline const Aws::String& GetClientToken() const{ return m_clientToken; }
52 
58  inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
59 
65  inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
66 
72  inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
73 
79  inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
80 
86  inline UpdateRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
87 
93  inline UpdateRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
94 
100  inline UpdateRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
101 
102 
106  inline const Aws::String& GetMeshName() const{ return m_meshName; }
107 
111  inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
112 
116  inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
117 
121  inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
122 
126  inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
127 
131  inline UpdateRouteRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
132 
136  inline UpdateRouteRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
137 
141  inline UpdateRouteRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
142 
143 
151  inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
152 
160  inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
161 
169  inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
170 
178  inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
179 
187  inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
188 
196  inline UpdateRouteRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
197 
205  inline UpdateRouteRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
206 
214  inline UpdateRouteRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
215 
216 
220  inline const Aws::String& GetRouteName() const{ return m_routeName; }
221 
225  inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
226 
230  inline void SetRouteName(const Aws::String& value) { m_routeNameHasBeenSet = true; m_routeName = value; }
231 
235  inline void SetRouteName(Aws::String&& value) { m_routeNameHasBeenSet = true; m_routeName = std::move(value); }
236 
240  inline void SetRouteName(const char* value) { m_routeNameHasBeenSet = true; m_routeName.assign(value); }
241 
245  inline UpdateRouteRequest& WithRouteName(const Aws::String& value) { SetRouteName(value); return *this;}
246 
250  inline UpdateRouteRequest& WithRouteName(Aws::String&& value) { SetRouteName(std::move(value)); return *this;}
251 
255  inline UpdateRouteRequest& WithRouteName(const char* value) { SetRouteName(value); return *this;}
256 
257 
261  inline const RouteSpec& GetSpec() const{ return m_spec; }
262 
266  inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
267 
271  inline void SetSpec(const RouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
272 
276  inline void SetSpec(RouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
277 
281  inline UpdateRouteRequest& WithSpec(const RouteSpec& value) { SetSpec(value); return *this;}
282 
286  inline UpdateRouteRequest& WithSpec(RouteSpec&& value) { SetSpec(std::move(value)); return *this;}
287 
288 
292  inline const Aws::String& GetVirtualRouterName() const{ return m_virtualRouterName; }
293 
297  inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
298 
302  inline void SetVirtualRouterName(const Aws::String& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = value; }
303 
307  inline void SetVirtualRouterName(Aws::String&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::move(value); }
308 
312  inline void SetVirtualRouterName(const char* value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName.assign(value); }
313 
317  inline UpdateRouteRequest& WithVirtualRouterName(const Aws::String& value) { SetVirtualRouterName(value); return *this;}
318 
322  inline UpdateRouteRequest& WithVirtualRouterName(Aws::String&& value) { SetVirtualRouterName(std::move(value)); return *this;}
323 
327  inline UpdateRouteRequest& WithVirtualRouterName(const char* value) { SetVirtualRouterName(value); return *this;}
328 
329  private:
330 
331  Aws::String m_clientToken;
332  bool m_clientTokenHasBeenSet;
333 
334  Aws::String m_meshName;
335  bool m_meshNameHasBeenSet;
336 
337  Aws::String m_meshOwner;
338  bool m_meshOwnerHasBeenSet;
339 
340  Aws::String m_routeName;
341  bool m_routeNameHasBeenSet;
342 
343  RouteSpec m_spec;
344  bool m_specHasBeenSet;
345 
346  Aws::String m_virtualRouterName;
347  bool m_virtualRouterNameHasBeenSet;
348  };
349 
350 } // namespace Model
351 } // namespace AppMesh
352 } // namespace Aws
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshOwner
void SetMeshOwner(const Aws::String &value)
Definition: UpdateRouteRequest.h:169
Aws::AppMesh::Model::UpdateRouteRequest::WithSpec
UpdateRouteRequest & WithSpec(RouteSpec &&value)
Definition: UpdateRouteRequest.h:286
Aws::AppMesh::Model::UpdateRouteRequest::WithClientToken
UpdateRouteRequest & WithClientToken(Aws::String &&value)
Definition: UpdateRouteRequest.h:93
Aws::AppMesh::Model::UpdateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(const char *value)
Definition: UpdateRouteRequest.h:312
Aws::Http::URI
Definition: URI.h:32
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshName
void SetMeshName(Aws::String &&value)
Definition: UpdateRouteRequest.h:121
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshOwner
UpdateRouteRequest & WithMeshOwner(Aws::String &&value)
Definition: UpdateRouteRequest.h:205
Aws::AppMesh::Model::UpdateRouteRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshOwner
void SetMeshOwner(const char *value)
Definition: UpdateRouteRequest.h:187
Aws::AppMesh::Model::UpdateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(Aws::String &&value)
Definition: UpdateRouteRequest.h:307
Aws::AppMesh::Model::UpdateRouteRequest::WithVirtualRouterName
UpdateRouteRequest & WithVirtualRouterName(Aws::String &&value)
Definition: UpdateRouteRequest.h:322
Aws::AppMesh::Model::UpdateRouteRequest::WithRouteName
UpdateRouteRequest & WithRouteName(const char *value)
Definition: UpdateRouteRequest.h:255
Aws::AppMesh::Model::UpdateRouteRequest::WithRouteName
UpdateRouteRequest & WithRouteName(Aws::String &&value)
Definition: UpdateRouteRequest.h:250
Aws::AppMesh::Model::UpdateRouteRequest::UpdateRouteRequest
UpdateRouteRequest()
Aws::AppMesh::Model::UpdateRouteRequest::VirtualRouterNameHasBeenSet
bool VirtualRouterNameHasBeenSet() const
Definition: UpdateRouteRequest.h:297
Aws::AppMesh::Model::UpdateRouteRequest::GetRouteName
const Aws::String & GetRouteName() const
Definition: UpdateRouteRequest.h:220
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshOwner
void SetMeshOwner(Aws::String &&value)
Definition: UpdateRouteRequest.h:178
Aws::AppMesh::Model::UpdateRouteRequest::MeshOwnerHasBeenSet
bool MeshOwnerHasBeenSet() const
Definition: UpdateRouteRequest.h:160
Aws::AppMesh::Model::UpdateRouteRequest::SetSpec
void SetSpec(RouteSpec &&value)
Definition: UpdateRouteRequest.h:276
AppMesh_EXPORTS.h
Aws::AppMesh::Model::UpdateRouteRequest
Definition: UpdateRouteRequest.h:31
Aws::AppMesh::Model::RouteSpec
Definition: RouteSpec.h:35
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshName
void SetMeshName(const char *value)
Definition: UpdateRouteRequest.h:126
Aws::AppMesh::Model::UpdateRouteRequest::SetClientToken
void SetClientToken(const Aws::String &value)
Definition: UpdateRouteRequest.h:65
Aws::AppMesh::AppMeshRequest
Definition: AppMeshRequest.h:17
Aws::AppMesh::Model::UpdateRouteRequest::SetClientToken
void SetClientToken(const char *value)
Definition: UpdateRouteRequest.h:79
Aws::AppMesh::Model::UpdateRouteRequest::SetRouteName
void SetRouteName(Aws::String &&value)
Definition: UpdateRouteRequest.h:235
Aws::AppMesh::Model::UpdateRouteRequest::SetRouteName
void SetRouteName(const Aws::String &value)
Definition: UpdateRouteRequest.h:230
Aws::AppMesh::Model::UpdateRouteRequest::WithClientToken
UpdateRouteRequest & WithClientToken(const char *value)
Definition: UpdateRouteRequest.h:100
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshOwner
UpdateRouteRequest & WithMeshOwner(const char *value)
Definition: UpdateRouteRequest.h:214
Aws::AppMesh::Model::UpdateRouteRequest::ClientTokenHasBeenSet
bool ClientTokenHasBeenSet() const
Definition: UpdateRouteRequest.h:58
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshName
UpdateRouteRequest & WithMeshName(Aws::String &&value)
Definition: UpdateRouteRequest.h:136
Aws::AppMesh::Model::UpdateRouteRequest::SetSpec
void SetSpec(const RouteSpec &value)
Definition: UpdateRouteRequest.h:271
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshOwner
UpdateRouteRequest & WithMeshOwner(const Aws::String &value)
Definition: UpdateRouteRequest.h:196
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshName
UpdateRouteRequest & WithMeshName(const char *value)
Definition: UpdateRouteRequest.h:141
AWSString.h
Aws::AppMesh::Model::UpdateRouteRequest::WithVirtualRouterName
UpdateRouteRequest & WithVirtualRouterName(const Aws::String &value)
Definition: UpdateRouteRequest.h:317
Aws::AppMesh::Model::UpdateRouteRequest::GetSpec
const RouteSpec & GetSpec() const
Definition: UpdateRouteRequest.h:261
Aws::AppMesh::Model::UpdateRouteRequest::SetMeshName
void SetMeshName(const Aws::String &value)
Definition: UpdateRouteRequest.h:116
Aws::AppMesh::Model::UpdateRouteRequest::WithVirtualRouterName
UpdateRouteRequest & WithVirtualRouterName(const char *value)
Definition: UpdateRouteRequest.h:327
Aws::AppMesh::Model::UpdateRouteRequest::SetClientToken
void SetClientToken(Aws::String &&value)
Definition: UpdateRouteRequest.h:72
Aws::AppMesh::Model::UpdateRouteRequest::RouteNameHasBeenSet
bool RouteNameHasBeenSet() const
Definition: UpdateRouteRequest.h:225
Aws::AppMesh::Model::UpdateRouteRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateRouteRequest.h:39
Aws::AppMesh::Model::UpdateRouteRequest::WithSpec
UpdateRouteRequest & WithSpec(const RouteSpec &value)
Definition: UpdateRouteRequest.h:281
Aws::AppMesh::Model::UpdateRouteRequest::SetVirtualRouterName
void SetVirtualRouterName(const Aws::String &value)
Definition: UpdateRouteRequest.h:302
Aws::AppMesh::Model::UpdateRouteRequest::WithClientToken
UpdateRouteRequest & WithClientToken(const Aws::String &value)
Definition: UpdateRouteRequest.h:86
Aws::AppMesh::Model::UpdateRouteRequest::AddQueryStringParameters
void AddQueryStringParameters(Aws::Http::URI &uri) const override
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::UpdateRouteRequest::MeshNameHasBeenSet
bool MeshNameHasBeenSet() const
Definition: UpdateRouteRequest.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::UpdateRouteRequest::SpecHasBeenSet
bool SpecHasBeenSet() const
Definition: UpdateRouteRequest.h:266
Aws::AppMesh::Model::UpdateRouteRequest::GetClientToken
const Aws::String & GetClientToken() const
Definition: UpdateRouteRequest.h:51
Aws::AppMesh::Model::UpdateRouteRequest::GetMeshOwner
const Aws::String & GetMeshOwner() const
Definition: UpdateRouteRequest.h:151
RouteSpec.h
Aws::AppMesh::Model::UpdateRouteRequest::GetMeshName
const Aws::String & GetMeshName() const
Definition: UpdateRouteRequest.h:106
Aws::AppMesh::Model::UpdateRouteRequest::WithMeshName
UpdateRouteRequest & WithMeshName(const Aws::String &value)
Definition: UpdateRouteRequest.h:131
Aws::AppMesh::Model::UpdateRouteRequest::SetRouteName
void SetRouteName(const char *value)
Definition: UpdateRouteRequest.h:240
UUID.h
Aws::AppMesh::Model::UpdateRouteRequest::WithRouteName
UpdateRouteRequest & WithRouteName(const Aws::String &value)
Definition: UpdateRouteRequest.h:245
Aws::AppMesh::Model::UpdateRouteRequest::GetVirtualRouterName
const Aws::String & GetVirtualRouterName() const
Definition: UpdateRouteRequest.h:292
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
AppMeshRequest.h