AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
54 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
55 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
56 inline CreateGatewayRouteRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
57 inline CreateGatewayRouteRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
58 inline CreateGatewayRouteRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
60
62
65 inline const Aws::String& GetGatewayRouteName() const{ return m_gatewayRouteName; }
66 inline bool GatewayRouteNameHasBeenSet() const { return m_gatewayRouteNameHasBeenSet; }
67 inline void SetGatewayRouteName(const Aws::String& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = value; }
68 inline void SetGatewayRouteName(Aws::String&& value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName = std::move(value); }
69 inline void SetGatewayRouteName(const char* value) { m_gatewayRouteNameHasBeenSet = true; m_gatewayRouteName.assign(value); }
71 inline CreateGatewayRouteRequest& WithGatewayRouteName(Aws::String&& value) { SetGatewayRouteName(std::move(value)); return *this;}
72 inline CreateGatewayRouteRequest& WithGatewayRouteName(const char* value) { SetGatewayRouteName(value); return *this;}
74
76
79 inline const Aws::String& GetMeshName() const{ return m_meshName; }
80 inline bool MeshNameHasBeenSet() const { return m_meshNameHasBeenSet; }
81 inline void SetMeshName(const Aws::String& value) { m_meshNameHasBeenSet = true; m_meshName = value; }
82 inline void SetMeshName(Aws::String&& value) { m_meshNameHasBeenSet = true; m_meshName = std::move(value); }
83 inline void SetMeshName(const char* value) { m_meshNameHasBeenSet = true; m_meshName.assign(value); }
84 inline CreateGatewayRouteRequest& WithMeshName(const Aws::String& value) { SetMeshName(value); return *this;}
85 inline CreateGatewayRouteRequest& WithMeshName(Aws::String&& value) { SetMeshName(std::move(value)); return *this;}
86 inline CreateGatewayRouteRequest& WithMeshName(const char* value) { SetMeshName(value); return *this;}
88
90
98 inline const Aws::String& GetMeshOwner() const{ return m_meshOwner; }
99 inline bool MeshOwnerHasBeenSet() const { return m_meshOwnerHasBeenSet; }
100 inline void SetMeshOwner(const Aws::String& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = value; }
101 inline void SetMeshOwner(Aws::String&& value) { m_meshOwnerHasBeenSet = true; m_meshOwner = std::move(value); }
102 inline void SetMeshOwner(const char* value) { m_meshOwnerHasBeenSet = true; m_meshOwner.assign(value); }
103 inline CreateGatewayRouteRequest& WithMeshOwner(const Aws::String& value) { SetMeshOwner(value); return *this;}
104 inline CreateGatewayRouteRequest& WithMeshOwner(Aws::String&& value) { SetMeshOwner(std::move(value)); return *this;}
105 inline CreateGatewayRouteRequest& WithMeshOwner(const char* value) { SetMeshOwner(value); return *this;}
107
109
112 inline const GatewayRouteSpec& GetSpec() const{ return m_spec; }
113 inline bool SpecHasBeenSet() const { return m_specHasBeenSet; }
114 inline void SetSpec(const GatewayRouteSpec& value) { m_specHasBeenSet = true; m_spec = value; }
115 inline void SetSpec(GatewayRouteSpec&& value) { m_specHasBeenSet = true; m_spec = std::move(value); }
116 inline CreateGatewayRouteRequest& WithSpec(const GatewayRouteSpec& value) { SetSpec(value); return *this;}
117 inline CreateGatewayRouteRequest& WithSpec(GatewayRouteSpec&& value) { SetSpec(std::move(value)); return *this;}
119
121
127 inline const Aws::Vector<TagRef>& GetTags() const{ return m_tags; }
128 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
129 inline void SetTags(const Aws::Vector<TagRef>& value) { m_tagsHasBeenSet = true; m_tags = value; }
130 inline void SetTags(Aws::Vector<TagRef>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
131 inline CreateGatewayRouteRequest& WithTags(const Aws::Vector<TagRef>& value) { SetTags(value); return *this;}
132 inline CreateGatewayRouteRequest& WithTags(Aws::Vector<TagRef>&& value) { SetTags(std::move(value)); return *this;}
133 inline CreateGatewayRouteRequest& AddTags(const TagRef& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; }
134 inline CreateGatewayRouteRequest& AddTags(TagRef&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; }
136
138
143 inline const Aws::String& GetVirtualGatewayName() const{ return m_virtualGatewayName; }
144 inline bool VirtualGatewayNameHasBeenSet() const { return m_virtualGatewayNameHasBeenSet; }
145 inline void SetVirtualGatewayName(const Aws::String& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = value; }
146 inline void SetVirtualGatewayName(Aws::String&& value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName = std::move(value); }
147 inline void SetVirtualGatewayName(const char* value) { m_virtualGatewayNameHasBeenSet = true; m_virtualGatewayName.assign(value); }
149 inline CreateGatewayRouteRequest& WithVirtualGatewayName(Aws::String&& value) { SetVirtualGatewayName(std::move(value)); return *this;}
150 inline CreateGatewayRouteRequest& WithVirtualGatewayName(const char* value) { SetVirtualGatewayName(value); return *this;}
152 private:
153
154 Aws::String m_clientToken;
155 bool m_clientTokenHasBeenSet = false;
156
157 Aws::String m_gatewayRouteName;
158 bool m_gatewayRouteNameHasBeenSet = false;
159
160 Aws::String m_meshName;
161 bool m_meshNameHasBeenSet = false;
162
163 Aws::String m_meshOwner;
164 bool m_meshOwnerHasBeenSet = false;
165
166 GatewayRouteSpec m_spec;
167 bool m_specHasBeenSet = false;
168
169 Aws::Vector<TagRef> m_tags;
170 bool m_tagsHasBeenSet = false;
171
172 Aws::String m_virtualGatewayName;
173 bool m_virtualGatewayNameHasBeenSet = false;
174 };
175
176} // namespace Model
177} // namespace AppMesh
178} // namespace Aws
CreateGatewayRouteRequest & WithSpec(GatewayRouteSpec &&value)
CreateGatewayRouteRequest & WithSpec(const GatewayRouteSpec &value)
AWS_APPMESH_API Aws::String SerializePayload() const override
AWS_APPMESH_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
CreateGatewayRouteRequest & WithClientToken(const char *value)
CreateGatewayRouteRequest & WithClientToken(Aws::String &&value)
CreateGatewayRouteRequest & WithGatewayRouteName(const Aws::String &value)
CreateGatewayRouteRequest & WithGatewayRouteName(Aws::String &&value)
CreateGatewayRouteRequest & WithTags(const Aws::Vector< TagRef > &value)
CreateGatewayRouteRequest & WithVirtualGatewayName(const char *value)
CreateGatewayRouteRequest & WithMeshOwner(const Aws::String &value)
CreateGatewayRouteRequest & WithMeshName(const char *value)
CreateGatewayRouteRequest & WithMeshOwner(const char *value)
void SetTags(const Aws::Vector< TagRef > &value)
CreateGatewayRouteRequest & WithMeshName(const Aws::String &value)
CreateGatewayRouteRequest & WithGatewayRouteName(const char *value)
CreateGatewayRouteRequest & WithClientToken(const Aws::String &value)
CreateGatewayRouteRequest & WithMeshName(Aws::String &&value)
CreateGatewayRouteRequest & WithVirtualGatewayName(Aws::String &&value)
CreateGatewayRouteRequest & WithTags(Aws::Vector< TagRef > &&value)
CreateGatewayRouteRequest & AddTags(const TagRef &value)
CreateGatewayRouteRequest & AddTags(TagRef &&value)
virtual const char * GetServiceRequestName() const override
CreateGatewayRouteRequest & WithVirtualGatewayName(const Aws::String &value)
CreateGatewayRouteRequest & WithMeshOwner(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector