7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/HttpMethod.h>
10#include <aws/appmesh/model/HttpPathMatch.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/appmesh/model/HttpScheme.h>
13#include <aws/appmesh/model/HttpRouteHeader.h>
14#include <aws/appmesh/model/HttpQueryParameter.h>
53 template<
typename HeadersT = Aws::Vector<HttpRouteHeader>>
54 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet =
true; m_headers = std::forward<HeadersT>(value); }
55 template<
typename HeadersT = Aws::Vector<HttpRouteHeader>>
57 template<
typename HeadersT = HttpRouteHeader>
58 HttpRouteMatch&
AddHeaders(HeadersT&& value) { m_headersHasBeenSet =
true; m_headers.emplace_back(std::forward<HeadersT>(value));
return *
this; }
77 template<
typename PathT = HttpPathMatch>
78 void SetPath(PathT&& value) { m_pathHasBeenSet =
true; m_path = std::forward<PathT>(value); }
79 template<
typename PathT = HttpPathMatch>
87 inline int GetPort()
const {
return m_port; }
89 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
104 template<
typename PrefixT = Aws::String>
105 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet =
true; m_prefix = std::forward<PrefixT>(value); }
106 template<
typename PrefixT = Aws::String>
116 template<
typename QueryParametersT = Aws::Vector<HttpQueryParameter>>
117 void SetQueryParameters(QueryParametersT&& value) { m_queryParametersHasBeenSet =
true; m_queryParameters = std::forward<QueryParametersT>(value); }
118 template<
typename QueryParametersT = Aws::Vector<HttpQueryParameter>>
120 template<
typename QueryParametersT = HttpQueryParameter>
121 HttpRouteMatch&
AddQueryParameters(QueryParametersT&& value) { m_queryParametersHasBeenSet =
true; m_queryParameters.emplace_back(std::forward<QueryParametersT>(value));
return *
this; }
137 bool m_headersHasBeenSet =
false;
140 bool m_methodHasBeenSet =
false;
142 HttpPathMatch m_path;
143 bool m_pathHasBeenSet =
false;
146 bool m_portHasBeenSet =
false;
149 bool m_prefixHasBeenSet =
false;
152 bool m_queryParametersHasBeenSet =
false;
155 bool m_schemeHasBeenSet =
false;
bool PrefixHasBeenSet() const
HttpRouteMatch & AddQueryParameters(QueryParametersT &&value)
void SetHeaders(HeadersT &&value)
HttpRouteMatch & WithScheme(HttpScheme value)
HttpRouteMatch & WithHeaders(HeadersT &&value)
bool MethodHasBeenSet() const
bool HeadersHasBeenSet() const
bool SchemeHasBeenSet() const
HttpMethod GetMethod() const
const HttpPathMatch & GetPath() const
void SetScheme(HttpScheme value)
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
void SetPath(PathT &&value)
AWS_APPMESH_API HttpRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrefix(PrefixT &&value)
const Aws::Vector< HttpRouteHeader > & GetHeaders() const
HttpRouteMatch & WithPath(PathT &&value)
AWS_APPMESH_API HttpRouteMatch()=default
HttpRouteMatch & WithQueryParameters(QueryParametersT &&value)
bool PortHasBeenSet() const
const Aws::String & GetPrefix() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HttpRouteMatch & WithPrefix(PrefixT &&value)
AWS_APPMESH_API HttpRouteMatch(Aws::Utils::Json::JsonView jsonValue)
HttpScheme GetScheme() const
bool PathHasBeenSet() const
HttpRouteMatch & WithMethod(HttpMethod value)
HttpRouteMatch & WithPort(int value)
HttpRouteMatch & AddHeaders(HeadersT &&value)
void SetMethod(HttpMethod value)
bool QueryParametersHasBeenSet() const
void SetQueryParameters(QueryParametersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue