@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpMatch extends Object implements Serializable, Cloneable, StructuredPojo
Describes criteria that can be applied to incoming requests.
Constructor and Description |
---|
HttpMatch() |
Modifier and Type | Method and Description |
---|---|
HttpMatch |
clone() |
boolean |
equals(Object obj) |
List<HeaderMatch> |
getHeaderMatches()
The header matches.
|
String |
getMethod()
The HTTP method type.
|
PathMatch |
getPathMatch()
The path match.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeaderMatches(Collection<HeaderMatch> headerMatches)
The header matches.
|
void |
setMethod(String method)
The HTTP method type.
|
void |
setPathMatch(PathMatch pathMatch)
The path match.
|
String |
toString()
Returns a string representation of this object.
|
HttpMatch |
withHeaderMatches(Collection<HeaderMatch> headerMatches)
The header matches.
|
HttpMatch |
withHeaderMatches(HeaderMatch... headerMatches)
The header matches.
|
HttpMatch |
withMethod(String method)
The HTTP method type.
|
HttpMatch |
withPathMatch(PathMatch pathMatch)
The path match.
|
public List<HeaderMatch> getHeaderMatches()
The header matches. Matches incoming requests with rule based on request header value before applying rule action.
public void setHeaderMatches(Collection<HeaderMatch> headerMatches)
The header matches. Matches incoming requests with rule based on request header value before applying rule action.
headerMatches
- The header matches. Matches incoming requests with rule based on request header value before applying rule
action.public HttpMatch withHeaderMatches(HeaderMatch... headerMatches)
The header matches. Matches incoming requests with rule based on request header value before applying rule action.
NOTE: This method appends the values to the existing list (if any). Use
setHeaderMatches(java.util.Collection)
or withHeaderMatches(java.util.Collection)
if you want
to override the existing values.
headerMatches
- The header matches. Matches incoming requests with rule based on request header value before applying rule
action.public HttpMatch withHeaderMatches(Collection<HeaderMatch> headerMatches)
The header matches. Matches incoming requests with rule based on request header value before applying rule action.
headerMatches
- The header matches. Matches incoming requests with rule based on request header value before applying rule
action.public void setMethod(String method)
The HTTP method type.
method
- The HTTP method type.public String getMethod()
The HTTP method type.
public HttpMatch withMethod(String method)
The HTTP method type.
method
- The HTTP method type.public void setPathMatch(PathMatch pathMatch)
The path match.
pathMatch
- The path match.public PathMatch getPathMatch()
The path match.
public HttpMatch withPathMatch(PathMatch pathMatch)
The path match.
pathMatch
- The path match.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.