/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.route53resolver.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.AmazonWebServiceRequest; /** * * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AssociateFirewallRuleGroupRequest extends com.amazonaws.AmazonWebServiceRequest implements Serializable, Cloneable { /** *
* 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.
*
* The unique identifier of the firewall rule group. *
*/ private String firewallRuleGroupId; /** ** The unique identifier of the VPC that you want to associate with the rule group. *
*/ private String vpcId; /** ** 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.
*
* A name that lets you identify the association, to manage and use it. *
*/ private String name; /** *
* 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
.
*
* A list of the tag keys and values that you want to associate with the rule group association. *
*/ private java.util.List
* 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.
*
CreatorRequestId
can be any unique string, for example, a
* date/time stamp.
*/
public void setCreatorRequestId(String creatorRequestId) {
this.creatorRequestId = 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.
*
CreatorRequestId
can be any unique string, for example,
* a date/time stamp.
*/
public String getCreatorRequestId() {
return this.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.
*
CreatorRequestId
can be any unique string, for example, a
* date/time stamp.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssociateFirewallRuleGroupRequest withCreatorRequestId(String creatorRequestId) {
setCreatorRequestId(creatorRequestId);
return this;
}
/**
* * The unique identifier of the firewall rule group. *
* * @param firewallRuleGroupId * The unique identifier of the firewall rule group. */ public void setFirewallRuleGroupId(String firewallRuleGroupId) { this.firewallRuleGroupId = firewallRuleGroupId; } /** ** The unique identifier of the firewall rule group. *
* * @return The unique identifier of the firewall rule group. */ public String getFirewallRuleGroupId() { return this.firewallRuleGroupId; } /** ** The unique identifier of the firewall rule group. *
* * @param firewallRuleGroupId * The unique identifier of the firewall rule group. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateFirewallRuleGroupRequest withFirewallRuleGroupId(String firewallRuleGroupId) { setFirewallRuleGroupId(firewallRuleGroupId); return this; } /** ** The unique identifier of the VPC that you want to associate with the rule group. *
* * @param vpcId * The unique identifier of the VPC that you want to associate with the rule group. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The unique identifier of the VPC that you want to associate with the rule group. *
* * @return The unique identifier of the VPC that you want to associate with the rule group. */ public String getVpcId() { return this.vpcId; } /** ** The unique identifier of the VPC that you want to associate with the rule group. *
* * @param vpcId * The unique identifier of the VPC that you want to associate with the rule group. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateFirewallRuleGroupRequest withVpcId(String vpcId) { setVpcId(vpcId); 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.
*
* 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.
*/
public void setPriority(Integer priority) {
this.priority = 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.
*
* 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.
*/
public Integer getPriority() {
return this.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.
*
* 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.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public AssociateFirewallRuleGroupRequest withPriority(Integer priority) {
setPriority(priority);
return this;
}
/**
*
* A name that lets you identify the association, to manage and use it. *
* * @param name * A name that lets you identify the association, to manage and use it. */ public void setName(String name) { this.name = name; } /** ** A name that lets you identify the association, to manage and use it. *
* * @return A name that lets you identify the association, to manage and use it. */ public String getName() { return this.name; } /** ** A name that lets you identify the association, to manage and use it. *
* * @param name * A name that lets you identify the association, to manage and use it. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateFirewallRuleGroupRequest withName(String name) { setName(name); 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
.
*
DISABLED
.
* @see MutationProtectionStatus
*/
public void setMutationProtection(String mutationProtection) {
this.mutationProtection = 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
.
*
DISABLED
.
* @see MutationProtectionStatus
*/
public String getMutationProtection() {
return this.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
.
*
DISABLED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MutationProtectionStatus
*/
public AssociateFirewallRuleGroupRequest withMutationProtection(String mutationProtection) {
setMutationProtection(mutationProtection);
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
.
*
DISABLED
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see MutationProtectionStatus
*/
public AssociateFirewallRuleGroupRequest withMutationProtection(MutationProtectionStatus mutationProtection) {
this.mutationProtection = mutationProtection.toString();
return this;
}
/**
* * A list of the tag keys and values that you want to associate with the rule group association. *
* * @return A list of the tag keys and values that you want to associate with the rule group association. */ public java.util.List* A list of the tag keys and values that you want to associate with the rule group association. *
* * @param tags * A list of the tag keys and values that you want to associate with the rule group association. */ public void setTags(java.util.Collection* A list of the tag keys and values that you want to associate with the rule group association. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setTags(java.util.Collection)} or {@link #withTags(java.util.Collection)} if you want to override the * existing values. *
* * @param tags * A list of the tag keys and values that you want to associate with the rule group association. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateFirewallRuleGroupRequest withTags(Tag... tags) { if (this.tags == null) { setTags(new java.util.ArrayList* A list of the tag keys and values that you want to associate with the rule group association. *
* * @param tags * A list of the tag keys and values that you want to associate with the rule group association. * @return Returns a reference to this object so that method calls can be chained together. */ public AssociateFirewallRuleGroupRequest withTags(java.util.Collection