/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include In the response to an AssociateResolverQueryLogConfig,
* DisassociateResolverQueryLogConfig,
* GetResolverQueryLogConfigAssociation,
* or ListResolverQueryLogConfigAssociations,
* request, a complex type that contains settings for a specified association
* between an Amazon VPC and a query logging configuration.See
* Also:
AWS
* API Reference
The ID of the query logging association.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the query logging association.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the query logging association.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the query logging association.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the query logging association.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the query logging association.
*/ inline ResolverQueryLogConfigAssociation& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the query logging association.
*/ inline ResolverQueryLogConfigAssociation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the query logging association.
*/ inline ResolverQueryLogConfigAssociation& WithId(const char* value) { SetId(value); return *this;} /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline const Aws::String& GetResolverQueryLogConfigId() const{ return m_resolverQueryLogConfigId; } /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline bool ResolverQueryLogConfigIdHasBeenSet() const { return m_resolverQueryLogConfigIdHasBeenSet; } /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline void SetResolverQueryLogConfigId(const Aws::String& value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId = value; } /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline void SetResolverQueryLogConfigId(Aws::String&& value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId = std::move(value); } /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline void SetResolverQueryLogConfigId(const char* value) { m_resolverQueryLogConfigIdHasBeenSet = true; m_resolverQueryLogConfigId.assign(value); } /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline ResolverQueryLogConfigAssociation& WithResolverQueryLogConfigId(const Aws::String& value) { SetResolverQueryLogConfigId(value); return *this;} /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline ResolverQueryLogConfigAssociation& WithResolverQueryLogConfigId(Aws::String&& value) { SetResolverQueryLogConfigId(std::move(value)); return *this;} /** *The ID of the query logging configuration that a VPC is associated with.
*/ inline ResolverQueryLogConfigAssociation& WithResolverQueryLogConfigId(const char* value) { SetResolverQueryLogConfigId(value); return *this;} /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline const Aws::String& GetResourceId() const{ return m_resourceId; } /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline ResolverQueryLogConfigAssociation& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline ResolverQueryLogConfigAssociation& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} /** *The ID of the Amazon VPC that is associated with the query logging * configuration.
*/ inline ResolverQueryLogConfigAssociation& WithResourceId(const char* value) { SetResourceId(value); return *this;} /** *The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
The status of the specified query logging association. Valid values include * the following:
CREATING
: Resolver is creating an
* association between an Amazon VPC and a query logging configuration.
CREATED
: The association between an Amazon VPC and a query
* logging configuration was successfully created. Resolver is logging queries that
* originate in the specified VPC.
DELETING
:
* Resolver is deleting this query logging association.
* FAILED
: Resolver either couldn't create or couldn't delete the
* query logging association.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
If the value of Status
is FAILED
, the value of
* Error
indicates the cause:
* DESTINATION_NOT_FOUND
: The specified destination (for example, an
* Amazon S3 bucket) was deleted.
ACCESS_DENIED
:
* Permissions don't allow sending logs to the destination.
If
* the value of Status
is a value other than FAILED
,
* Error
is null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
Contains additional information about the error. If the value or
* Error
is null, the value of ErrorMessage
also is
* null.
The date and time that the VPC was associated with the query logging * configuration, in Unix time format and Coordinated Universal Time (UTC).
*/ inline const Aws::String& GetCreationTime() const{ return m_creationTime; } /** *The date and time that the VPC was associated with the query logging * configuration, in Unix time format and Coordinated Universal Time (UTC).
*/ inline bool CreationTimeHasBeenSet() const { return m_creationTimeHasBeenSet; } /** *The date and time that the VPC was associated with the query logging * configuration, 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 VPC was associated with the query logging * configuration, 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 VPC was associated with the query logging * configuration, 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 VPC was associated with the query logging * configuration, in Unix time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfigAssociation& WithCreationTime(const Aws::String& value) { SetCreationTime(value); return *this;} /** *The date and time that the VPC was associated with the query logging * configuration, in Unix time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfigAssociation& WithCreationTime(Aws::String&& value) { SetCreationTime(std::move(value)); return *this;} /** *The date and time that the VPC was associated with the query logging * configuration, in Unix time format and Coordinated Universal Time (UTC).
*/ inline ResolverQueryLogConfigAssociation& WithCreationTime(const char* value) { SetCreationTime(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_resolverQueryLogConfigId; bool m_resolverQueryLogConfigIdHasBeenSet = false; Aws::String m_resourceId; bool m_resourceIdHasBeenSet = false; ResolverQueryLogConfigAssociationStatus m_status; bool m_statusHasBeenSet = false; ResolverQueryLogConfigAssociationError m_error; bool m_errorHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::String m_creationTime; bool m_creationTimeHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws