@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HeaderMatchPattern extends Object implements Serializable, Cloneable, StructuredPojo
The filter to use to identify the subset of headers to inspect in a web request.
You must specify exactly one setting: either All
, IncludedHeaders
, or
ExcludedHeaders
.
Example JSON: "MatchPattern": { "ExcludedHeaders": [ "KeyToExclude1", "KeyToExclude2" ] }
Constructor and Description |
---|
HeaderMatchPattern() |
Modifier and Type | Method and Description |
---|---|
HeaderMatchPattern |
clone() |
boolean |
equals(Object obj) |
All |
getAll()
Inspect all headers.
|
List<String> |
getExcludedHeaders()
Inspect only the headers whose keys don't match any of the strings specified here.
|
List<String> |
getIncludedHeaders()
Inspect only the headers that have a key that matches one of the strings specified here.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAll(All all)
Inspect all headers.
|
void |
setExcludedHeaders(Collection<String> excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
|
void |
setIncludedHeaders(Collection<String> includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
|
String |
toString()
Returns a string representation of this object.
|
HeaderMatchPattern |
withAll(All all)
Inspect all headers.
|
HeaderMatchPattern |
withExcludedHeaders(Collection<String> excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
|
HeaderMatchPattern |
withExcludedHeaders(String... excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
|
HeaderMatchPattern |
withIncludedHeaders(Collection<String> includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
|
HeaderMatchPattern |
withIncludedHeaders(String... includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
|
public void setAll(All all)
Inspect all headers.
all
- Inspect all headers.public All getAll()
Inspect all headers.
public HeaderMatchPattern withAll(All all)
Inspect all headers.
all
- Inspect all headers.public List<String> getIncludedHeaders()
Inspect only the headers that have a key that matches one of the strings specified here.
public void setIncludedHeaders(Collection<String> includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
includedHeaders
- Inspect only the headers that have a key that matches one of the strings specified here.public HeaderMatchPattern withIncludedHeaders(String... includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
NOTE: This method appends the values to the existing list (if any). Use
setIncludedHeaders(java.util.Collection)
or withIncludedHeaders(java.util.Collection)
if you
want to override the existing values.
includedHeaders
- Inspect only the headers that have a key that matches one of the strings specified here.public HeaderMatchPattern withIncludedHeaders(Collection<String> includedHeaders)
Inspect only the headers that have a key that matches one of the strings specified here.
includedHeaders
- Inspect only the headers that have a key that matches one of the strings specified here.public List<String> getExcludedHeaders()
Inspect only the headers whose keys don't match any of the strings specified here.
public void setExcludedHeaders(Collection<String> excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
excludedHeaders
- Inspect only the headers whose keys don't match any of the strings specified here.public HeaderMatchPattern withExcludedHeaders(String... excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedHeaders(java.util.Collection)
or withExcludedHeaders(java.util.Collection)
if you
want to override the existing values.
excludedHeaders
- Inspect only the headers whose keys don't match any of the strings specified here.public HeaderMatchPattern withExcludedHeaders(Collection<String> excludedHeaders)
Inspect only the headers whose keys don't match any of the strings specified here.
excludedHeaders
- Inspect only the headers whose keys don't match any of the strings specified here.public String toString()
toString
in class Object
Object.toString()
public HeaderMatchPattern clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.