/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace GlobalAccelerator { namespace Model { /** */ class UpdateCustomRoutingAcceleratorAttributesRequest : public GlobalAcceleratorRequest { public: AWS_GLOBALACCELERATOR_API UpdateCustomRoutingAcceleratorAttributesRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateCustomRoutingAcceleratorAttributes"; } AWS_GLOBALACCELERATOR_API Aws::String SerializePayload() const override; AWS_GLOBALACCELERATOR_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline const Aws::String& GetAcceleratorArn() const{ return m_acceleratorArn; } /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline bool AcceleratorArnHasBeenSet() const { return m_acceleratorArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline void SetAcceleratorArn(const Aws::String& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = value; } /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline void SetAcceleratorArn(Aws::String&& value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline void SetAcceleratorArn(const char* value) { m_acceleratorArnHasBeenSet = true; m_acceleratorArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithAcceleratorArn(const Aws::String& value) { SetAcceleratorArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithAcceleratorArn(Aws::String&& value) { SetAcceleratorArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the custom routing accelerator to update * attributes for.

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithAcceleratorArn(const char* value) { SetAcceleratorArn(value); return *this;} /** *

Update 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; } /** *

Update 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; } /** *

Update 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; } /** *

Update 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 UpdateCustomRoutingAcceleratorAttributesRequest& 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 UpdateCustomRoutingAcceleratorAttributesRequest& 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 UpdateCustomRoutingAcceleratorAttributesRequest& 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 UpdateCustomRoutingAcceleratorAttributesRequest& WithFlowLogsS3Bucket(const char* value) { SetFlowLogsS3Bucket(value); return *this;} /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline const Aws::String& GetFlowLogsS3Prefix() const{ return m_flowLogsS3Prefix; } /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline bool FlowLogsS3PrefixHasBeenSet() const { return m_flowLogsS3PrefixHasBeenSet; } /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline void SetFlowLogsS3Prefix(const Aws::String& value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix = value; } /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline void SetFlowLogsS3Prefix(Aws::String&& value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix = std::move(value); } /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline void SetFlowLogsS3Prefix(const char* value) { m_flowLogsS3PrefixHasBeenSet = true; m_flowLogsS3Prefix.assign(value); } /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithFlowLogsS3Prefix(const Aws::String& value) { SetFlowLogsS3Prefix(value); return *this;} /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithFlowLogsS3Prefix(Aws::String&& value) { SetFlowLogsS3Prefix(std::move(value)); return *this;} /** *

Update the prefix for the location in the Amazon S3 bucket for the flow logs. * Attribute is required if FlowLogsEnabled is true.

*

If you don’t specify a prefix, the flow logs are stored in the root of the * bucket. If you specify slash (/) for the S3 bucket prefix, the log file bucket * folder structure will include a double slash (//), like the following:

*

DOC-EXAMPLE-BUCKET//AWSLogs/aws_account_id

*/ inline UpdateCustomRoutingAcceleratorAttributesRequest& WithFlowLogsS3Prefix(const char* value) { SetFlowLogsS3Prefix(value); return *this;} private: Aws::String m_acceleratorArn; bool m_acceleratorArnHasBeenSet = false; 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