/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace WAF { namespace Model { /** *

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).

See Also:

AWS * API Reference

*/ class LoggingConfiguration { public: AWS_WAF_API LoggingConfiguration(); AWS_WAF_API LoggingConfiguration(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API LoggingConfiguration& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_WAF_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the web ACL that you want to associate with * LogDestinationConfigs.

*/ inline LoggingConfiguration& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline const Aws::Vector& GetLogDestinationConfigs() const{ return m_logDestinationConfigs; } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline bool LogDestinationConfigsHasBeenSet() const { return m_logDestinationConfigsHasBeenSet; } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline void SetLogDestinationConfigs(const Aws::Vector& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = value; } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline void SetLogDestinationConfigs(Aws::Vector&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs = std::move(value); } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline LoggingConfiguration& WithLogDestinationConfigs(const Aws::Vector& value) { SetLogDestinationConfigs(value); return *this;} /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline LoggingConfiguration& WithLogDestinationConfigs(Aws::Vector&& value) { SetLogDestinationConfigs(std::move(value)); return *this;} /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(const Aws::String& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(Aws::String&& value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(std::move(value)); return *this; } /** *

An array of Amazon Kinesis Data Firehose ARNs.

*/ inline LoggingConfiguration& AddLogDestinationConfigs(const char* value) { m_logDestinationConfigsHasBeenSet = true; m_logDestinationConfigs.push_back(value); return *this; } /** *

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.

*/ inline const Aws::Vector& GetRedactedFields() const{ return m_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 be * xxx.

*/ inline bool RedactedFieldsHasBeenSet() const { return m_redactedFieldsHasBeenSet; } /** *

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.

*/ inline void SetRedactedFields(const Aws::Vector& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = value; } /** *

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.

*/ inline void SetRedactedFields(Aws::Vector&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields = std::move(value); } /** *

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.

*/ inline LoggingConfiguration& WithRedactedFields(const Aws::Vector& value) { SetRedactedFields(value); return *this;} /** *

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.

*/ inline LoggingConfiguration& WithRedactedFields(Aws::Vector&& value) { SetRedactedFields(std::move(value)); return *this;} /** *

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.

*/ inline LoggingConfiguration& AddRedactedFields(const FieldToMatch& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(value); return *this; } /** *

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.

*/ inline LoggingConfiguration& AddRedactedFields(FieldToMatch&& value) { m_redactedFieldsHasBeenSet = true; m_redactedFields.push_back(std::move(value)); return *this; } private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; Aws::Vector m_logDestinationConfigs; bool m_logDestinationConfigsHasBeenSet = false; Aws::Vector m_redactedFields; bool m_redactedFieldsHasBeenSet = false; }; } // namespace Model } // namespace WAF } // namespace Aws