AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
UpdateRouteRequest.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/RouteSpec.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Http
17{
18 class URI;
19} //namespace Http
20namespace AppMesh
21{
22namespace Model
23{
24
31 {
32 public:
33 AWS_APPMESH_API UpdateRouteRequest() = default;
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_APPMESH_API Aws::String SerializePayload() const override;
42
43 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
44
45
47
52 inline const Aws::String& GetClientToken() const { return m_clientToken; }
53 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
54 template<typename ClientTokenT = Aws::String>
55 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
56 template<typename ClientTokenT = Aws::String>
57 UpdateRouteRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
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) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
68 template<typename MeshNameT = Aws::String>
69 UpdateRouteRequest& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
71
73
80 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
81 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
82 template<typename MeshOwnerT = Aws::String>
83 void SetMeshOwner(MeshOwnerT&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::forward<MeshOwnerT>(value); }
84 template<typename MeshOwnerT = Aws::String>
85 UpdateRouteRequest& WithMeshOwner(MeshOwnerT&& value) { SetMeshOwner(std::forward<MeshOwnerT>(value)); return *this;}
87
89
92 inline const Aws::String& GetRouteName() const { return m_routeName; }
93 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
94 template<typename RouteNameT = Aws::String>
95 void SetRouteName(RouteNameT&& value) { m_routeNameHasBeenSet = true; m_routeName = std::forward<RouteNameT>(value); }
96 template<typename RouteNameT = Aws::String>
97 UpdateRouteRequest& WithRouteName(RouteNameT&& value) { SetRouteName(std::forward<RouteNameT>(value)); return *this;}
99
101
104 inline const RouteSpec& GetSpec() const { return m_spec; }
105 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
106 template<typename SpecT = RouteSpec>
107 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
108 template<typename SpecT = RouteSpec>
109 UpdateRouteRequest& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
111
113
116 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
117 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
118 template<typename VirtualRouterNameT = Aws::String>
119 void SetVirtualRouterName(VirtualRouterNameT&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::forward<VirtualRouterNameT>(value); }
120 template<typename VirtualRouterNameT = Aws::String>
121 UpdateRouteRequest& WithVirtualRouterName(VirtualRouterNameT&& value) { SetVirtualRouterName(std::forward<VirtualRouterNameT>(value)); return *this;}
123 private:
124
126 bool m_clientTokenHasBeenSet = true;
127
128 Aws::String m_meshName;
129 bool m_meshNameHasBeenSet = false;
130
131 Aws::String m_meshOwner;
132 bool m_meshOwnerHasBeenSet = false;
133
134 Aws::String m_routeName;
135 bool m_routeNameHasBeenSet = false;
136
137 RouteSpec m_spec;
138 bool m_specHasBeenSet = false;
139
140 Aws::String m_virtualRouterName;
141 bool m_virtualRouterNameHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace AppMesh
146} // namespace Aws
void SetClientToken(ClientTokenT &&value)
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
void SetVirtualRouterName(VirtualRouterNameT &&value)
UpdateRouteRequest & WithVirtualRouterName(VirtualRouterNameT &&value)
UpdateRouteRequest & WithClientToken(ClientTokenT &&value)
const Aws::String & GetClientToken() const
UpdateRouteRequest & WithMeshOwner(MeshOwnerT &&value)
AWS_APPMESH_API UpdateRouteRequest()=default
const Aws::String & GetMeshName() const
const Aws::String & GetVirtualRouterName() const
UpdateRouteRequest & WithRouteName(RouteNameT &&value)
AWS_APPMESH_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
UpdateRouteRequest & WithSpec(SpecT &&value)
UpdateRouteRequest & WithMeshName(MeshNameT &&value)
const Aws::String & GetRouteName() const
const Aws::String & GetMeshOwner() const
static Aws::Utils::UUID PseudoRandomUUID()
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String