@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseInspectionBodyContains extends Object implements Serializable, Cloneable, StructuredPojo
Configures inspection of the response body. WAF can inspect the first 65,536 bytes (64 KB) of the response body. This
is part of the ResponseInspection configuration for AWSManagedRulesATPRuleSet.
Response inspection is available only in web ACLs that protect Amazon CloudFront distributions.
| Constructor and Description |
|---|
ResponseInspectionBodyContains() |
| Modifier and Type | Method and Description |
|---|---|
ResponseInspectionBodyContains |
clone() |
boolean |
equals(Object obj) |
List<String> |
getFailureStrings()
Strings in the body of the response that indicate a failed login attempt.
|
List<String> |
getSuccessStrings()
Strings in the body of the response that indicate a successful login attempt.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller) |
void |
setFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login attempt.
|
void |
setSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login attempt.
|
String |
toString()
Returns a string representation of this object.
|
ResponseInspectionBodyContains |
withFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login attempt.
|
ResponseInspectionBodyContains |
withFailureStrings(String... failureStrings)
Strings in the body of the response that indicate a failed login attempt.
|
ResponseInspectionBodyContains |
withSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login attempt.
|
ResponseInspectionBodyContains |
withSuccessStrings(String... successStrings)
Strings in the body of the response that indicate a successful login attempt.
|
public List<String> getSuccessStrings()
Strings in the body of the response that indicate a successful login attempt. To be counted as a successful login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
public void setSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login attempt. To be counted as a successful login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
successStrings - Strings in the body of the response that indicate a successful login attempt. To be counted as a
successful login, the string can be anywhere in the body and must be an exact match, including case. Each
string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
public ResponseInspectionBodyContains withSuccessStrings(String... successStrings)
Strings in the body of the response that indicate a successful login attempt. To be counted as a successful login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
NOTE: This method appends the values to the existing list (if any). Use
setSuccessStrings(java.util.Collection) or withSuccessStrings(java.util.Collection) if you want
to override the existing values.
successStrings - Strings in the body of the response that indicate a successful login attempt. To be counted as a
successful login, the string can be anywhere in the body and must be an exact match, including case. Each
string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
public ResponseInspectionBodyContains withSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login attempt. To be counted as a successful login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
successStrings - Strings in the body of the response that indicate a successful login attempt. To be counted as a
successful login, the string can be anywhere in the body and must be an exact match, including case. Each
string must be unique among the success and failure strings.
JSON example: "SuccessStrings": [ "Login successful", "Welcome to our site!" ]
public List<String> getFailureStrings()
Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
JSON example: "FailureStrings": [ "Login failed" ]
public void setFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
failureStrings - Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login,
the string can be anywhere in the body and must be an exact match, including case. Each string must be
unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
public ResponseInspectionBodyContains withFailureStrings(String... failureStrings)
Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
NOTE: This method appends the values to the existing list (if any). Use
setFailureStrings(java.util.Collection) or withFailureStrings(java.util.Collection) if you want
to override the existing values.
failureStrings - Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login,
the string can be anywhere in the body and must be an exact match, including case. Each string must be
unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
public ResponseInspectionBodyContains withFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login, the string can be anywhere in the body and must be an exact match, including case. Each string must be unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
failureStrings - Strings in the body of the response that indicate a failed login attempt. To be counted as a failed login,
the string can be anywhere in the body and must be an exact match, including case. Each string must be
unique among the success and failure strings.
JSON example: "FailureStrings": [ "Login failed" ]
public String toString()
toString in class ObjectObject.toString()public ResponseInspectionBodyContains clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
marshall in interface StructuredPojoCopyright © 2023. All rights reserved.