@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpGatewayRouteMatch extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the criteria for determining a request match.
| Constructor and Description |
|---|
HttpGatewayRouteMatch() |
| Modifier and Type | Method and Description |
|---|---|
HttpGatewayRouteMatch |
clone() |
boolean |
equals(Object obj) |
List<HttpGatewayRouteHeader> |
getHeaders()
The client request headers to match on.
|
GatewayRouteHostnameMatch |
getHostname()
The host name to match on.
|
String |
getMethod()
The method to match on.
|
HttpPathMatch |
getPath()
The path to match on.
|
Integer |
getPort()
The port number to match on.
|
String |
getPrefix()
Specifies the path to match requests with.
|
List<HttpQueryParameter> |
getQueryParameters()
The query parameter to match on.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller. |
void |
setHeaders(Collection<HttpGatewayRouteHeader> headers)
The client request headers to match on.
|
void |
setHostname(GatewayRouteHostnameMatch hostname)
The host name to match on.
|
void |
setMethod(String method)
The method to match on.
|
void |
setPath(HttpPathMatch path)
The path to match on.
|
void |
setPort(Integer port)
The port number to match on.
|
void |
setPrefix(String prefix)
Specifies the path to match requests with.
|
void |
setQueryParameters(Collection<HttpQueryParameter> queryParameters)
The query parameter to match on.
|
String |
toString()
Returns a string representation of this object.
|
HttpGatewayRouteMatch |
withHeaders(Collection<HttpGatewayRouteHeader> headers)
The client request headers to match on.
|
HttpGatewayRouteMatch |
withHeaders(HttpGatewayRouteHeader... headers)
The client request headers to match on.
|
HttpGatewayRouteMatch |
withHostname(GatewayRouteHostnameMatch hostname)
The host name to match on.
|
HttpGatewayRouteMatch |
withMethod(HttpMethod method)
The method to match on.
|
HttpGatewayRouteMatch |
withMethod(String method)
The method to match on.
|
HttpGatewayRouteMatch |
withPath(HttpPathMatch path)
The path to match on.
|
HttpGatewayRouteMatch |
withPort(Integer port)
The port number to match on.
|
HttpGatewayRouteMatch |
withPrefix(String prefix)
Specifies the path to match requests with.
|
HttpGatewayRouteMatch |
withQueryParameters(Collection<HttpQueryParameter> queryParameters)
The query parameter to match on.
|
HttpGatewayRouteMatch |
withQueryParameters(HttpQueryParameter... queryParameters)
The query parameter to match on.
|
public List<HttpGatewayRouteHeader> getHeaders()
The client request headers to match on.
public void setHeaders(Collection<HttpGatewayRouteHeader> headers)
The client request headers to match on.
headers - The client request headers to match on.public HttpGatewayRouteMatch withHeaders(HttpGatewayRouteHeader... headers)
The client request headers to match on.
NOTE: This method appends the values to the existing list (if any). Use
setHeaders(java.util.Collection) or withHeaders(java.util.Collection) if you want to override
the existing values.
headers - The client request headers to match on.public HttpGatewayRouteMatch withHeaders(Collection<HttpGatewayRouteHeader> headers)
The client request headers to match on.
headers - The client request headers to match on.public void setHostname(GatewayRouteHostnameMatch hostname)
The host name to match on.
hostname - The host name to match on.public GatewayRouteHostnameMatch getHostname()
The host name to match on.
public HttpGatewayRouteMatch withHostname(GatewayRouteHostnameMatch hostname)
The host name to match on.
hostname - The host name to match on.public void setMethod(String method)
The method to match on.
method - The method to match on.HttpMethodpublic String getMethod()
The method to match on.
HttpMethodpublic HttpGatewayRouteMatch withMethod(String method)
The method to match on.
method - The method to match on.HttpMethodpublic HttpGatewayRouteMatch withMethod(HttpMethod method)
The method to match on.
method - The method to match on.HttpMethodpublic void setPath(HttpPathMatch path)
The path to match on.
path - The path to match on.public HttpPathMatch getPath()
The path to match on.
public HttpGatewayRouteMatch withPath(HttpPathMatch path)
The path to match on.
path - The path to match on.public void setPort(Integer port)
The port number to match on.
port - The port number to match on.public Integer getPort()
The port number to match on.
public HttpGatewayRouteMatch withPort(Integer port)
The port number to match on.
port - The port number to match on.public void setPrefix(String prefix)
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
prefix - Specifies the path to match requests with. This parameter must always start with /, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public String getPrefix()
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
/, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public HttpGatewayRouteMatch withPrefix(String prefix)
Specifies the path to match requests with. This parameter must always start with /, which by itself
matches all requests to the virtual service name. You can also match for path-based routing of requests. For
example, if your virtual service name is my-service.local and you want the route to match requests
to my-service.local/metrics, your prefix should be /metrics.
prefix - Specifies the path to match requests with. This parameter must always start with /, which by
itself matches all requests to the virtual service name. You can also match for path-based routing of
requests. For example, if your virtual service name is my-service.local and you want the
route to match requests to my-service.local/metrics, your prefix should be
/metrics.public List<HttpQueryParameter> getQueryParameters()
The query parameter to match on.
public void setQueryParameters(Collection<HttpQueryParameter> queryParameters)
The query parameter to match on.
queryParameters - The query parameter to match on.public HttpGatewayRouteMatch withQueryParameters(HttpQueryParameter... queryParameters)
The query parameter to match on.
NOTE: This method appends the values to the existing list (if any). Use
setQueryParameters(java.util.Collection) or withQueryParameters(java.util.Collection) if you
want to override the existing values.
queryParameters - The query parameter to match on.public HttpGatewayRouteMatch withQueryParameters(Collection<HttpQueryParameter> queryParameters)
The query parameter to match on.
queryParameters - The query parameter to match on.public String toString()
toString in class ObjectObject.toString()public HttpGatewayRouteMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.