/** * 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 Route53 { namespace Model { /** */ class AWS_ROUTE53_API CreateQueryLoggingConfigRequest : public Route53Request { public: CreateQueryLoggingConfigRequest(); // 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 "CreateQueryLoggingConfig"; } Aws::String SerializePayload() const override; /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline const Aws::String& GetHostedZoneId() const{ return m_hostedZoneId; } /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline bool HostedZoneIdHasBeenSet() const { return m_hostedZoneIdHasBeenSet; } /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline void SetHostedZoneId(const Aws::String& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = value; } /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline void SetHostedZoneId(Aws::String&& value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId = std::move(value); } /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline void SetHostedZoneId(const char* value) { m_hostedZoneIdHasBeenSet = true; m_hostedZoneId.assign(value); } /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline CreateQueryLoggingConfigRequest& WithHostedZoneId(const Aws::String& value) { SetHostedZoneId(value); return *this;} /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline CreateQueryLoggingConfigRequest& WithHostedZoneId(Aws::String&& value) { SetHostedZoneId(std::move(value)); return *this;} /** *

The ID of the hosted zone that you want to log queries for. You can log * queries only for public hosted zones.

*/ inline CreateQueryLoggingConfigRequest& WithHostedZoneId(const char* value) { SetHostedZoneId(value); return *this;} /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline const Aws::String& GetCloudWatchLogsLogGroupArn() const{ return m_cloudWatchLogsLogGroupArn; } /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline bool CloudWatchLogsLogGroupArnHasBeenSet() const { return m_cloudWatchLogsLogGroupArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline void SetCloudWatchLogsLogGroupArn(const Aws::String& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = value; } /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline void SetCloudWatchLogsLogGroupArn(Aws::String&& value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn = std::move(value); } /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline void SetCloudWatchLogsLogGroupArn(const char* value) { m_cloudWatchLogsLogGroupArnHasBeenSet = true; m_cloudWatchLogsLogGroupArn.assign(value); } /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline CreateQueryLoggingConfigRequest& WithCloudWatchLogsLogGroupArn(const Aws::String& value) { SetCloudWatchLogsLogGroupArn(value); return *this;} /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline CreateQueryLoggingConfigRequest& WithCloudWatchLogsLogGroupArn(Aws::String&& value) { SetCloudWatchLogsLogGroupArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) for the log group that you want to Amazon * Route 53 to send query logs to. This is the format of the ARN:

*

arn:aws:logs:region:account-id:log-group:log_group_name *

To get the ARN for a log group, you can use the CloudWatch console, the * DescribeLogGroups * API action, the describe-log-groups * command, or the applicable command in one of the AWS SDKs.

*/ inline CreateQueryLoggingConfigRequest& WithCloudWatchLogsLogGroupArn(const char* value) { SetCloudWatchLogsLogGroupArn(value); return *this;} private: Aws::String m_hostedZoneId; bool m_hostedZoneIdHasBeenSet; Aws::String m_cloudWatchLogsLogGroupArn; bool m_cloudWatchLogsLogGroupArnHasBeenSet; }; } // namespace Model } // namespace Route53 } // namespace Aws