/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Attributes of an accelerator.See Also:
AWS
* API Reference
Indicates whether flow logs are enabled. The default value is false. If the
* value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
* must be specified.
For more information, see Flow * logs in the Global Accelerator Developer Guide.
*/ inline bool GetFlowLogsEnabled() const{ return m_flowLogsEnabled; } /** *Indicates whether flow logs are enabled. The default value is false. If the
* value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
* must be specified.
For more information, see Flow * logs in the Global Accelerator Developer Guide.
*/ inline bool FlowLogsEnabledHasBeenSet() const { return m_flowLogsEnabledHasBeenSet; } /** *Indicates whether flow logs are enabled. The default value is false. If the
* value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
* must be specified.
For more information, see Flow * logs in the Global Accelerator Developer Guide.
*/ inline void SetFlowLogsEnabled(bool value) { m_flowLogsEnabledHasBeenSet = true; m_flowLogsEnabled = value; } /** *Indicates whether flow logs are enabled. The default value is false. If the
* value is true, FlowLogsS3Bucket
and FlowLogsS3Prefix
* must be specified.
For more information, see Flow * logs in the Global Accelerator Developer Guide.
*/ inline AcceleratorAttributes& WithFlowLogsEnabled(bool value) { SetFlowLogsEnabled(value); return *this;} /** *The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The name of the Amazon S3 bucket for the flow logs. Attribute is required if
* FlowLogsEnabled
is true
. The bucket must exist and
* have a bucket policy that grants Global Accelerator permission to write to the
* bucket.
The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline const Aws::String& GetFlowLogsS3Prefix() const{ return m_flowLogsS3Prefix; } /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline bool FlowLogsS3PrefixHasBeenSet() const { return m_flowLogsS3PrefixHasBeenSet; } /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline void SetFlowLogsS3Prefix(const Aws::String& value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix = value; } /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline void SetFlowLogsS3Prefix(Aws::String&& value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix = std::move(value); } /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline void SetFlowLogsS3Prefix(const char* value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix.assign(value); } /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline AcceleratorAttributes& WithFlowLogsS3Prefix(const Aws::String& value) { SetFlowLogsS3Prefix(value); return *this;} /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline AcceleratorAttributes& WithFlowLogsS3Prefix(Aws::String&& value) { SetFlowLogsS3Prefix(std::move(value)); return *this;} /** *The prefix for the location in the Amazon S3 bucket for the flow logs.
* Attribute is required if FlowLogsEnabled
is true
.
If you specify slash (/) for the S3 bucket prefix, the log file bucket folder * structure will include a double slash (//), like the following:
*s3-bucket_name//AWSLogs/aws_account_id
*/ inline AcceleratorAttributes& WithFlowLogsS3Prefix(const char* value) { SetFlowLogsS3Prefix(value); return *this;} private: bool m_flowLogsEnabled; bool m_flowLogsEnabledHasBeenSet = false; Aws::String m_flowLogsS3Bucket; bool m_flowLogsS3BucketHasBeenSet = false; Aws::String m_flowLogsS3Prefix; bool m_flowLogsS3PrefixHasBeenSet = false; }; } // namespace Model } // namespace GlobalAccelerator } // namespace Aws