/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Contains information about the access log configuration for the load
* balancer.See Also:
AWS
* API Reference
The interval in minutes for publishing the access logs.
You can * publish access logs either every 5 minutes or every 60 minutes.
*/ inline int GetEmitInterval() const{ return m_emitInterval; } /** *The interval in minutes for publishing the access logs.
You can * publish access logs either every 5 minutes or every 60 minutes.
*/ inline bool EmitIntervalHasBeenSet() const { return m_emitIntervalHasBeenSet; } /** *The interval in minutes for publishing the access logs.
You can * publish access logs either every 5 minutes or every 60 minutes.
*/ inline void SetEmitInterval(int value) { m_emitIntervalHasBeenSet = true; m_emitInterval = value; } /** *The interval in minutes for publishing the access logs.
You can * publish access logs either every 5 minutes or every 60 minutes.
*/ inline AwsElbLoadBalancerAccessLog& WithEmitInterval(int value) { SetEmitInterval(value); return *this;} /** *Indicates whether access logs are enabled for the load balancer.
*/ inline bool GetEnabled() const{ return m_enabled; } /** *Indicates whether access logs are enabled for the load balancer.
*/ inline bool EnabledHasBeenSet() const { return m_enabledHasBeenSet; } /** *Indicates whether access logs are enabled for the load balancer.
*/ inline void SetEnabled(bool value) { m_enabledHasBeenSet = true; m_enabled = value; } /** *Indicates whether access logs are enabled for the load balancer.
*/ inline AwsElbLoadBalancerAccessLog& WithEnabled(bool value) { SetEnabled(value); return *this;} /** *The name of the S3 bucket where the access logs are stored.
*/ inline const Aws::String& GetS3BucketName() const{ return m_s3BucketName; } /** *The name of the S3 bucket where the access logs are stored.
*/ inline bool S3BucketNameHasBeenSet() const { return m_s3BucketNameHasBeenSet; } /** *The name of the S3 bucket where the access logs are stored.
*/ inline void SetS3BucketName(const Aws::String& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = value; } /** *The name of the S3 bucket where the access logs are stored.
*/ inline void SetS3BucketName(Aws::String&& value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName = std::move(value); } /** *The name of the S3 bucket where the access logs are stored.
*/ inline void SetS3BucketName(const char* value) { m_s3BucketNameHasBeenSet = true; m_s3BucketName.assign(value); } /** *The name of the S3 bucket where the access logs are stored.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketName(const Aws::String& value) { SetS3BucketName(value); return *this;} /** *The name of the S3 bucket where the access logs are stored.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketName(Aws::String&& value) { SetS3BucketName(std::move(value)); return *this;} /** *The name of the S3 bucket where the access logs are stored.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketName(const char* value) { SetS3BucketName(value); return *this;} /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline const Aws::String& GetS3BucketPrefix() const{ return m_s3BucketPrefix; } /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline bool S3BucketPrefixHasBeenSet() const { return m_s3BucketPrefixHasBeenSet; } /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline void SetS3BucketPrefix(const Aws::String& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = value; } /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline void SetS3BucketPrefix(Aws::String&& value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix = std::move(value); } /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline void SetS3BucketPrefix(const char* value) { m_s3BucketPrefixHasBeenSet = true; m_s3BucketPrefix.assign(value); } /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketPrefix(const Aws::String& value) { SetS3BucketPrefix(value); return *this;} /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketPrefix(Aws::String&& value) { SetS3BucketPrefix(std::move(value)); return *this;} /** *The logical hierarchy that was created for the S3 bucket.
If a prefix * is not provided, the log is placed at the root level of the bucket.
*/ inline AwsElbLoadBalancerAccessLog& WithS3BucketPrefix(const char* value) { SetS3BucketPrefix(value); return *this;} private: int m_emitInterval; bool m_emitIntervalHasBeenSet = false; bool m_enabled; bool m_enabledHasBeenSet = false; Aws::String m_s3BucketName; bool m_s3BucketNameHasBeenSet = false; Aws::String m_s3BucketPrefix; bool m_s3BucketPrefixHasBeenSet = false; }; } // namespace Model } // namespace SecurityHub } // namespace Aws