@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) |
String |
getPrefix()
Specifies the path to match requests with.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrefix(String prefix)
Specifies the path to match requests with.
|
String |
toString()
Returns a string representation of this object.
|
HttpGatewayRouteMatch |
withPrefix(String prefix)
Specifies the path to match requests with.
|
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 String toString()
toString
in class Object
Object.toString()
public HttpGatewayRouteMatch clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.