/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace Route53Resolver { namespace Model { /** *

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

*/ class ResolverQueryLogConfigAssociation { public: AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation(); AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API ResolverQueryLogConfigAssociation& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

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.

*/ inline const ResolverQueryLogConfigAssociationStatus& GetStatus() const{ return m_status; } /** *

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.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

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.

*/ inline void SetStatus(const ResolverQueryLogConfigAssociationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *

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.

*/ inline void SetStatus(ResolverQueryLogConfigAssociationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

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.

*/ inline ResolverQueryLogConfigAssociation& WithStatus(const ResolverQueryLogConfigAssociationStatus& value) { SetStatus(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.

*/ inline ResolverQueryLogConfigAssociation& WithStatus(ResolverQueryLogConfigAssociationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *

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.

*/ inline const ResolverQueryLogConfigAssociationError& GetError() const{ return m_error; } /** *

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.

*/ inline bool ErrorHasBeenSet() const { return m_errorHasBeenSet; } /** *

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.

*/ inline void SetError(const ResolverQueryLogConfigAssociationError& value) { m_errorHasBeenSet = true; m_error = value; } /** *

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.

*/ inline void SetError(ResolverQueryLogConfigAssociationError&& value) { m_errorHasBeenSet = true; m_error = std::move(value); } /** *

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.

*/ inline ResolverQueryLogConfigAssociation& WithError(const ResolverQueryLogConfigAssociationError& value) { SetError(value); return *this;} /** *

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.

*/ inline ResolverQueryLogConfigAssociation& WithError(ResolverQueryLogConfigAssociationError&& value) { SetError(std::move(value)); return *this;} /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline ResolverQueryLogConfigAssociation& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline ResolverQueryLogConfigAssociation& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *

Contains additional information about the error. If the value or * Error is null, the value of ErrorMessage also is * null.

*/ inline ResolverQueryLogConfigAssociation& WithErrorMessage(const char* value) { SetErrorMessage(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 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