/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace Route53Resolver { namespace Model { /** */ class CreateResolverQueryLogConfigRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API CreateResolverQueryLogConfigRequest(); // 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 "CreateResolverQueryLogConfig"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The name that you want to give the query logging configuration.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name that you want to give the query logging configuration.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name that you want to give the query logging configuration.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name that you want to give the query logging configuration.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name that you want to give the query logging configuration.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name that you want to give the query logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name that you want to give the query logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name that you want to give the query logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& WithName(const char* value) { SetName(value); return *this;} /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline void SetDestinationArn(const Aws::String& value) { m_destinationArnHasBeenSet = true; m_destinationArn = value; } /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline void SetDestinationArn(Aws::String&& value) { m_destinationArnHasBeenSet = true; m_destinationArn = std::move(value); } /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline void SetDestinationArn(const char* value) { m_destinationArnHasBeenSet = true; m_destinationArn.assign(value); } /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline CreateResolverQueryLogConfigRequest& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline CreateResolverQueryLogConfigRequest& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *

The ARN of the resource that you want Resolver to send query logs. You can * send query logs to an S3 bucket, a CloudWatch Logs log group, or a Kinesis Data * Firehose delivery stream. Examples of valid values include the following:

*
  • S3 bucket:

    arn:aws:s3:::examplebucket *

    You can optionally append a file prefix to the end of the ARN.

    * arn:aws:s3:::examplebucket/development/

  • * CloudWatch Logs log group:

    * arn:aws:logs:us-west-1:123456789012:log-group:/mystack-testgroup-12ABC1AB12A1:* *

  • Kinesis Data Firehose delivery stream:

    * arn:aws:kinesis:us-east-2:0123456789:stream/my_stream_name

    *
*/ inline CreateResolverQueryLogConfigRequest& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverQueryLogConfigRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverQueryLogConfigRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline CreateResolverQueryLogConfigRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tag keys and values that you want to associate with the query * logging configuration.

*/ inline CreateResolverQueryLogConfigRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_name; bool m_nameHasBeenSet = false; Aws::String m_destinationArn; bool m_destinationArnHasBeenSet = false; Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws