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

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline const Aws::String& GetCreatorRequestId() const{ return m_creatorRequestId; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline bool CreatorRequestIdHasBeenSet() const { return m_creatorRequestIdHasBeenSet; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const Aws::String& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = value; } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(Aws::String&& value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId = std::move(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline void SetCreatorRequestId(const char* value) { m_creatorRequestIdHasBeenSet = true; m_creatorRequestId.assign(value); } /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(const Aws::String& value) { SetCreatorRequestId(value); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(Aws::String&& value) { SetCreatorRequestId(std::move(value)); return *this;} /** *

A unique string that identifies the request and that allows failed requests * to be retried without the risk of running the operation twice. * CreatorRequestId can be any unique string, for example, a date/time * stamp.

*/ inline AssociateFirewallRuleGroupRequest& WithCreatorRequestId(const char* value) { SetCreatorRequestId(value); return *this;} /** *

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the firewall rule group.

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

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline const Aws::String& GetVpcId() const{ return m_vpcId; } /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline bool VpcIdHasBeenSet() const { return m_vpcIdHasBeenSet; } /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline void SetVpcId(const Aws::String& value) { m_vpcIdHasBeenSet = true; m_vpcId = value; } /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline void SetVpcId(Aws::String&& value) { m_vpcIdHasBeenSet = true; m_vpcId = std::move(value); } /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline void SetVpcId(const char* value) { m_vpcIdHasBeenSet = true; m_vpcId.assign(value); } /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline AssociateFirewallRuleGroupRequest& WithVpcId(const Aws::String& value) { SetVpcId(value); return *this;} /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline AssociateFirewallRuleGroupRequest& WithVpcId(Aws::String&& value) { SetVpcId(std::move(value)); return *this;} /** *

The unique identifier of the VPC that you want to associate with the rule * group.

*/ inline AssociateFirewallRuleGroupRequest& WithVpcId(const char* value) { SetVpcId(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 101, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

The allowed values for Priority are between 100 and * 9900.

*/ 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 101, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

The allowed values for Priority are between 100 and * 9900.

*/ 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 101, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

The allowed values for Priority are between 100 and * 9900.

*/ 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 101, 200, and so on. You can * change the priority setting for a rule group association after you create * it.

The allowed values for Priority are between 100 and * 9900.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

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

A name that lets you identify the association, to manage and use it.

*/ inline AssociateFirewallRuleGroupRequest& WithName(const char* value) { SetName(value); return *this;} /** *

If enabled, this setting disallows modification or removal of the * association, to help prevent against accidentally altering DNS firewall * protections. When you create the association, the default setting is * DISABLED.

*/ 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. When you create the association, the default setting is * DISABLED.

*/ 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. When you create the association, the default setting is * DISABLED.

*/ 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. When you create the association, the default setting is * DISABLED.

*/ 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. When you create the association, the default setting is * DISABLED.

*/ inline AssociateFirewallRuleGroupRequest& 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. When you create the association, the default setting is * DISABLED.

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

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline const Aws::Vector& GetTags() const{ return m_tags; } /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; } /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline void SetTags(const Aws::Vector& value) { m_tagsHasBeenSet = true; m_tags = value; } /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline void SetTags(Aws::Vector&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); } /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline AssociateFirewallRuleGroupRequest& WithTags(const Aws::Vector& value) { SetTags(value); return *this;} /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline AssociateFirewallRuleGroupRequest& WithTags(Aws::Vector&& value) { SetTags(std::move(value)); return *this;} /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline AssociateFirewallRuleGroupRequest& AddTags(const Tag& value) { m_tagsHasBeenSet = true; m_tags.push_back(value); return *this; } /** *

A list of the tag keys and values that you want to associate with the rule * group association.

*/ inline AssociateFirewallRuleGroupRequest& AddTags(Tag&& value) { m_tagsHasBeenSet = true; m_tags.push_back(std::move(value)); return *this; } private: Aws::String m_creatorRequestId; bool m_creatorRequestIdHasBeenSet = false; Aws::String m_firewallRuleGroupId; bool m_firewallRuleGroupIdHasBeenSet = false; Aws::String m_vpcId; bool m_vpcIdHasBeenSet = false; int m_priority; bool m_priorityHasBeenSet = false; Aws::String m_name; bool m_nameHasBeenSet = false; MutationProtectionStatus m_mutationProtection; bool m_mutationProtectionHasBeenSet = false; Aws::Vector m_tags; bool m_tagsHasBeenSet = false; }; } // namespace Model } // namespace Route53Resolver } // namespace Aws