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

A complex type that controls whether access logs are written for the * CloudFront distribution.

See Also:

AWS * API Reference

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

The S3 bucket to store the access logs in.

*/ inline const Aws::String& GetBucket() const{ return m_bucket; } /** *

The S3 bucket to store the access logs in.

*/ inline bool BucketHasBeenSet() const { return m_bucketHasBeenSet; } /** *

The S3 bucket to store the access logs in.

*/ inline void SetBucket(const Aws::String& value) { m_bucketHasBeenSet = true; m_bucket = value; } /** *

The S3 bucket to store the access logs in.

*/ inline void SetBucket(Aws::String&& value) { m_bucketHasBeenSet = true; m_bucket = std::move(value); } /** *

The S3 bucket to store the access logs in.

*/ inline void SetBucket(const char* value) { m_bucketHasBeenSet = true; m_bucket.assign(value); } /** *

The S3 bucket to store the access logs in.

*/ inline AwsCloudFrontDistributionLogging& WithBucket(const Aws::String& value) { SetBucket(value); return *this;} /** *

The S3 bucket to store the access logs in.

*/ inline AwsCloudFrontDistributionLogging& WithBucket(Aws::String&& value) { SetBucket(std::move(value)); return *this;} /** *

The S3 bucket to store the access logs in.

*/ inline AwsCloudFrontDistributionLogging& WithBucket(const char* value) { SetBucket(value); return *this;} /** *

With this field, you can enable or disable the selected distribution.

*/ inline bool GetEnabled() const{ return m_enabled; } /** *

With this field, you can enable or disable the selected distribution.

*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *

With this field, you can enable or disable the selected distribution.

*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *

With this field, you can enable or disable the selected distribution.

*/ inline AwsCloudFrontDistributionLogging& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *

Specifies whether you want CloudFront to include cookies in access logs.

*/ inline bool GetIncludeCookies() const{ return m_includeCookies; } /** *

Specifies whether you want CloudFront to include cookies in access logs.

*/ inline bool IncludeCookiesHasBeenSet() const { return m_includeCookiesHasBeenSet; } /** *

Specifies whether you want CloudFront to include cookies in access logs.

*/ inline void SetIncludeCookies(bool value) { m_includeCookiesHasBeenSet = true; m_includeCookies = value; } /** *

Specifies whether you want CloudFront to include cookies in access logs.

*/ inline AwsCloudFrontDistributionLogging& WithIncludeCookies(bool value) { SetIncludeCookies(value); return *this;} /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline const Aws::String& GetPrefix() const{ return m_prefix; } /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; } /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; } /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); } /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); } /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline AwsCloudFrontDistributionLogging& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;} /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline AwsCloudFrontDistributionLogging& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;} /** *

An optional string that you want CloudFront to use as a prefix to the access * log filenames for this distribution.

*/ inline AwsCloudFrontDistributionLogging& WithPrefix(const char* value) { SetPrefix(value); return *this;} private: Aws::String m_bucket; bool m_bucketHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; bool m_includeCookies; bool m_includeCookiesHasBeenSet = false; Aws::String m_prefix; bool m_prefixHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws