@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResponseInspectionStatusCode extends Object implements Serializable, Cloneable, StructuredPojo
Configures inspection of the response status code. 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 |
---|
ResponseInspectionStatusCode() |
Modifier and Type | Method and Description |
---|---|
ResponseInspectionStatusCode |
clone() |
boolean |
equals(Object obj) |
List<Integer> |
getFailureCodes()
Status codes in the response that indicate a failed login or account creation attempt.
|
List<Integer> |
getSuccessCodes()
Status codes in 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 |
setFailureCodes(Collection<Integer> failureCodes)
Status codes in the response that indicate a failed login or account creation attempt.
|
void |
setSuccessCodes(Collection<Integer> successCodes)
Status codes in the response that indicate a successful login or account creation attempt.
|
String |
toString()
Returns a string representation of this object.
|
ResponseInspectionStatusCode |
withFailureCodes(Collection<Integer> failureCodes)
Status codes in the response that indicate a failed login or account creation attempt.
|
ResponseInspectionStatusCode |
withFailureCodes(Integer... failureCodes)
Status codes in the response that indicate a failed login or account creation attempt.
|
ResponseInspectionStatusCode |
withSuccessCodes(Collection<Integer> successCodes)
Status codes in the response that indicate a successful login or account creation attempt.
|
ResponseInspectionStatusCode |
withSuccessCodes(Integer... successCodes)
Status codes in the response that indicate a successful login or account creation attempt.
|
public List<Integer> getSuccessCodes()
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
JSON example: "SuccessCodes": [ 200, 201 ]
public void setSuccessCodes(Collection<Integer> successCodes)
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
successCodes
- Status codes in the response that indicate a successful login or account creation attempt. To be counted
as a success, the response status code must match one of these. Each code must be unique among the success
and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
public ResponseInspectionStatusCode withSuccessCodes(Integer... successCodes)
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
NOTE: This method appends the values to the existing list (if any). Use
setSuccessCodes(java.util.Collection)
or withSuccessCodes(java.util.Collection)
if you want to
override the existing values.
successCodes
- Status codes in the response that indicate a successful login or account creation attempt. To be counted
as a success, the response status code must match one of these. Each code must be unique among the success
and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
public ResponseInspectionStatusCode withSuccessCodes(Collection<Integer> successCodes)
Status codes in the response that indicate a successful login or account creation attempt. To be counted as a success, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
successCodes
- Status codes in the response that indicate a successful login or account creation attempt. To be counted
as a success, the response status code must match one of these. Each code must be unique among the success
and failure status codes.
JSON example: "SuccessCodes": [ 200, 201 ]
public List<Integer> getFailureCodes()
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
JSON example: "FailureCodes": [ 400, 404 ]
public void setFailureCodes(Collection<Integer> failureCodes)
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
failureCodes
- Status codes in the response that indicate a failed login or account creation attempt. To be counted as a
failure, the response status code must match one of these. Each code must be unique among the success and
failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
public ResponseInspectionStatusCode withFailureCodes(Integer... failureCodes)
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
NOTE: This method appends the values to the existing list (if any). Use
setFailureCodes(java.util.Collection)
or withFailureCodes(java.util.Collection)
if you want to
override the existing values.
failureCodes
- Status codes in the response that indicate a failed login or account creation attempt. To be counted as a
failure, the response status code must match one of these. Each code must be unique among the success and
failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
public ResponseInspectionStatusCode withFailureCodes(Collection<Integer> failureCodes)
Status codes in the response that indicate a failed login or account creation attempt. To be counted as a failure, the response status code must match one of these. Each code must be unique among the success and failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
failureCodes
- Status codes in the response that indicate a failed login or account creation attempt. To be counted as a
failure, the response status code must match one of these. Each code must be unique among the success and
failure status codes.
JSON example: "FailureCodes": [ 400, 404 ]
public String toString()
toString
in class Object
Object.toString()
public ResponseInspectionStatusCode clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.