@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CookieMatchPattern extends Object implements Serializable, Cloneable, StructuredPojo
The filter to use to identify the subset of cookies to inspect in a web request.
You must specify exactly one setting: either All
, IncludedCookies
, or
ExcludedCookies
.
Example JSON: "MatchPattern": { "IncludedCookies": [ "session-id-time", "session-id" ] }
Constructor and Description |
---|
CookieMatchPattern() |
Modifier and Type | Method and Description |
---|---|
CookieMatchPattern |
clone() |
boolean |
equals(Object obj) |
All |
getAll()
Inspect all cookies.
|
List<String> |
getExcludedCookies()
Inspect only the cookies whose keys don't match any of the strings specified here.
|
List<String> |
getIncludedCookies()
Inspect only the cookies 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 cookies.
|
void |
setExcludedCookies(Collection<String> excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
|
void |
setIncludedCookies(Collection<String> includedCookies)
Inspect only the cookies that have a key that matches one of the strings specified here.
|
String |
toString()
Returns a string representation of this object.
|
CookieMatchPattern |
withAll(All all)
Inspect all cookies.
|
CookieMatchPattern |
withExcludedCookies(Collection<String> excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
|
CookieMatchPattern |
withExcludedCookies(String... excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
|
CookieMatchPattern |
withIncludedCookies(Collection<String> includedCookies)
Inspect only the cookies that have a key that matches one of the strings specified here.
|
CookieMatchPattern |
withIncludedCookies(String... includedCookies)
Inspect only the cookies that have a key that matches one of the strings specified here.
|
public void setAll(All all)
Inspect all cookies.
all
- Inspect all cookies.public All getAll()
Inspect all cookies.
public CookieMatchPattern withAll(All all)
Inspect all cookies.
all
- Inspect all cookies.public List<String> getIncludedCookies()
Inspect only the cookies that have a key that matches one of the strings specified here.
public void setIncludedCookies(Collection<String> includedCookies)
Inspect only the cookies that have a key that matches one of the strings specified here.
includedCookies
- Inspect only the cookies that have a key that matches one of the strings specified here.public CookieMatchPattern withIncludedCookies(String... includedCookies)
Inspect only the cookies 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
setIncludedCookies(java.util.Collection)
or withIncludedCookies(java.util.Collection)
if you
want to override the existing values.
includedCookies
- Inspect only the cookies that have a key that matches one of the strings specified here.public CookieMatchPattern withIncludedCookies(Collection<String> includedCookies)
Inspect only the cookies that have a key that matches one of the strings specified here.
includedCookies
- Inspect only the cookies that have a key that matches one of the strings specified here.public List<String> getExcludedCookies()
Inspect only the cookies whose keys don't match any of the strings specified here.
public void setExcludedCookies(Collection<String> excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
excludedCookies
- Inspect only the cookies whose keys don't match any of the strings specified here.public CookieMatchPattern withExcludedCookies(String... excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
NOTE: This method appends the values to the existing list (if any). Use
setExcludedCookies(java.util.Collection)
or withExcludedCookies(java.util.Collection)
if you
want to override the existing values.
excludedCookies
- Inspect only the cookies whose keys don't match any of the strings specified here.public CookieMatchPattern withExcludedCookies(Collection<String> excludedCookies)
Inspect only the cookies whose keys don't match any of the strings specified here.
excludedCookies
- Inspect only the cookies whose keys don't match any of the strings specified here.public String toString()
toString
in class Object
Object.toString()
public CookieMatchPattern clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.