/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.wafv2.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* 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. *
** 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!" ]
*
* 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" ]
*
* 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:
* 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 java.util.List"SuccessStrings": [ "Login successful" ]
and
* "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
*
* JSON examples:
* 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:
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setSuccessStrings(java.util.Collection)} or {@link #withSuccessStrings(java.util.Collection)} if you want
* to override the existing values.
* "SuccessStrings": [ "Login successful" ]
and
* "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
*/
public void setSuccessStrings(java.util.Collection"SuccessStrings": [ "Login successful" ]
and
* "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
*
* JSON examples:
* 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!" ]
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseInspectionBodyContains withSuccessStrings(String... successStrings) {
if (this.successStrings == null) {
setSuccessStrings(new java.util.ArrayList"SuccessStrings": [ "Login successful" ]
and
* "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
*
* JSON examples:
* 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: "SuccessStrings": [ "Login successful" ]
and
* "SuccessStrings": [ "Account creation successful", "Welcome to our site!" ]
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseInspectionBodyContains withSuccessStrings(java.util.Collection"FailureStrings": [ "Request failed" ]
*
* JSON example:
* 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 java.util.List"FailureStrings": [ "Request failed" ]
*
* JSON example:
* 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:
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setFailureStrings(java.util.Collection)} or {@link #withFailureStrings(java.util.Collection)} if you want
* to override the existing values.
* "FailureStrings": [ "Request failed" ]
*/
public void setFailureStrings(java.util.Collection"FailureStrings": [ "Request failed" ]
*
* JSON example:
* 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" ]
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseInspectionBodyContains withFailureStrings(String... failureStrings) {
if (this.failureStrings == null) {
setFailureStrings(new java.util.ArrayList"FailureStrings": [ "Request failed" ]
*
* JSON example: "FailureStrings": [ "Request failed" ]
* @return Returns a reference to this object so that method calls can be chained together.
*/
public ResponseInspectionBodyContains withFailureStrings(java.util.Collection