/* * 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.fms.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* A rule group that Firewall Manager tried to associate with a VPC has the same priority as a rule group that's already * associated. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class DnsRuleGroupPriorityConflictViolation implements Serializable, Cloneable, StructuredPojo { /** ** Information about the VPC ID. *
*/ private String violationTarget; /** ** A description of the violation that specifies the VPC and the rule group that's already associated with it. *
*/ private String violationTargetDescription; /** ** The priority setting of the two conflicting rule groups. *
*/ private Integer conflictingPriority; /** ** The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy contains the * rule group that's already associated with the VPC. *
*/ private String conflictingPolicyId; /** ** The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority * settings that aren't in this list for the rule groups in your new DNS Firewall policy. *
*/ private java.util.List* Information about the VPC ID. *
* * @param violationTarget * Information about the VPC ID. */ public void setViolationTarget(String violationTarget) { this.violationTarget = violationTarget; } /** ** Information about the VPC ID. *
* * @return Information about the VPC ID. */ public String getViolationTarget() { return this.violationTarget; } /** ** Information about the VPC ID. *
* * @param violationTarget * Information about the VPC ID. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withViolationTarget(String violationTarget) { setViolationTarget(violationTarget); return this; } /** ** A description of the violation that specifies the VPC and the rule group that's already associated with it. *
* * @param violationTargetDescription * A description of the violation that specifies the VPC and the rule group that's already associated with * it. */ public void setViolationTargetDescription(String violationTargetDescription) { this.violationTargetDescription = violationTargetDescription; } /** ** A description of the violation that specifies the VPC and the rule group that's already associated with it. *
* * @return A description of the violation that specifies the VPC and the rule group that's already associated with * it. */ public String getViolationTargetDescription() { return this.violationTargetDescription; } /** ** A description of the violation that specifies the VPC and the rule group that's already associated with it. *
* * @param violationTargetDescription * A description of the violation that specifies the VPC and the rule group that's already associated with * it. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withViolationTargetDescription(String violationTargetDescription) { setViolationTargetDescription(violationTargetDescription); return this; } /** ** The priority setting of the two conflicting rule groups. *
* * @param conflictingPriority * The priority setting of the two conflicting rule groups. */ public void setConflictingPriority(Integer conflictingPriority) { this.conflictingPriority = conflictingPriority; } /** ** The priority setting of the two conflicting rule groups. *
* * @return The priority setting of the two conflicting rule groups. */ public Integer getConflictingPriority() { return this.conflictingPriority; } /** ** The priority setting of the two conflicting rule groups. *
* * @param conflictingPriority * The priority setting of the two conflicting rule groups. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withConflictingPriority(Integer conflictingPriority) { setConflictingPriority(conflictingPriority); return this; } /** ** The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy contains the * rule group that's already associated with the VPC. *
* * @param conflictingPolicyId * The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy * contains the rule group that's already associated with the VPC. */ public void setConflictingPolicyId(String conflictingPolicyId) { this.conflictingPolicyId = conflictingPolicyId; } /** ** The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy contains the * rule group that's already associated with the VPC. *
* * @return The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy * contains the rule group that's already associated with the VPC. */ public String getConflictingPolicyId() { return this.conflictingPolicyId; } /** ** The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy contains the * rule group that's already associated with the VPC. *
* * @param conflictingPolicyId * The ID of the Firewall Manager DNS Firewall policy that was already applied to the VPC. This policy * contains the rule group that's already associated with the VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withConflictingPolicyId(String conflictingPolicyId) { setConflictingPolicyId(conflictingPolicyId); return this; } /** ** The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority * settings that aren't in this list for the rule groups in your new DNS Firewall policy. *
* * @return The priorities of rule groups that are already associated with the VPC. To retry your operation, choose * priority settings that aren't in this list for the rule groups in your new DNS Firewall policy. */ public java.util.List* The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority * settings that aren't in this list for the rule groups in your new DNS Firewall policy. *
* * @param unavailablePriorities * The priorities of rule groups that are already associated with the VPC. To retry your operation, choose * priority settings that aren't in this list for the rule groups in your new DNS Firewall policy. */ public void setUnavailablePriorities(java.util.Collection* The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority * settings that aren't in this list for the rule groups in your new DNS Firewall policy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setUnavailablePriorities(java.util.Collection)} or * {@link #withUnavailablePriorities(java.util.Collection)} if you want to override the existing values. *
* * @param unavailablePriorities * The priorities of rule groups that are already associated with the VPC. To retry your operation, choose * priority settings that aren't in this list for the rule groups in your new DNS Firewall policy. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withUnavailablePriorities(Integer... unavailablePriorities) { if (this.unavailablePriorities == null) { setUnavailablePriorities(new java.util.ArrayList* The priorities of rule groups that are already associated with the VPC. To retry your operation, choose priority * settings that aren't in this list for the rule groups in your new DNS Firewall policy. *
* * @param unavailablePriorities * The priorities of rule groups that are already associated with the VPC. To retry your operation, choose * priority settings that aren't in this list for the rule groups in your new DNS Firewall policy. * @return Returns a reference to this object so that method calls can be chained together. */ public DnsRuleGroupPriorityConflictViolation withUnavailablePriorities(java.util.Collection