/** * 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 GlobalAccelerator { namespace Model { /** *

Attributes of an accelerator.

See Also:

AWS * API Reference

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

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.

*/ inline const Aws::String& GetFlowLogsS3Bucket() const{ return m_flowLogsS3Bucket; } /** *

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.

*/ inline bool FlowLogsS3BucketHasBeenSet() const { return m_flowLogsS3BucketHasBeenSet; } /** *

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.

*/ inline void SetFlowLogsS3Bucket(const Aws::String& value) { m_flowLogsS3BucketHasBeenSet = true; m_flowLogsS3Bucket = value; } /** *

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.

*/ inline void SetFlowLogsS3Bucket(Aws::String&& value) { m_flowLogsS3BucketHasBeenSet = true; m_flowLogsS3Bucket = std::move(value); } /** *

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.

*/ inline void SetFlowLogsS3Bucket(const char* value) { m_flowLogsS3BucketHasBeenSet = true; m_flowLogsS3Bucket.assign(value); } /** *

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.

*/ inline AcceleratorAttributes& WithFlowLogsS3Bucket(const Aws::String& value) { SetFlowLogsS3Bucket(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.

*/ inline AcceleratorAttributes& WithFlowLogsS3Bucket(Aws::String&& value) { SetFlowLogsS3Bucket(std::move(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.

*/ inline AcceleratorAttributes& WithFlowLogsS3Bucket(const char* value) { SetFlowLogsS3Bucket(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 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