AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateGatewayRouteRequest.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/GatewayRouteSpec.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
30 {
31 public:
32 AWS_APPMESH_API CreateGatewayRouteRequest() = default;
33
34 // Service request name is the Operation name which will send this request out,
35 // each operation should has unique request name, so that we can get operation's name from this request.
36 // Note: this is not true for response, multiple operations may have the same response name,
37 // so we can not get operation's name from response.
38 inline virtual const char* GetServiceRequestName() const override { return "CreateGatewayRoute"; }
39
40 AWS_APPMESH_API Aws::String SerializePayload() const override;
41
42 AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
43
44
46
51 inline const Aws::String& GetClientToken() const { return m_clientToken; }
52 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
53 template<typename ClientTokenT = Aws::String>
54 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
55 template<typename ClientTokenT = Aws::String>
56 CreateGatewayRouteRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
58
60
63 inline const Aws::String& GetGatewayRouteName() const { return m_gatewayRouteName; }
64 inline bool GatewayRouteNameHasBeenSet() const { return m_gatewayRouteNameHasBeenSet; }
65 template<typename GatewayRouteNameT = Aws::String>
66 void SetGatewayRouteName(GatewayRouteNameT&& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = std::forward<GatewayRouteNameT>(value); }
67 template<typename GatewayRouteNameT = Aws::String>
68 CreateGatewayRouteRequest& WithGatewayRouteName(GatewayRouteNameT&& value) { SetGatewayRouteName(std::forward<GatewayRouteNameT>(value)); return *this;}
70
72
75 inline const Aws::String& GetMeshName() const { return m_meshName; }
76 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
77 template<typename MeshNameT = Aws::String>
78 void SetMeshName(MeshNameT&& value) { m_meshNameHasBeenSet = true; m_meshName = std::forward<MeshNameT>(value); }
79 template<typename MeshNameT = Aws::String>
80 CreateGatewayRouteRequest& WithMeshName(MeshNameT&& value) { SetMeshName(std::forward<MeshNameT>(value)); return *this;}
82
84
92 inline const Aws::String& GetMeshOwner() const { return m_meshOwner; }
93 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
94 template<typename MeshOwnerT = Aws::String>
95 void SetMeshOwner(MeshOwnerT&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::forward<MeshOwnerT>(value); }
96 template<typename MeshOwnerT = Aws::String>
97 CreateGatewayRouteRequest& WithMeshOwner(MeshOwnerT&& value) { SetMeshOwner(std::forward<MeshOwnerT>(value)); return *this;}
99
101
104 inline const GatewayRouteSpec& GetSpec() const { return m_spec; }
105 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
106 template<typename SpecT = GatewayRouteSpec>
107 void SetSpec(SpecT&& value) { m_specHasBeenSet = true; m_spec = std::forward<SpecT>(value); }
108 template<typename SpecT = GatewayRouteSpec>
109 CreateGatewayRouteRequest& WithSpec(SpecT&& value) { SetSpec(std::forward<SpecT>(value)); return *this;}
111
113
119 inline const Aws::Vector<TagRef>& GetTags() const { return m_tags; }
120 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
121 template<typename TagsT = Aws::Vector<TagRef>>
122 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
123 template<typename TagsT = Aws::Vector<TagRef>>
124 CreateGatewayRouteRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
125 template<typename TagsT = TagRef>
126 CreateGatewayRouteRequest& AddTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags.emplace_back(std::forward<TagsT>(value)); return *this; }
128
130
135 inline const Aws::String& GetVirtualGatewayName() const { return m_virtualGatewayName; }
136 inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
137 template<typename VirtualGatewayNameT = Aws::String>
138 void SetVirtualGatewayName(VirtualGatewayNameT&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::forward<VirtualGatewayNameT>(value); }
139 template<typename VirtualGatewayNameT = Aws::String>
140 CreateGatewayRouteRequest& WithVirtualGatewayName(VirtualGatewayNameT&& value) { SetVirtualGatewayName(std::forward<VirtualGatewayNameT>(value)); return *this;}
142 private:
143
145 bool m_clientTokenHasBeenSet = true;
146
147 Aws::String m_gatewayRouteName;
148 bool m_gatewayRouteNameHasBeenSet = false;
149
150 Aws::String m_meshName;
151 bool m_meshNameHasBeenSet = false;
152
153 Aws::String m_meshOwner;
154 bool m_meshOwnerHasBeenSet = false;
155
156 GatewayRouteSpec m_spec;
157 bool m_specHasBeenSet = false;
158
159 Aws::Vector<TagRef> m_tags;
160 bool m_tagsHasBeenSet = false;
161
162 Aws::String m_virtualGatewayName;
163 bool m_virtualGatewayNameHasBeenSet = false;
164 };
165
166} // namespace Model
167} // namespace AppMesh
168} // 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