/** * 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 ListResolverQueryLogConfigAssociationsRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API ListResolverQueryLogConfigAssociationsRequest(); // 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 "ListResolverQueryLogConfigAssociations"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The maximum number of query logging associations that you want to return in * the response to a ListResolverQueryLogConfigAssociations request. * If you don't specify a value for MaxResults, Resolver returns up to * 100 query logging associations.

*/ inline int GetMaxResults() const{ return m_maxResults; } /** *

The maximum number of query logging associations that you want to return in * the response to a ListResolverQueryLogConfigAssociations request. * If you don't specify a value for MaxResults, Resolver returns up to * 100 query logging associations.

*/ inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } /** *

The maximum number of query logging associations that you want to return in * the response to a ListResolverQueryLogConfigAssociations request. * If you don't specify a value for MaxResults, Resolver returns up to * 100 query logging associations.

*/ inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } /** *

The maximum number of query logging associations that you want to return in * the response to a ListResolverQueryLogConfigAssociations request. * If you don't specify a value for MaxResults, Resolver returns up to * 100 query logging associations.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline const Aws::String& GetNextToken() const{ return m_nextToken; } /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} /** *

For the first ListResolverQueryLogConfigAssociations request, * omit this value.

If there are more than MaxResults query * logging associations that match the values that you specify for * Filters, you can submit another * ListResolverQueryLogConfigAssociations request to get the next * group of associations. In the next request, specify the value of * NextToken from the previous response.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline const Aws::Vector& GetFilters() const{ return m_filters; } /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; } /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline void SetFilters(const Aws::Vector& value) { m_filtersHasBeenSet = true; m_filters = value; } /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline void SetFilters(Aws::Vector&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); } /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithFilters(const Aws::Vector& value) { SetFilters(value); return *this;} /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithFilters(Aws::Vector&& value) { SetFilters(std::move(value)); return *this;} /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; } /** *

An optional specification to return a subset of query logging * associations.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same values for * Filters, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline const Aws::String& GetSortBy() const{ return m_sortBy; } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline bool SortByHasBeenSet() const { return m_sortByHasBeenSet; } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline void SetSortBy(const Aws::String& value) { m_sortByHasBeenSet = true; m_sortBy = value; } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline void SetSortBy(Aws::String&& value) { m_sortByHasBeenSet = true; m_sortBy = std::move(value); } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline void SetSortBy(const char* value) { m_sortByHasBeenSet = true; m_sortBy.assign(value); } /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithSortBy(const Aws::String& value) { SetSortBy(value); return *this;} /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithSortBy(Aws::String&& value) { SetSortBy(std::move(value)); return *this;} /** *

The element that you want Resolver to sort query logging associations by. *

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortBy, if any, as in the previous request.

Valid * values include the following elements:

  • * CreationTime: The ID of the query logging association.

  • *
  • 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 Status is a value other than * FAILED, ERROR is null.

  • * Id: The ID of the query logging association

  • * ResolverQueryLogConfigId: The ID of the query logging * configuration

  • ResourceId: The ID of the VPC that * is associated with the query logging configuration

  • * Status: The current status of the configuration. 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. 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.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithSortBy(const char* value) { SetSortBy(value); return *this;} /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline const SortOrder& GetSortOrder() const{ return m_sortOrder; } /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline bool SortOrderHasBeenSet() const { return m_sortOrderHasBeenSet; } /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline void SetSortOrder(const SortOrder& value) { m_sortOrderHasBeenSet = true; m_sortOrder = value; } /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline void SetSortOrder(SortOrder&& value) { m_sortOrderHasBeenSet = true; m_sortOrder = std::move(value); } /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithSortOrder(const SortOrder& value) { SetSortOrder(value); return *this;} /** *

If you specified a value for SortBy, the order that you want * query logging associations to be listed in, ASCENDING or * DESCENDING.

If you submit a second or subsequent * ListResolverQueryLogConfigAssociations request and specify the * NextToken parameter, you must use the same value for * SortOrder, if any, as in the previous request.

*/ inline ListResolverQueryLogConfigAssociationsRequest& WithSortOrder(SortOrder&& value) { SetSortOrder(std::move(value)); return *this;} private: int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; Aws::Vector m_filters; bool m_filtersHasBeenSet = false; Aws::String m_sortBy; bool m_sortByHasBeenSet = false; SortOrder m_sortOrder; bool m_sortOrderHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws