/** * 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 Route53Resolver { namespace Model { /** */ class ListFirewallRulesRequest : public Route53ResolverRequest { public: AWS_ROUTE53RESOLVER_API ListFirewallRulesRequest(); // 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 "ListFirewallRules"; } AWS_ROUTE53RESOLVER_API Aws::String SerializePayload() const override; AWS_ROUTE53RESOLVER_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline const Aws::String& GetFirewallRuleGroupId() const{ return m_firewallRuleGroupId; } /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline bool FirewallRuleGroupIdHasBeenSet() const { return m_firewallRuleGroupIdHasBeenSet; } /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline void SetFirewallRuleGroupId(const Aws::String& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = value; } /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline void SetFirewallRuleGroupId(Aws::String&& value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId = std::move(value); } /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline void SetFirewallRuleGroupId(const char* value) { m_firewallRuleGroupIdHasBeenSet = true; m_firewallRuleGroupId.assign(value); } /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline ListFirewallRulesRequest& WithFirewallRuleGroupId(const Aws::String& value) { SetFirewallRuleGroupId(value); return *this;} /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline ListFirewallRulesRequest& WithFirewallRuleGroupId(Aws::String&& value) { SetFirewallRuleGroupId(std::move(value)); return *this;} /** *

The unique identifier of the firewall rule group that you want to retrieve * the rules for.

*/ inline ListFirewallRulesRequest& WithFirewallRuleGroupId(const char* value) { SetFirewallRuleGroupId(value); return *this;} /** *

Optional additional filter for the rules to retrieve.

The setting that * determines the processing order of the rules in a rule group. DNS Firewall * processes the rules in a rule group by order of priority, starting from the * lowest setting.

*/ inline int GetPriority() const{ return m_priority; } /** *

Optional additional filter for the rules to retrieve.

The setting that * determines the processing order of the rules in a rule group. DNS Firewall * processes the rules in a rule group by order of priority, starting from the * lowest setting.

*/ inline bool PriorityHasBeenSet() const { return m_priorityHasBeenSet; } /** *

Optional additional filter for the rules to retrieve.

The setting that * determines the processing order of the rules in a rule group. DNS Firewall * processes the rules in a rule group by order of priority, starting from the * lowest setting.

*/ inline void SetPriority(int value) { m_priorityHasBeenSet = true; m_priority = value; } /** *

Optional additional filter for the rules to retrieve.

The setting that * determines the processing order of the rules in a rule group. DNS Firewall * processes the rules in a rule group by order of priority, starting from the * lowest setting.

*/ inline ListFirewallRulesRequest& WithPriority(int value) { SetPriority(value); return *this;} /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline const Action& GetAction() const{ return m_action; } /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline bool ActionHasBeenSet() const { return m_actionHasBeenSet; } /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline void SetAction(const Action& value) { m_actionHasBeenSet = true; m_action = value; } /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline void SetAction(Action&& value) { m_actionHasBeenSet = true; m_action = std::move(value); } /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline ListFirewallRulesRequest& WithAction(const Action& value) { SetAction(value); return *this;} /** *

Optional additional filter for the rules to retrieve.

The action that * DNS Firewall should take on a DNS query when it matches one of the domains in * the rule's domain list:

  • ALLOW - Permit the * request to go through.

  • ALERT - Permit the * request to go through but send an alert to the logs.

  • * BLOCK - Disallow the request. If this is specified, additional * handling details are provided in the rule's BlockResponse setting. *

*/ inline ListFirewallRulesRequest& WithAction(Action&& value) { SetAction(std::move(value)); return *this;} /** *

The maximum number of objects that you want Resolver to return for this * request. If more objects are available, in the response, Resolver provides a * NextToken value that you can use in a subsequent call to get the * next batch of objects.

If you don't specify a value for * MaxResults, Resolver returns up to 100 objects.

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

The maximum number of objects that you want Resolver to return for this * request. If more objects are available, in the response, Resolver provides a * NextToken value that you can use in a subsequent call to get the * next batch of objects.

If you don't specify a value for * MaxResults, Resolver returns up to 100 objects.

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

The maximum number of objects that you want Resolver to return for this * request. If more objects are available, in the response, Resolver provides a * NextToken value that you can use in a subsequent call to get the * next batch of objects.

If you don't specify a value for * MaxResults, Resolver returns up to 100 objects.

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

The maximum number of objects that you want Resolver to return for this * request. If more objects are available, in the response, Resolver provides a * NextToken value that you can use in a subsequent call to get the * next batch of objects.

If you don't specify a value for * MaxResults, Resolver returns up to 100 objects.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

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

For the first call to this list request, omit this value.

When you * request a list of objects, Resolver returns at most the number of objects * specified in MaxResults. If more objects are available for * retrieval, Resolver returns a NextToken value in the response. To * retrieve the next batch of objects, use the token that was returned for the * prior request in your next request.

*/ inline ListFirewallRulesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} private: Aws::String m_firewallRuleGroupId; bool m_firewallRuleGroupIdHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; Action m_action; bool m_actionHasBeenSet = false; int m_maxResults; bool m_maxResultsHasBeenSet = false; Aws::String m_nextToken; bool m_nextTokenHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws