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

The identifier of the FirewallRuleGroupAssociation.

*/ inline const Aws::String& GetFirewallRuleGroupAssociationId() const{ return m_firewallRuleGroupAssociationId; } /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline bool FirewallRuleGroupAssociationIdHasBeenSet() const { return m_firewallRuleGroupAssociationIdHasBeenSet; } /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline void SetFirewallRuleGroupAssociationId(const Aws::String& value) { m_firewallRuleGroupAssociationIdHasBeenSet = true; m_firewallRuleGroupAssociationId = value; } /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline void SetFirewallRuleGroupAssociationId(Aws::String&& value) { m_firewallRuleGroupAssociationIdHasBeenSet = true; m_firewallRuleGroupAssociationId = std::move(value); } /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline void SetFirewallRuleGroupAssociationId(const char* value) { m_firewallRuleGroupAssociationIdHasBeenSet = true; m_firewallRuleGroupAssociationId.assign(value); } /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithFirewallRuleGroupAssociationId(const Aws::String& value) { SetFirewallRuleGroupAssociationId(value); return *this;} /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithFirewallRuleGroupAssociationId(Aws::String&& value) { SetFirewallRuleGroupAssociationId(std::move(value)); return *this;} /** *

The identifier of the FirewallRuleGroupAssociation.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithFirewallRuleGroupAssociationId(const char* value) { SetFirewallRuleGroupAssociationId(value); return *this;} /** *

The setting that determines the processing order of the rule group among the * rule groups that you associate with the specified VPC. DNS Firewall filters VPC * traffic starting from the rule group with the lowest numeric priority setting. *

You must specify a unique priority for each rule group that you * associate with a single VPC. To make it easier to insert rule groups later, * leave space between the numbers, for example, use 100, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

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

The setting that determines the processing order of the rule group among the * rule groups that you associate with the specified VPC. DNS Firewall filters VPC * traffic starting from the rule group with the lowest numeric priority setting. *

You must specify a unique priority for each rule group that you * associate with a single VPC. To make it easier to insert rule groups later, * leave space between the numbers, for example, use 100, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

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

The setting that determines the processing order of the rule group among the * rule groups that you associate with the specified VPC. DNS Firewall filters VPC * traffic starting from the rule group with the lowest numeric priority setting. *

You must specify a unique priority for each rule group that you * associate with a single VPC. To make it easier to insert rule groups later, * leave space between the numbers, for example, use 100, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

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

The setting that determines the processing order of the rule group among the * rule groups that you associate with the specified VPC. DNS Firewall filters VPC * traffic starting from the rule group with the lowest numeric priority setting. *

You must specify a unique priority for each rule group that you * associate with a single VPC. To make it easier to insert rule groups later, * leave space between the numbers, for example, use 100, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

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

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline const MutationProtectionStatus& GetMutationProtection() const{ return m_mutationProtection; } /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline bool MutationProtectionHasBeenSet() const { return m_mutationProtectionHasBeenSet; } /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline void SetMutationProtection(const MutationProtectionStatus& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = value; } /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline void SetMutationProtection(MutationProtectionStatus&& value) { m_mutationProtectionHasBeenSet = true; m_mutationProtection = std::move(value); } /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithMutationProtection(const MutationProtectionStatus& value) { SetMutationProtection(value); return *this;} /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithMutationProtection(MutationProtectionStatus&& value) { SetMutationProtection(std::move(value)); return *this;} /** *

The name of the rule group association.

*/ inline const Aws::String& GetName() const{ return m_name; } /** *

The name of the rule group association.

*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *

The name of the rule group association.

*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *

The name of the rule group association.

*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *

The name of the rule group association.

*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *

The name of the rule group association.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithName(const Aws::String& value) { SetName(value); return *this;} /** *

The name of the rule group association.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *

The name of the rule group association.

*/ inline UpdateFirewallRuleGroupAssociationRequest& WithName(const char* value) { SetName(value); return *this;} private: Aws::String m_firewallRuleGroupAssociationId; bool m_firewallRuleGroupAssociationIdHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; MutationProtectionStatus m_mutationProtection; bool m_mutationProtectionHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws