/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In the response to a CreateResolverQueryLogConfig,
* DeleteResolverQueryLogConfig,
* GetResolverQueryLogConfig,
* or ListResolverQueryLogConfigs
* request, a complex type that contains settings for one query logging
* configuration.See Also:
AWS
* API Reference
The ID for the query logging configuration.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID for the query logging configuration.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID for the query logging configuration.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID for the query logging configuration.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID for the query logging configuration.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithId(const char* value) { SetId(value); return *this;} /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline const Aws::String& GetOwnerId() const{ return m_ownerId; } /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; } /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; } /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); } /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); } /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline ResolverQueryLogConfig& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;} /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline ResolverQueryLogConfig& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;} /** *The Amazon Web Services account ID for the account that created the query * logging configuration.
*/ inline ResolverQueryLogConfig& WithOwnerId(const char* value) { SetOwnerId(value); return *this;} /** *The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
The status of the specified query logging configuration. Valid values include * the following:
CREATING
: Resolver is creating the
* query logging configuration.
CREATED
: The query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging configuration.
* FAILED
: Resolver can't deliver logs to the location that is
* specified in the query logging configuration. Here are two common causes:
The specified destination (for example, an Amazon S3 bucket) was * deleted.
Permissions don't allow sending logs to the * destination.
An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline const ShareStatus& GetShareStatus() const{ return m_shareStatus; } /** *An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline bool ShareStatusHasBeenSet() const { return m_shareStatusHasBeenSet; } /** *An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline void SetShareStatus(const ShareStatus& value) { m_shareStatusHasBeenSet = true; m_shareStatus = value; } /** *An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline void SetShareStatus(ShareStatus&& value) { m_shareStatusHasBeenSet = true; m_shareStatus = std::move(value); } /** *An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline ResolverQueryLogConfig& WithShareStatus(const ShareStatus& value) { SetShareStatus(value); return *this;} /** *An indication of whether the query logging configuration is shared with other * Amazon Web Services accounts, or was shared with the current account by another * Amazon Web Services account. Sharing is configured through Resource Access * Manager (RAM).
*/ inline ResolverQueryLogConfig& WithShareStatus(ShareStatus&& value) { SetShareStatus(std::move(value)); return *this;} /** *The number of VPCs that are associated with the query logging * configuration.
*/ inline int GetAssociationCount() const{ return m_associationCount; } /** *The number of VPCs that are associated with the query logging * configuration.
*/ inline bool AssociationCountHasBeenSet() const { return m_associationCountHasBeenSet; } /** *The number of VPCs that are associated with the query logging * configuration.
*/ inline void SetAssociationCount(int value) { m_associationCountHasBeenSet = true; m_associationCount = value; } /** *The number of VPCs that are associated with the query logging * configuration.
*/ inline ResolverQueryLogConfig& WithAssociationCount(int value) { SetAssociationCount(value); return *this;} /** *The ARN for the query logging configuration.
*/ inline const Aws::String& GetArn() const{ return m_arn; } /** *The ARN for the query logging configuration.
*/ inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } /** *The ARN for the query logging configuration.
*/ inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } /** *The ARN for the query logging configuration.
*/ inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } /** *The ARN for the query logging configuration.
*/ inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } /** *The ARN for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithArn(const Aws::String& value) { SetArn(value); return *this;} /** *The ARN for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} /** *The ARN for the query logging configuration.
*/ inline ResolverQueryLogConfig& WithArn(const char* value) { SetArn(value); return *this;} /** *The name of the query logging configuration.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of the query logging configuration.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of the query logging configuration.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of the query logging configuration.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of the query logging configuration.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of the query logging configuration.
*/ inline ResolverQueryLogConfig& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of the query logging configuration.
*/ inline ResolverQueryLogConfig& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of the query logging configuration.
*/ inline ResolverQueryLogConfig& WithName(const char* value) { SetName(value); return *this;} /** *The ARN of the resource that you want Resolver to send query logs: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ inline const Aws::String& GetDestinationArn() const{ return m_destinationArn; } /** *The ARN of the resource that you want Resolver to send query logs: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ inline bool DestinationArnHasBeenSet() const { return m_destinationArnHasBeenSet; } /** *The ARN of the resource that you want Resolver to send query logs: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ 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: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ 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: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ 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: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ inline ResolverQueryLogConfig& WithDestinationArn(const Aws::String& value) { SetDestinationArn(value); return *this;} /** *The ARN of the resource that you want Resolver to send query logs: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ inline ResolverQueryLogConfig& WithDestinationArn(Aws::String&& value) { SetDestinationArn(std::move(value)); return *this;} /** *The ARN of the resource that you want Resolver to send query logs: an Amazon * S3 bucket, a CloudWatch Logs log group, or a Kinesis Data Firehose delivery * stream.
*/ inline ResolverQueryLogConfig& WithDestinationArn(const char* value) { SetDestinationArn(value); return *this;} /** *A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
A unique string that identifies the request that created the query logging
* configuration. The CreatorRequestId
allows failed requests to be
* retried without the risk of running the operation twice.
The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(const Aws::String& value) { m_creationTimeHasBeenSet = true; m_creationTime = value; } /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(Aws::String&& value) { m_creationTimeHasBeenSet = true; m_creationTime = std::move(value); } /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline void SetCreationTime(const char* value) { m_creationTimeHasBeenSet = true; m_creationTime.assign(value); } /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfig& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfig& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time that the query logging configuration was created, in Unix * time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfig& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_ownerId; bool m_ownerIdHasBeenSet = false; ResolverQueryLogConfigStatus m_status; bool m_statusHasBeenSet = false; ShareStatus m_shareStatus; bool m_shareStatusHasBeenSet = false; int m_associationCount; bool m_associationCountHasBeenSet = false; Aws::String m_arn; bool m_arnHasBeenSet = false; 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::String m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws