AWS SDK for C++  1.9.132
AWS SDK for C++
HttpGatewayRouteMatch.h
Go to the documentation of this file.
1 
6 #pragma once
15 #include <utility>
16 
17 namespace Aws
18 {
19 namespace Utils
20 {
21 namespace Json
22 {
23  class JsonValue;
24  class JsonView;
25 } // namespace Json
26 } // namespace Utils
27 namespace AppMesh
28 {
29 namespace Model
30 {
31 
39  {
40  public:
45 
46 
50  inline const Aws::Vector<HttpGatewayRouteHeader>& GetHeaders() const{ return m_headers; }
51 
55  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
56 
60  inline void SetHeaders(const Aws::Vector<HttpGatewayRouteHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
61 
65  inline void SetHeaders(Aws::Vector<HttpGatewayRouteHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
66 
70  inline HttpGatewayRouteMatch& WithHeaders(const Aws::Vector<HttpGatewayRouteHeader>& value) { SetHeaders(value); return *this;}
71 
75  inline HttpGatewayRouteMatch& WithHeaders(Aws::Vector<HttpGatewayRouteHeader>&& value) { SetHeaders(std::move(value)); return *this;}
76 
80  inline HttpGatewayRouteMatch& AddHeaders(const HttpGatewayRouteHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
81 
85  inline HttpGatewayRouteMatch& AddHeaders(HttpGatewayRouteHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
86 
87 
91  inline const GatewayRouteHostnameMatch& GetHostname() const{ return m_hostname; }
92 
96  inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; }
97 
101  inline void SetHostname(const GatewayRouteHostnameMatch& value) { m_hostnameHasBeenSet = true; m_hostname = value; }
102 
106  inline void SetHostname(GatewayRouteHostnameMatch&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); }
107 
111  inline HttpGatewayRouteMatch& WithHostname(const GatewayRouteHostnameMatch& value) { SetHostname(value); return *this;}
112 
116  inline HttpGatewayRouteMatch& WithHostname(GatewayRouteHostnameMatch&& value) { SetHostname(std::move(value)); return *this;}
117 
118 
122  inline const HttpMethod& GetMethod() const{ return m_method; }
123 
127  inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
128 
132  inline void SetMethod(const HttpMethod& value) { m_methodHasBeenSet = true; m_method = value; }
133 
137  inline void SetMethod(HttpMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
138 
142  inline HttpGatewayRouteMatch& WithMethod(const HttpMethod& value) { SetMethod(value); return *this;}
143 
147  inline HttpGatewayRouteMatch& WithMethod(HttpMethod&& value) { SetMethod(std::move(value)); return *this;}
148 
149 
153  inline const HttpPathMatch& GetPath() const{ return m_path; }
154 
158  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
159 
163  inline void SetPath(const HttpPathMatch& value) { m_pathHasBeenSet = true; m_path = value; }
164 
168  inline void SetPath(HttpPathMatch&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
169 
173  inline HttpGatewayRouteMatch& WithPath(const HttpPathMatch& value) { SetPath(value); return *this;}
174 
178  inline HttpGatewayRouteMatch& WithPath(HttpPathMatch&& value) { SetPath(std::move(value)); return *this;}
179 
180 
189  inline const Aws::String& GetPrefix() const{ return m_prefix; }
190 
199  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
200 
209  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
210 
219  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
220 
229  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
230 
239  inline HttpGatewayRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
240 
249  inline HttpGatewayRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
250 
259  inline HttpGatewayRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;}
260 
261 
265  inline const Aws::Vector<HttpQueryParameter>& GetQueryParameters() const{ return m_queryParameters; }
266 
270  inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
271 
275  inline void SetQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
276 
280  inline void SetQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
281 
285  inline HttpGatewayRouteMatch& WithQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { SetQueryParameters(value); return *this;}
286 
290  inline HttpGatewayRouteMatch& WithQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { SetQueryParameters(std::move(value)); return *this;}
291 
295  inline HttpGatewayRouteMatch& AddQueryParameters(const HttpQueryParameter& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
296 
300  inline HttpGatewayRouteMatch& AddQueryParameters(HttpQueryParameter&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; }
301 
302  private:
303 
305  bool m_headersHasBeenSet;
306 
307  GatewayRouteHostnameMatch m_hostname;
308  bool m_hostnameHasBeenSet;
309 
310  HttpMethod m_method;
311  bool m_methodHasBeenSet;
312 
313  HttpPathMatch m_path;
314  bool m_pathHasBeenSet;
315 
316  Aws::String m_prefix;
317  bool m_prefixHasBeenSet;
318 
319  Aws::Vector<HttpQueryParameter> m_queryParameters;
320  bool m_queryParametersHasBeenSet;
321  };
322 
323 } // namespace Model
324 } // namespace AppMesh
325 } // namespace Aws
Aws::AppMesh::Model::HttpGatewayRouteMatch::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:199
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetPath
void SetPath(HttpPathMatch &&value)
Definition: HttpGatewayRouteMatch.h:168
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetHostname
const GatewayRouteHostnameMatch & GetHostname() const
Definition: HttpGatewayRouteMatch.h:91
Aws::AppMesh::Model::HttpPathMatch
Definition: HttpPathMatch.h:33
Aws::AppMesh::Model::HttpGatewayRouteMatch::HostnameHasBeenSet
bool HostnameHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:96
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetPath
const HttpPathMatch & GetPath() const
Definition: HttpGatewayRouteMatch.h:153
Aws::AppMesh::Model::HttpGatewayRouteMatch::operator=
HttpGatewayRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithQueryParameters
HttpGatewayRouteMatch & WithQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
Definition: HttpGatewayRouteMatch.h:285
Aws::AppMesh::Model::HttpGatewayRouteMatch::HttpGatewayRouteMatch
HttpGatewayRouteMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithMethod
HttpGatewayRouteMatch & WithMethod(HttpMethod &&value)
Definition: HttpGatewayRouteMatch.h:147
Aws::AppMesh::Model::HttpGatewayRouteMatch::PathHasBeenSet
bool PathHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:158
Aws::AppMesh::Model::HttpGatewayRouteMatch::HttpGatewayRouteMatch
HttpGatewayRouteMatch()
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithHeaders
HttpGatewayRouteMatch & WithHeaders(Aws::Vector< HttpGatewayRouteHeader > &&value)
Definition: HttpGatewayRouteMatch.h:75
HttpQueryParameter.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetPrefix
void SetPrefix(const char *value)
Definition: HttpGatewayRouteMatch.h:229
GatewayRouteHostnameMatch.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetQueryParameters
void SetQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
Definition: HttpGatewayRouteMatch.h:280
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetHostname
void SetHostname(const GatewayRouteHostnameMatch &value)
Definition: HttpGatewayRouteMatch.h:101
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithPath
HttpGatewayRouteMatch & WithPath(HttpPathMatch &&value)
Definition: HttpGatewayRouteMatch.h:178
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetHeaders
const Aws::Vector< HttpGatewayRouteHeader > & GetHeaders() const
Definition: HttpGatewayRouteMatch.h:50
AppMesh_EXPORTS.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithHostname
HttpGatewayRouteMatch & WithHostname(GatewayRouteHostnameMatch &&value)
Definition: HttpGatewayRouteMatch.h:116
AWSVector.h
Aws::AppMesh::Model::HttpGatewayRouteHeader
Definition: HttpGatewayRouteHeader.h:34
HttpPathMatch.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetHeaders
void SetHeaders(const Aws::Vector< HttpGatewayRouteHeader > &value)
Definition: HttpGatewayRouteMatch.h:60
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetMethod
const HttpMethod & GetMethod() const
Definition: HttpGatewayRouteMatch.h:122
Aws::AppMesh::Model::HttpGatewayRouteMatch::AddQueryParameters
HttpGatewayRouteMatch & AddQueryParameters(HttpQueryParameter &&value)
Definition: HttpGatewayRouteMatch.h:300
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithHeaders
HttpGatewayRouteMatch & WithHeaders(const Aws::Vector< HttpGatewayRouteHeader > &value)
Definition: HttpGatewayRouteMatch.h:70
Aws::AppMesh::Model::HttpQueryParameter
Definition: HttpQueryParameter.h:34
Aws::AppMesh::Model::HttpGatewayRouteMatch::MethodHasBeenSet
bool MethodHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:127
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetMethod
void SetMethod(HttpMethod &&value)
Definition: HttpGatewayRouteMatch.h:137
Aws::AppMesh::Model::HttpGatewayRouteMatch::AddHeaders
HttpGatewayRouteMatch & AddHeaders(const HttpGatewayRouteHeader &value)
Definition: HttpGatewayRouteMatch.h:80
Aws::AppMesh::Model::GatewayRouteHostnameMatch
Definition: GatewayRouteHostnameMatch.h:33
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::AddQueryParameters
HttpGatewayRouteMatch & AddQueryParameters(const HttpQueryParameter &value)
Definition: HttpGatewayRouteMatch.h:295
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetMethod
void SetMethod(const HttpMethod &value)
Definition: HttpGatewayRouteMatch.h:132
Aws::AppMesh::Model::HttpGatewayRouteMatch::QueryParametersHasBeenSet
bool QueryParametersHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:270
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetHeaders
void SetHeaders(Aws::Vector< HttpGatewayRouteHeader > &&value)
Definition: HttpGatewayRouteMatch.h:65
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithPrefix
HttpGatewayRouteMatch & WithPrefix(Aws::String &&value)
Definition: HttpGatewayRouteMatch.h:249
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithPath
HttpGatewayRouteMatch & WithPath(const HttpPathMatch &value)
Definition: HttpGatewayRouteMatch.h:173
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithMethod
HttpGatewayRouteMatch & WithMethod(const HttpMethod &value)
Definition: HttpGatewayRouteMatch.h:142
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithPrefix
HttpGatewayRouteMatch & WithPrefix(const Aws::String &value)
Definition: HttpGatewayRouteMatch.h:239
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithPrefix
HttpGatewayRouteMatch & WithPrefix(const char *value)
Definition: HttpGatewayRouteMatch.h:259
HttpGatewayRouteHeader.h
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetPath
void SetPath(const HttpPathMatch &value)
Definition: HttpGatewayRouteMatch.h:163
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetPrefix
const Aws::String & GetPrefix() const
Definition: HttpGatewayRouteMatch.h:189
Aws::AppMesh::Model::HttpMethod
HttpMethod
Definition: HttpMethod.h:17
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithQueryParameters
HttpGatewayRouteMatch & WithQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
Definition: HttpGatewayRouteMatch.h:290
Aws::AppMesh::Model::HttpGatewayRouteMatch::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HttpGatewayRouteMatch.h:55
Aws::AppMesh::Model::HttpGatewayRouteMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::HttpGatewayRouteMatch::GetQueryParameters
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
Definition: HttpGatewayRouteMatch.h:265
HttpMethod.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetHostname
void SetHostname(GatewayRouteHostnameMatch &&value)
Definition: HttpGatewayRouteMatch.h:106
Aws::AppMesh::Model::HttpGatewayRouteMatch::WithHostname
HttpGatewayRouteMatch & WithHostname(const GatewayRouteHostnameMatch &value)
Definition: HttpGatewayRouteMatch.h:111
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: HttpGatewayRouteMatch.h:209
Aws::AppMesh::Model::HttpGatewayRouteMatch
Definition: HttpGatewayRouteMatch.h:39
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: HttpGatewayRouteMatch.h:219
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpGatewayRouteMatch::AddHeaders
HttpGatewayRouteMatch & AddHeaders(HttpGatewayRouteHeader &&value)
Definition: HttpGatewayRouteMatch.h:85
Aws::AppMesh::Model::HttpGatewayRouteMatch::SetQueryParameters
void SetQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
Definition: HttpGatewayRouteMatch.h:275