@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
and
AWSManagedRulesACFPRuleSet
.
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 or account creation attempt.
|
List<String> |
getSuccessStrings()
Strings in the body of the response that indicate a successful login or account creation attempt.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login or account creation attempt.
|
void |
setSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login or account creation 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 or account creation attempt.
|
ResponseInspectionBodyContains |
withFailureStrings(String... failureStrings)
Strings in the body of the response that indicate a failed login or account creation attempt.
|
ResponseInspectionBodyContains |
withSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login or account creation attempt.
|
ResponseInspectionBodyContains |
withSuccessStrings(String... successStrings)
Strings in the body of the response that indicate a successful login or account creation attempt.
|
public List<String> getSuccessStrings()
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
JSON examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
public void setSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
successStrings
- Strings in the body of the response that indicate a successful login or account creation attempt. To be
counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
public ResponseInspectionBodyContains withSuccessStrings(String... successStrings)
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation 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 or account creation attempt. To be
counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
public ResponseInspectionBodyContains withSuccessStrings(Collection<String> successStrings)
Strings in the body of the response that indicate a successful login or account creation attempt. To be counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
successStrings
- Strings in the body of the response that indicate a successful login or account creation attempt. To be
counted as a success, 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 examples: "SuccessStrings": [ "Login successful" ]
and
"SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
public List<String> getFailureStrings()
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, 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": [ "Request failed" ]
JSON example: "FailureStrings": [ "Request failed" ]
public void setFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, 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": [ "Request failed" ]
failureStrings
- Strings in the body of the response that indicate a failed login or account creation attempt. To be
counted as a failure, 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": [ "Request failed" ]
public ResponseInspectionBodyContains withFailureStrings(String... failureStrings)
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, 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": [ "Request 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 or account creation attempt. To be
counted as a failure, 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": [ "Request failed" ]
public ResponseInspectionBodyContains withFailureStrings(Collection<String> failureStrings)
Strings in the body of the response that indicate a failed login or account creation attempt. To be counted as a failure, 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": [ "Request failed" ]
failureStrings
- Strings in the body of the response that indicate a failed login or account creation attempt. To be
counted as a failure, 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": [ "Request failed" ]
public String toString()
toString
in class Object
Object.toString()
public ResponseInspectionBodyContains clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.