/*
* 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.waf.model;
import java.io.Serializable;
import javax.annotation.Generated;
import com.amazonaws.protocol.StructuredPojo;
import com.amazonaws.protocol.ProtocolMarshaller;
/**
*
* This is AWS WAF Classic documentation. For more information, see AWS WAF Classic in the
* developer guide.
*
* For the latest version of AWS WAF, use the AWS WAFV2 API and see the AWS WAF Developer Guide. With the
* latest version, AWS WAF has a single set of endpoints for regional and global use.
*
* The Amazon Kinesis Data Firehose, RedactedFields
information, and the web ACL Amazon Resource Name
* (ARN).
*
* The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
*
* An array of Amazon Kinesis Data Firehose ARNs. *
*/ private java.util.List
* The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
* cookie field in the firehose will be xxx
.
*
* The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
*
LogDestinationConfigs
.
*/
public void setResourceArn(String resourceArn) {
this.resourceArn = resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
*
LogDestinationConfigs
.
*/
public String getResourceArn() {
return this.resourceArn;
}
/**
*
* The Amazon Resource Name (ARN) of the web ACL that you want to associate with LogDestinationConfigs
.
*
LogDestinationConfigs
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoggingConfiguration withResourceArn(String resourceArn) {
setResourceArn(resourceArn);
return this;
}
/**
* * An array of Amazon Kinesis Data Firehose ARNs. *
* * @return An array of Amazon Kinesis Data Firehose ARNs. */ public java.util.List* An array of Amazon Kinesis Data Firehose ARNs. *
* * @param logDestinationConfigs * An array of Amazon Kinesis Data Firehose ARNs. */ public void setLogDestinationConfigs(java.util.Collection* An array of Amazon Kinesis Data Firehose ARNs. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setLogDestinationConfigs(java.util.Collection)} or * {@link #withLogDestinationConfigs(java.util.Collection)} if you want to override the existing values. *
* * @param logDestinationConfigs * An array of Amazon Kinesis Data Firehose ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withLogDestinationConfigs(String... logDestinationConfigs) { if (this.logDestinationConfigs == null) { setLogDestinationConfigs(new java.util.ArrayList* An array of Amazon Kinesis Data Firehose ARNs. *
* * @param logDestinationConfigs * An array of Amazon Kinesis Data Firehose ARNs. * @return Returns a reference to this object so that method calls can be chained together. */ public LoggingConfiguration withLogDestinationConfigs(java.util.Collection
* The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
* cookie field in the firehose will be xxx
.
*
xxx
.
*/
public java.util.List
* The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
* cookie field in the firehose will be xxx
.
*
xxx
.
*/
public void setRedactedFields(java.util.Collection
* The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
* cookie field in the firehose will be xxx
.
*
* NOTE: This method appends the values to the existing list (if any). Use * {@link #setRedactedFields(java.util.Collection)} or {@link #withRedactedFields(java.util.Collection)} if you want * to override the existing values. *
* * @param redactedFields * The parts of the request that you want redacted from the logs. For example, if you redact the cookie * field, the cookie field in the firehose will bexxx
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoggingConfiguration withRedactedFields(FieldToMatch... redactedFields) {
if (this.redactedFields == null) {
setRedactedFields(new java.util.ArrayList
* The parts of the request that you want redacted from the logs. For example, if you redact the cookie field, the
* cookie field in the firehose will be xxx
.
*
xxx
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public LoggingConfiguration withRedactedFields(java.util.Collection