AWS SDK for C++  1.9.124
AWS SDK for C++
HttpRouteMatch.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<HttpRouteHeader>& GetHeaders() const{ return m_headers; }
51 
55  inline bool HeadersHasBeenSet() const { return m_headersHasBeenSet; }
56 
60  inline void SetHeaders(const Aws::Vector<HttpRouteHeader>& value) { m_headersHasBeenSet = true; m_headers = value; }
61 
65  inline void SetHeaders(Aws::Vector<HttpRouteHeader>&& value) { m_headersHasBeenSet = true; m_headers = std::move(value); }
66 
70  inline HttpRouteMatch& WithHeaders(const Aws::Vector<HttpRouteHeader>& value) { SetHeaders(value); return *this;}
71 
75  inline HttpRouteMatch& WithHeaders(Aws::Vector<HttpRouteHeader>&& value) { SetHeaders(std::move(value)); return *this;}
76 
80  inline HttpRouteMatch& AddHeaders(const HttpRouteHeader& value) { m_headersHasBeenSet = true; m_headers.push_back(value); return *this; }
81 
85  inline HttpRouteMatch& AddHeaders(HttpRouteHeader&& value) { m_headersHasBeenSet = true; m_headers.push_back(std::move(value)); return *this; }
86 
87 
91  inline const HttpMethod& GetMethod() const{ return m_method; }
92 
96  inline bool MethodHasBeenSet() const { return m_methodHasBeenSet; }
97 
101  inline void SetMethod(const HttpMethod& value) { m_methodHasBeenSet = true; m_method = value; }
102 
106  inline void SetMethod(HttpMethod&& value) { m_methodHasBeenSet = true; m_method = std::move(value); }
107 
111  inline HttpRouteMatch& WithMethod(const HttpMethod& value) { SetMethod(value); return *this;}
112 
116  inline HttpRouteMatch& WithMethod(HttpMethod&& value) { SetMethod(std::move(value)); return *this;}
117 
118 
122  inline const HttpPathMatch& GetPath() const{ return m_path; }
123 
127  inline bool PathHasBeenSet() const { return m_pathHasBeenSet; }
128 
132  inline void SetPath(const HttpPathMatch& value) { m_pathHasBeenSet = true; m_path = value; }
133 
137  inline void SetPath(HttpPathMatch&& value) { m_pathHasBeenSet = true; m_path = std::move(value); }
138 
142  inline HttpRouteMatch& WithPath(const HttpPathMatch& value) { SetPath(value); return *this;}
143 
147  inline HttpRouteMatch& WithPath(HttpPathMatch&& value) { SetPath(std::move(value)); return *this;}
148 
149 
158  inline const Aws::String& GetPrefix() const{ return m_prefix; }
159 
168  inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
169 
178  inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
179 
188  inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
189 
198  inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
199 
208  inline HttpRouteMatch& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
209 
218  inline HttpRouteMatch& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
219 
228  inline HttpRouteMatch& WithPrefix(const char* value) { SetPrefix(value); return *this;}
229 
230 
234  inline const Aws::Vector<HttpQueryParameter>& GetQueryParameters() const{ return m_queryParameters; }
235 
239  inline bool QueryParametersHasBeenSet() const { return m_queryParametersHasBeenSet; }
240 
244  inline void SetQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { m_queryParametersHasBeenSet = true; m_queryParameters = value; }
245 
249  inline void SetQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { m_queryParametersHasBeenSet = true; m_queryParameters = std::move(value); }
250 
254  inline HttpRouteMatch& WithQueryParameters(const Aws::Vector<HttpQueryParameter>& value) { SetQueryParameters(value); return *this;}
255 
259  inline HttpRouteMatch& WithQueryParameters(Aws::Vector<HttpQueryParameter>&& value) { SetQueryParameters(std::move(value)); return *this;}
260 
264  inline HttpRouteMatch& AddQueryParameters(const HttpQueryParameter& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(value); return *this; }
265 
269  inline HttpRouteMatch& AddQueryParameters(HttpQueryParameter&& value) { m_queryParametersHasBeenSet = true; m_queryParameters.push_back(std::move(value)); return *this; }
270 
271 
276  inline const HttpScheme& GetScheme() const{ return m_scheme; }
277 
282  inline bool SchemeHasBeenSet() const { return m_schemeHasBeenSet; }
283 
288  inline void SetScheme(const HttpScheme& value) { m_schemeHasBeenSet = true; m_scheme = value; }
289 
294  inline void SetScheme(HttpScheme&& value) { m_schemeHasBeenSet = true; m_scheme = std::move(value); }
295 
300  inline HttpRouteMatch& WithScheme(const HttpScheme& value) { SetScheme(value); return *this;}
301 
306  inline HttpRouteMatch& WithScheme(HttpScheme&& value) { SetScheme(std::move(value)); return *this;}
307 
308  private:
309 
311  bool m_headersHasBeenSet;
312 
313  HttpMethod m_method;
314  bool m_methodHasBeenSet;
315 
316  HttpPathMatch m_path;
317  bool m_pathHasBeenSet;
318 
319  Aws::String m_prefix;
320  bool m_prefixHasBeenSet;
321 
322  Aws::Vector<HttpQueryParameter> m_queryParameters;
323  bool m_queryParametersHasBeenSet;
324 
325  HttpScheme m_scheme;
326  bool m_schemeHasBeenSet;
327  };
328 
329 } // namespace Model
330 } // namespace AppMesh
331 } // namespace Aws
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(const Aws::String &value)
Definition: HttpRouteMatch.h:178
Aws::AppMesh::Model::HttpRouteMatch::WithScheme
HttpRouteMatch & WithScheme(HttpScheme &&value)
Definition: HttpRouteMatch.h:306
Aws::AppMesh::Model::HttpPathMatch
Definition: HttpPathMatch.h:33
Aws::AppMesh::Model::HttpRouteMatch::SetScheme
void SetScheme(const HttpScheme &value)
Definition: HttpRouteMatch.h:288
Aws::AppMesh::Model::HttpRouteMatch::SetScheme
void SetScheme(HttpScheme &&value)
Definition: HttpRouteMatch.h:294
Aws::AppMesh::Model::HttpRouteMatch::WithScheme
HttpRouteMatch & WithScheme(const HttpScheme &value)
Definition: HttpRouteMatch.h:300
Aws::AppMesh::Model::HttpRouteMatch::SetQueryParameters
void SetQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
Definition: HttpRouteMatch.h:244
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(const char *value)
Definition: HttpRouteMatch.h:228
Aws::AppMesh::Model::HttpRouteMatch::GetQueryParameters
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
Definition: HttpRouteMatch.h:234
HttpScheme.h
Aws::AppMesh::Model::HttpRouteMatch::HeadersHasBeenSet
bool HeadersHasBeenSet() const
Definition: HttpRouteMatch.h:55
Aws::AppMesh::Model::HttpRouteHeader
Definition: HttpRouteHeader.h:34
HttpQueryParameter.h
Aws::AppMesh::Model::HttpRouteMatch::SetPath
void SetPath(const HttpPathMatch &value)
Definition: HttpRouteMatch.h:132
Aws::AppMesh::Model::HttpRouteMatch::WithPath
HttpRouteMatch & WithPath(const HttpPathMatch &value)
Definition: HttpRouteMatch.h:142
Aws::AppMesh::Model::HttpRouteMatch::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::AppMesh::Model::HttpRouteMatch::AddQueryParameters
HttpRouteMatch & AddQueryParameters(HttpQueryParameter &&value)
Definition: HttpRouteMatch.h:269
AppMesh_EXPORTS.h
AWSVector.h
Aws::AppMesh::Model::HttpRouteMatch::PathHasBeenSet
bool PathHasBeenSet() const
Definition: HttpRouteMatch.h:127
Aws::AppMesh::Model::HttpRouteMatch::WithQueryParameters
HttpRouteMatch & WithQueryParameters(const Aws::Vector< HttpQueryParameter > &value)
Definition: HttpRouteMatch.h:254
HttpPathMatch.h
Aws::AppMesh::Model::HttpRouteMatch::GetMethod
const HttpMethod & GetMethod() const
Definition: HttpRouteMatch.h:91
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(Aws::String &&value)
Definition: HttpRouteMatch.h:218
Aws::AppMesh::Model::HttpRouteMatch::SetHeaders
void SetHeaders(Aws::Vector< HttpRouteHeader > &&value)
Definition: HttpRouteMatch.h:65
Aws::AppMesh::Model::HttpQueryParameter
Definition: HttpQueryParameter.h:34
Aws::AppMesh::Model::HttpRouteMatch::HttpRouteMatch
HttpRouteMatch(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteMatch::WithHeaders
HttpRouteMatch & WithHeaders(const Aws::Vector< HttpRouteHeader > &value)
Definition: HttpRouteMatch.h:70
Aws::AppMesh::Model::HttpRouteMatch::AddQueryParameters
HttpRouteMatch & AddQueryParameters(const HttpQueryParameter &value)
Definition: HttpRouteMatch.h:264
Aws::AppMesh::Model::HttpRouteMatch::WithPrefix
HttpRouteMatch & WithPrefix(const Aws::String &value)
Definition: HttpRouteMatch.h:208
Aws::AppMesh::Model::HttpRouteMatch::SchemeHasBeenSet
bool SchemeHasBeenSet() const
Definition: HttpRouteMatch.h:282
HttpRouteHeader.h
Aws::AppMesh::Model::HttpRouteMatch::SetHeaders
void SetHeaders(const Aws::Vector< HttpRouteHeader > &value)
Definition: HttpRouteMatch.h:60
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::AppMesh::Model::HttpRouteMatch::WithMethod
HttpRouteMatch & WithMethod(const HttpMethod &value)
Definition: HttpRouteMatch.h:111
Aws::AppMesh::Model::HttpRouteMatch::QueryParametersHasBeenSet
bool QueryParametersHasBeenSet() const
Definition: HttpRouteMatch.h:239
Aws::AppMesh::Model::HttpRouteMatch::WithPath
HttpRouteMatch & WithPath(HttpPathMatch &&value)
Definition: HttpRouteMatch.h:147
Aws::AppMesh::Model::HttpRouteMatch::GetPrefix
const Aws::String & GetPrefix() const
Definition: HttpRouteMatch.h:158
Aws::AppMesh::Model::HttpMethod
HttpMethod
Definition: HttpMethod.h:17
Aws::AppMesh::Model::HttpRouteMatch::WithHeaders
HttpRouteMatch & WithHeaders(Aws::Vector< HttpRouteHeader > &&value)
Definition: HttpRouteMatch.h:75
Aws::AppMesh::Model::HttpRouteMatch::WithMethod
HttpRouteMatch & WithMethod(HttpMethod &&value)
Definition: HttpRouteMatch.h:116
Aws::AppMesh::Model::HttpRouteMatch::WithQueryParameters
HttpRouteMatch & WithQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
Definition: HttpRouteMatch.h:259
Aws::AppMesh::Model::HttpRouteMatch::GetHeaders
const Aws::Vector< HttpRouteHeader > & GetHeaders() const
Definition: HttpRouteMatch.h:50
HttpMethod.h
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::HttpRouteMatch::SetQueryParameters
void SetQueryParameters(Aws::Vector< HttpQueryParameter > &&value)
Definition: HttpRouteMatch.h:249
Aws::AppMesh::Model::HttpRouteMatch::SetMethod
void SetMethod(HttpMethod &&value)
Definition: HttpRouteMatch.h:106
Aws::AppMesh::Model::HttpRouteMatch::AddHeaders
HttpRouteMatch & AddHeaders(const HttpRouteHeader &value)
Definition: HttpRouteMatch.h:80
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::HttpRouteMatch::SetPath
void SetPath(HttpPathMatch &&value)
Definition: HttpRouteMatch.h:137
Aws::AppMesh::Model::HttpRouteMatch
Definition: HttpRouteMatch.h:39
Aws::AppMesh::Model::HttpRouteMatch::SetMethod
void SetMethod(const HttpMethod &value)
Definition: HttpRouteMatch.h:101
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(Aws::String &&value)
Definition: HttpRouteMatch.h:188
Aws::AppMesh::Model::HttpRouteMatch::operator=
HttpRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::HttpRouteMatch::HttpRouteMatch
HttpRouteMatch()
Aws::AppMesh::Model::HttpRouteMatch::PrefixHasBeenSet
bool PrefixHasBeenSet() const
Definition: HttpRouteMatch.h:168
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::HttpScheme
HttpScheme
Definition: HttpScheme.h:17
Aws::AppMesh::Model::HttpRouteMatch::SetPrefix
void SetPrefix(const char *value)
Definition: HttpRouteMatch.h:198
Aws::AppMesh::Model::HttpRouteMatch::GetPath
const HttpPathMatch & GetPath() const
Definition: HttpRouteMatch.h:122
Aws::AppMesh::Model::HttpRouteMatch::GetScheme
const HttpScheme & GetScheme() const
Definition: HttpRouteMatch.h:276
Aws::AppMesh::Model::HttpRouteMatch::MethodHasBeenSet
bool MethodHasBeenSet() const
Definition: HttpRouteMatch.h:96
Aws::AppMesh::Model::HttpRouteMatch::AddHeaders
HttpRouteMatch & AddHeaders(HttpRouteHeader &&value)
Definition: HttpRouteMatch.h:85