AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRouteRequest.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 <aws/core/utils/memory/stl/AWSVector.h>
12#include <aws/appmesh/model/TagRef.h>
13#include <utility>
14#include <aws/core/utils/UUID.h>
15
16namespace Aws
17{
18namespace Http
19{
20 class URI;
21} //namespace Http
22namespace AppMesh
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPMESH_API CreateRouteRequest() = default;
36
37 // Service request name is the Operation name which will send this request out,
38 // each operation should has unique request name, so that we can get operation's name from this request.
39 // Note: this is not true for response, multiple operations may have the same response name,
40 // so we can not get operation's name from response.
41 inline virtual const char* GetServiceRequestName() const override { return "CreateRoute"; }
42
43 AWS_APPMESH_API Aws::String SerializePayload() const override;
44
45 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
46
47
49
54 inline const Aws::String& GetClientToken() const { return m_clientToken; }
55 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
56 template<typename ClientTokenT = Aws::String>
57 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
58 template<typename ClientTokenT = Aws::String>
59 CreateRouteRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
61
63
66 inline const Aws::String& GetMeshName() const { return m_meshName; }
67 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
68 template<typename MeshNameT = Aws::String>
69 void SetMeshName(MeshNameT&& value) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
70 template<typename MeshNameT = Aws::String>
71 CreateRouteRequest& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
73
75
83 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
84 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
85 template<typename MeshOwnerT = Aws::String>
86 void SetMeshOwner(MeshOwnerT&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::forward<MeshOwnerT>(value); }
87 template<typename MeshOwnerT = Aws::String>
88 CreateRouteRequest& WithMeshOwner(MeshOwnerT&& value) { SetMeshOwner(std::forward<MeshOwnerT>(value)); return *this;}
90
92
95 inline const Aws::String& GetRouteName() const { return m_routeName; }
96 inline bool RouteNameHasBeenSet() const { return m_routeNameHasBeenSet; }
97 template<typename RouteNameT = Aws::String>
98 void SetRouteName(RouteNameT&& value) { m_routeNameHasBeenSet = true; m_routeName = std::forward<RouteNameT>(value); }
99 template<typename RouteNameT = Aws::String>
100 CreateRouteRequest& WithRouteName(RouteNameT&& value) { SetRouteName(std::forward<RouteNameT>(value)); return *this;}
102
104
107 inline const RouteSpec& GetSpec() const { return m_spec; }
108 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
109 template<typename SpecT = RouteSpec>
110 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
111 template<typename SpecT = RouteSpec>
112 CreateRouteRequest& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
114
116
122 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
123 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
124 template<typename TagsT = Aws::Vector<TagRef>>
125 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
126 template<typename TagsT = Aws::Vector<TagRef>>
127 CreateRouteRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
128 template<typename TagsT = TagRef>
129 CreateRouteRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
131
133
138 inline const Aws::String& GetVirtualRouterName() const { return m_virtualRouterName; }
139 inline bool VirtualRouterNameHasBeenSet() const { return m_virtualRouterNameHasBeenSet; }
140 template<typename VirtualRouterNameT = Aws::String>
141 void SetVirtualRouterName(VirtualRouterNameT&& value) { m_virtualRouterNameHasBeenSet = true; m_virtualRouterName = std::forward<VirtualRouterNameT>(value); }
142 template<typename VirtualRouterNameT = Aws::String>
143 CreateRouteRequest& WithVirtualRouterName(VirtualRouterNameT&& value) { SetVirtualRouterName(std::forward<VirtualRouterNameT>(value)); return *this;}
145 private:
146
148 bool m_clientTokenHasBeenSet = true;
149
150 Aws::String m_meshName;
151 bool m_meshNameHasBeenSet = false;
152
153 Aws::String m_meshOwner;
154 bool m_meshOwnerHasBeenSet = false;
155
156 Aws::String m_routeName;
157 bool m_routeNameHasBeenSet = false;
158
159 RouteSpec m_spec;
160 bool m_specHasBeenSet = false;
161
162 Aws::Vector<TagRef> m_tags;
163 bool m_tagsHasBeenSet = false;
164
165 Aws::String m_virtualRouterName;
166 bool m_virtualRouterNameHasBeenSet = false;
167 };
168
169} // namespace Model
170} // namespace AppMesh
171} // namespace Aws
CreateRouteRequest & AddTags(TagsT &&value)
const Aws::String & GetRouteName() const
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