7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/appmesh/model/GatewayRouteHostnameMatch.h>
10#include <aws/appmesh/model/HttpMethod.h>
11#include <aws/appmesh/model/HttpPathMatch.h>
12#include <aws/core/utils/memory/stl/AWSString.h>
13#include <aws/appmesh/model/HttpGatewayRouteHeader.h>
14#include <aws/appmesh/model/HttpQueryParameter.h>
53 template<
typename HeadersT = Aws::Vector<HttpGatewayRouteHeader>>
54 void SetHeaders(HeadersT&& value) { m_headersHasBeenSet =
true; m_headers = std::forward<HeadersT>(value); }
55 template<
typename HeadersT = Aws::Vector<HttpGatewayRouteHeader>>
57 template<
typename HeadersT = HttpGatewayRouteHeader>
67 template<
typename HostnameT = GatewayRouteHostnameMatch>
68 void SetHostname(HostnameT&& value) { m_hostnameHasBeenSet =
true; m_hostname = std::forward<HostnameT>(value); }
69 template<
typename HostnameT = GatewayRouteHostnameMatch>
89 template<
typename PathT = HttpPathMatch>
90 void SetPath(PathT&& value) { m_pathHasBeenSet =
true; m_path = std::forward<PathT>(value); }
91 template<
typename PathT = HttpPathMatch>
99 inline int GetPort()
const {
return m_port; }
101 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
116 template<
typename PrefixT = Aws::String>
117 void SetPrefix(PrefixT&& value) { m_prefixHasBeenSet =
true; m_prefix = std::forward<PrefixT>(value); }
118 template<
typename PrefixT = Aws::String>
128 template<
typename QueryParametersT = Aws::Vector<HttpQueryParameter>>
129 void SetQueryParameters(QueryParametersT&& value) { m_queryParametersHasBeenSet =
true; m_queryParameters = std::forward<QueryParametersT>(value); }
130 template<
typename QueryParametersT = Aws::Vector<HttpQueryParameter>>
132 template<
typename QueryParametersT = HttpQueryParameter>
138 bool m_headersHasBeenSet =
false;
141 bool m_hostnameHasBeenSet =
false;
144 bool m_methodHasBeenSet =
false;
146 HttpPathMatch m_path;
147 bool m_pathHasBeenSet =
false;
150 bool m_portHasBeenSet =
false;
153 bool m_prefixHasBeenSet =
false;
156 bool m_queryParametersHasBeenSet =
false;
bool QueryParametersHasBeenSet() const
HttpGatewayRouteMatch & WithPrefix(PrefixT &&value)
HttpGatewayRouteMatch & WithQueryParameters(QueryParametersT &&value)
const Aws::String & GetPrefix() const
bool PrefixHasBeenSet() const
HttpGatewayRouteMatch & WithHeaders(HeadersT &&value)
const GatewayRouteHostnameMatch & GetHostname() const
bool PortHasBeenSet() const
void SetQueryParameters(QueryParametersT &&value)
bool PathHasBeenSet() const
void SetMethod(HttpMethod value)
AWS_APPMESH_API HttpGatewayRouteMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetPrefix(PrefixT &&value)
HttpGatewayRouteMatch & WithHostname(HostnameT &&value)
HttpGatewayRouteMatch & WithPath(PathT &&value)
const Aws::Vector< HttpGatewayRouteHeader > & GetHeaders() const
bool HeadersHasBeenSet() const
bool HostnameHasBeenSet() const
void SetPath(PathT &&value)
AWS_APPMESH_API HttpGatewayRouteMatch(Aws::Utils::Json::JsonView jsonValue)
HttpGatewayRouteMatch & AddQueryParameters(QueryParametersT &&value)
bool MethodHasBeenSet() const
void SetHostname(HostnameT &&value)
const HttpPathMatch & GetPath() const
HttpMethod GetMethod() const
void SetHeaders(HeadersT &&value)
AWS_APPMESH_API HttpGatewayRouteMatch()=default
const Aws::Vector< HttpQueryParameter > & GetQueryParameters() const
HttpGatewayRouteMatch & AddHeaders(HeadersT &&value)
HttpGatewayRouteMatch & WithPort(int value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
HttpGatewayRouteMatch & WithMethod(HttpMethod 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