@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HeaderMatchMethod extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents the method and value to match with the header value sent in a request. Specify one match method.
Constructor and Description |
---|
HeaderMatchMethod() |
Modifier and Type | Method and Description |
---|---|
HeaderMatchMethod |
clone() |
boolean |
equals(Object obj) |
String |
getExact()
The value sent by the client must match the specified value exactly.
|
String |
getPrefix()
The value sent by the client must begin with the specified characters.
|
MatchRange |
getRange()
An object that represents the range of values to match on.
|
String |
getRegex()
The value sent by the client must include the specified characters.
|
String |
getSuffix()
The value sent by the client must end with the specified characters.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExact(String exact)
The value sent by the client must match the specified value exactly.
|
void |
setPrefix(String prefix)
The value sent by the client must begin with the specified characters.
|
void |
setRange(MatchRange range)
An object that represents the range of values to match on.
|
void |
setRegex(String regex)
The value sent by the client must include the specified characters.
|
void |
setSuffix(String suffix)
The value sent by the client must end with the specified characters.
|
String |
toString()
Returns a string representation of this object.
|
HeaderMatchMethod |
withExact(String exact)
The value sent by the client must match the specified value exactly.
|
HeaderMatchMethod |
withPrefix(String prefix)
The value sent by the client must begin with the specified characters.
|
HeaderMatchMethod |
withRange(MatchRange range)
An object that represents the range of values to match on.
|
HeaderMatchMethod |
withRegex(String regex)
The value sent by the client must include the specified characters.
|
HeaderMatchMethod |
withSuffix(String suffix)
The value sent by the client must end with the specified characters.
|
public void setExact(String exact)
The value sent by the client must match the specified value exactly.
exact
- The value sent by the client must match the specified value exactly.public String getExact()
The value sent by the client must match the specified value exactly.
public HeaderMatchMethod withExact(String exact)
The value sent by the client must match the specified value exactly.
exact
- The value sent by the client must match the specified value exactly.public void setPrefix(String prefix)
The value sent by the client must begin with the specified characters.
prefix
- The value sent by the client must begin with the specified characters.public String getPrefix()
The value sent by the client must begin with the specified characters.
public HeaderMatchMethod withPrefix(String prefix)
The value sent by the client must begin with the specified characters.
prefix
- The value sent by the client must begin with the specified characters.public void setRange(MatchRange range)
An object that represents the range of values to match on.
range
- An object that represents the range of values to match on.public MatchRange getRange()
An object that represents the range of values to match on.
public HeaderMatchMethod withRange(MatchRange range)
An object that represents the range of values to match on.
range
- An object that represents the range of values to match on.public void setRegex(String regex)
The value sent by the client must include the specified characters.
regex
- The value sent by the client must include the specified characters.public String getRegex()
The value sent by the client must include the specified characters.
public HeaderMatchMethod withRegex(String regex)
The value sent by the client must include the specified characters.
regex
- The value sent by the client must include the specified characters.public void setSuffix(String suffix)
The value sent by the client must end with the specified characters.
suffix
- The value sent by the client must end with the specified characters.public String getSuffix()
The value sent by the client must end with the specified characters.
public HeaderMatchMethod withSuffix(String suffix)
The value sent by the client must end with the specified characters.
suffix
- The value sent by the client must end with the specified characters.public String toString()
toString
in class Object
Object.toString()
public HeaderMatchMethod clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.