@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseInspectionJson extends Object implements Serializable, Cloneable, StructuredPojo
Configures inspection of the response JSON. WAF can inspect the first 65,536 bytes (64 KB) of the response JSON. 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 |
---|
ResponseInspectionJson() |
Modifier and Type | Method and Description |
---|---|
ResponseInspectionJson |
clone() |
boolean |
equals(Object obj) |
List<String> |
getFailureValues()
Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt.
|
String |
getIdentifier()
The identifier for the value to match against in the JSON.
|
List<String> |
getSuccessValues()
Values for the specified identifier in the response JSON that indicate a successful login or account creation
attempt.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setFailureValues(Collection<String> failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt.
|
void |
setIdentifier(String identifier)
The identifier for the value to match against in the JSON.
|
void |
setSuccessValues(Collection<String> successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation
attempt.
|
String |
toString()
Returns a string representation of this object.
|
ResponseInspectionJson |
withFailureValues(Collection<String> failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt.
|
ResponseInspectionJson |
withFailureValues(String... failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt.
|
ResponseInspectionJson |
withIdentifier(String identifier)
The identifier for the value to match against in the JSON.
|
ResponseInspectionJson |
withSuccessValues(Collection<String> successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation
attempt.
|
ResponseInspectionJson |
withSuccessValues(String... successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation
attempt.
|
public void setIdentifier(String identifier)
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
identifier
- The identifier for the value to match against in the JSON. The identifier must be an exact match,
including case.
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
public String getIdentifier()
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
public ResponseInspectionJson withIdentifier(String identifier)
The identifier for the value to match against in the JSON. The identifier must be an exact match, including case.
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
identifier
- The identifier for the value to match against in the JSON. The identifier must be an exact match,
including case.
JSON examples: "Identifier": [ "/login/success" ]
and
"Identifier": [ "/sign-up/success" ]
public List<String> getSuccessValues()
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
JSON example: "SuccessValues": [ "True", "Succeeded" ]
public void setSuccessValues(Collection<String> successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
successValues
- Values for the specified identifier in the response JSON that indicate a successful login or account
creation attempt. To be counted as a success, the value must be an exact match, including case. Each value
must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
public ResponseInspectionJson withSuccessValues(String... successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
NOTE: This method appends the values to the existing list (if any). Use
setSuccessValues(java.util.Collection)
or withSuccessValues(java.util.Collection)
if you want
to override the existing values.
successValues
- Values for the specified identifier in the response JSON that indicate a successful login or account
creation attempt. To be counted as a success, the value must be an exact match, including case. Each value
must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
public ResponseInspectionJson withSuccessValues(Collection<String> successValues)
Values for the specified identifier in the response JSON that indicate a successful login or account creation attempt. To be counted as a success, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
successValues
- Values for the specified identifier in the response JSON that indicate a successful login or account
creation attempt. To be counted as a success, the value must be an exact match, including case. Each value
must be unique among the success and failure values.
JSON example: "SuccessValues": [ "True", "Succeeded" ]
public List<String> getFailureValues()
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
JSON example: "FailureValues": [ "False", "Failed" ]
public void setFailureValues(Collection<String> failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
failureValues
- Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be
unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
public ResponseInspectionJson withFailureValues(String... failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
NOTE: This method appends the values to the existing list (if any). Use
setFailureValues(java.util.Collection)
or withFailureValues(java.util.Collection)
if you want
to override the existing values.
failureValues
- Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be
unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
public ResponseInspectionJson withFailureValues(Collection<String> failureValues)
Values for the specified identifier in the response JSON that indicate a failed login or account creation attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
failureValues
- Values for the specified identifier in the response JSON that indicate a failed login or account creation
attempt. To be counted as a failure, the value must be an exact match, including case. Each value must be
unique among the success and failure values.
JSON example: "FailureValues": [ "False", "Failed" ]
public String toString()
toString
in class Object
Object.toString()
public ResponseInspectionJson clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.