All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.amazonaws.services.fms.model.ResourceViolation Maven / Gradle / Ivy

Go to download

The AWS Java SDK for Firewall Management module holds the client classes that are used for communicating with Firewall Management Service

There is a newer version: 1.12.780
Show newest version
/*
 * Copyright 2019-2024 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;

/**
 * 

* Violation detail based on resource type. *

* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class ResourceViolation implements Serializable, Cloneable, StructuredPojo { /** *

* Violation detail for security groups. *

*/ private AwsVPCSecurityGroupViolation awsVPCSecurityGroupViolation; /** *

* Violation detail for a network interface. *

*/ private AwsEc2NetworkInterfaceViolation awsEc2NetworkInterfaceViolation; /** *

* Violation detail for an EC2 instance. *

*/ private AwsEc2InstanceViolation awsEc2InstanceViolation; /** *

* Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed * firewall in its VPC. *

*/ private NetworkFirewallMissingFirewallViolation networkFirewallMissingFirewallViolation; /** *

* Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected * Firewall Manager managed subnet. *

*/ private NetworkFirewallMissingSubnetViolation networkFirewallMissingSubnetViolation; /** *

* Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected * Firewall Manager managed route table. *

*/ private NetworkFirewallMissingExpectedRTViolation networkFirewallMissingExpectedRTViolation; /** *

* Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account * has been modified in a way that makes it noncompliant. For example, the individual account owner might have * deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action. *

*/ private NetworkFirewallPolicyModifiedViolation networkFirewallPolicyModifiedViolation; /** *

* Violation detail for the subnet for which internet traffic hasn't been inspected. *

*/ private NetworkFirewallInternetTrafficNotInspectedViolation networkFirewallInternetTrafficNotInspectedViolation; /** *

* The route configuration is invalid. *

*/ private NetworkFirewallInvalidRouteConfigurationViolation networkFirewallInvalidRouteConfigurationViolation; private NetworkFirewallBlackHoleRouteDetectedViolation networkFirewallBlackHoleRouteDetectedViolation; /** *

* There's an unexpected firewall route. *

*/ private NetworkFirewallUnexpectedFirewallRoutesViolation networkFirewallUnexpectedFirewallRoutesViolation; /** *

* There's an unexpected gateway route. *

*/ private NetworkFirewallUnexpectedGatewayRoutesViolation networkFirewallUnexpectedGatewayRoutesViolation; /** *

* Expected routes are missing from Network Firewall. *

*/ private NetworkFirewallMissingExpectedRoutesViolation networkFirewallMissingExpectedRoutesViolation; /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. *

*/ private DnsRuleGroupPriorityConflictViolation dnsRuleGroupPriorityConflictViolation; /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. *

*/ private DnsDuplicateRuleGroupViolation dnsDuplicateRuleGroupViolation; /** *

* Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS * Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. *

*/ private DnsRuleGroupLimitExceededViolation dnsRuleGroupLimitExceededViolation; /** *

* Contains details about the firewall subnet that violates the policy scope. *

*/ private FirewallSubnetIsOutOfScopeViolation firewallSubnetIsOutOfScopeViolation; /** *

* Contains details about the route endpoint that violates the policy scope. *

*/ private RouteHasOutOfScopeEndpointViolation routeHasOutOfScopeEndpointViolation; /** *

* The violation details for a third-party firewall that's been deleted. *

*/ private ThirdPartyFirewallMissingFirewallViolation thirdPartyFirewallMissingFirewallViolation; /** *

* The violation details for a third-party firewall's subnet that's been deleted. *

*/ private ThirdPartyFirewallMissingSubnetViolation thirdPartyFirewallMissingSubnetViolation; /** *

* The violation details for a third-party firewall that has the Firewall Manager managed route table that was * associated with the third-party firewall has been deleted. *

*/ private ThirdPartyFirewallMissingExpectedRouteTableViolation thirdPartyFirewallMissingExpectedRouteTableViolation; /** *

* The violation details for a third-party firewall's VPC endpoint subnet that was deleted. *

*/ private FirewallSubnetMissingVPCEndpointViolation firewallSubnetMissingVPCEndpointViolation; /** *

* Violation detail for the entries in a network ACL resource. *

*/ private InvalidNetworkAclEntriesViolation invalidNetworkAclEntriesViolation; /** *

* A list of possible remediation action lists. Each individual possible remediation action is a list of individual * remediation actions. *

*/ private PossibleRemediationActions possibleRemediationActions; /** *

* Violation detail for security groups. *

* * @param awsVPCSecurityGroupViolation * Violation detail for security groups. */ public void setAwsVPCSecurityGroupViolation(AwsVPCSecurityGroupViolation awsVPCSecurityGroupViolation) { this.awsVPCSecurityGroupViolation = awsVPCSecurityGroupViolation; } /** *

* Violation detail for security groups. *

* * @return Violation detail for security groups. */ public AwsVPCSecurityGroupViolation getAwsVPCSecurityGroupViolation() { return this.awsVPCSecurityGroupViolation; } /** *

* Violation detail for security groups. *

* * @param awsVPCSecurityGroupViolation * Violation detail for security groups. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withAwsVPCSecurityGroupViolation(AwsVPCSecurityGroupViolation awsVPCSecurityGroupViolation) { setAwsVPCSecurityGroupViolation(awsVPCSecurityGroupViolation); return this; } /** *

* Violation detail for a network interface. *

* * @param awsEc2NetworkInterfaceViolation * Violation detail for a network interface. */ public void setAwsEc2NetworkInterfaceViolation(AwsEc2NetworkInterfaceViolation awsEc2NetworkInterfaceViolation) { this.awsEc2NetworkInterfaceViolation = awsEc2NetworkInterfaceViolation; } /** *

* Violation detail for a network interface. *

* * @return Violation detail for a network interface. */ public AwsEc2NetworkInterfaceViolation getAwsEc2NetworkInterfaceViolation() { return this.awsEc2NetworkInterfaceViolation; } /** *

* Violation detail for a network interface. *

* * @param awsEc2NetworkInterfaceViolation * Violation detail for a network interface. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withAwsEc2NetworkInterfaceViolation(AwsEc2NetworkInterfaceViolation awsEc2NetworkInterfaceViolation) { setAwsEc2NetworkInterfaceViolation(awsEc2NetworkInterfaceViolation); return this; } /** *

* Violation detail for an EC2 instance. *

* * @param awsEc2InstanceViolation * Violation detail for an EC2 instance. */ public void setAwsEc2InstanceViolation(AwsEc2InstanceViolation awsEc2InstanceViolation) { this.awsEc2InstanceViolation = awsEc2InstanceViolation; } /** *

* Violation detail for an EC2 instance. *

* * @return Violation detail for an EC2 instance. */ public AwsEc2InstanceViolation getAwsEc2InstanceViolation() { return this.awsEc2InstanceViolation; } /** *

* Violation detail for an EC2 instance. *

* * @param awsEc2InstanceViolation * Violation detail for an EC2 instance. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withAwsEc2InstanceViolation(AwsEc2InstanceViolation awsEc2InstanceViolation) { setAwsEc2InstanceViolation(awsEc2InstanceViolation); return this; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed * firewall in its VPC. *

* * @param networkFirewallMissingFirewallViolation * Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager * managed firewall in its VPC. */ public void setNetworkFirewallMissingFirewallViolation(NetworkFirewallMissingFirewallViolation networkFirewallMissingFirewallViolation) { this.networkFirewallMissingFirewallViolation = networkFirewallMissingFirewallViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed * firewall in its VPC. *

* * @return Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager * managed firewall in its VPC. */ public NetworkFirewallMissingFirewallViolation getNetworkFirewallMissingFirewallViolation() { return this.networkFirewallMissingFirewallViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager managed * firewall in its VPC. *

* * @param networkFirewallMissingFirewallViolation * Violation detail for an Network Firewall policy that indicates that a subnet has no Firewall Manager * managed firewall in its VPC. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallMissingFirewallViolation(NetworkFirewallMissingFirewallViolation networkFirewallMissingFirewallViolation) { setNetworkFirewallMissingFirewallViolation(networkFirewallMissingFirewallViolation); return this; } /** *

* Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected * Firewall Manager managed subnet. *

* * @param networkFirewallMissingSubnetViolation * Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the * expected Firewall Manager managed subnet. */ public void setNetworkFirewallMissingSubnetViolation(NetworkFirewallMissingSubnetViolation networkFirewallMissingSubnetViolation) { this.networkFirewallMissingSubnetViolation = networkFirewallMissingSubnetViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected * Firewall Manager managed subnet. *

* * @return Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the * expected Firewall Manager managed subnet. */ public NetworkFirewallMissingSubnetViolation getNetworkFirewallMissingSubnetViolation() { return this.networkFirewallMissingSubnetViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the expected * Firewall Manager managed subnet. *

* * @param networkFirewallMissingSubnetViolation * Violation detail for an Network Firewall policy that indicates that an Availability Zone is missing the * expected Firewall Manager managed subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallMissingSubnetViolation(NetworkFirewallMissingSubnetViolation networkFirewallMissingSubnetViolation) { setNetworkFirewallMissingSubnetViolation(networkFirewallMissingSubnetViolation); return this; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected * Firewall Manager managed route table. *

* * @param networkFirewallMissingExpectedRTViolation * Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the * expected Firewall Manager managed route table. */ public void setNetworkFirewallMissingExpectedRTViolation(NetworkFirewallMissingExpectedRTViolation networkFirewallMissingExpectedRTViolation) { this.networkFirewallMissingExpectedRTViolation = networkFirewallMissingExpectedRTViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected * Firewall Manager managed route table. *

* * @return Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the * expected Firewall Manager managed route table. */ public NetworkFirewallMissingExpectedRTViolation getNetworkFirewallMissingExpectedRTViolation() { return this.networkFirewallMissingExpectedRTViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the expected * Firewall Manager managed route table. *

* * @param networkFirewallMissingExpectedRTViolation * Violation detail for an Network Firewall policy that indicates that a subnet is not associated with the * expected Firewall Manager managed route table. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallMissingExpectedRTViolation(NetworkFirewallMissingExpectedRTViolation networkFirewallMissingExpectedRTViolation) { setNetworkFirewallMissingExpectedRTViolation(networkFirewallMissingExpectedRTViolation); return this; } /** *

* Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account * has been modified in a way that makes it noncompliant. For example, the individual account owner might have * deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action. *

* * @param networkFirewallPolicyModifiedViolation * Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual * account has been modified in a way that makes it noncompliant. For example, the individual account owner * might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy * default action. */ public void setNetworkFirewallPolicyModifiedViolation(NetworkFirewallPolicyModifiedViolation networkFirewallPolicyModifiedViolation) { this.networkFirewallPolicyModifiedViolation = networkFirewallPolicyModifiedViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account * has been modified in a way that makes it noncompliant. For example, the individual account owner might have * deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action. *

* * @return Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual * account has been modified in a way that makes it noncompliant. For example, the individual account owner * might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy * default action. */ public NetworkFirewallPolicyModifiedViolation getNetworkFirewallPolicyModifiedViolation() { return this.networkFirewallPolicyModifiedViolation; } /** *

* Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual account * has been modified in a way that makes it noncompliant. For example, the individual account owner might have * deleted a rule group, changed the priority of a stateless rule group, or changed a policy default action. *

* * @param networkFirewallPolicyModifiedViolation * Violation detail for an Network Firewall policy that indicates that a firewall policy in an individual * account has been modified in a way that makes it noncompliant. For example, the individual account owner * might have deleted a rule group, changed the priority of a stateless rule group, or changed a policy * default action. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallPolicyModifiedViolation(NetworkFirewallPolicyModifiedViolation networkFirewallPolicyModifiedViolation) { setNetworkFirewallPolicyModifiedViolation(networkFirewallPolicyModifiedViolation); return this; } /** *

* Violation detail for the subnet for which internet traffic hasn't been inspected. *

* * @param networkFirewallInternetTrafficNotInspectedViolation * Violation detail for the subnet for which internet traffic hasn't been inspected. */ public void setNetworkFirewallInternetTrafficNotInspectedViolation( NetworkFirewallInternetTrafficNotInspectedViolation networkFirewallInternetTrafficNotInspectedViolation) { this.networkFirewallInternetTrafficNotInspectedViolation = networkFirewallInternetTrafficNotInspectedViolation; } /** *

* Violation detail for the subnet for which internet traffic hasn't been inspected. *

* * @return Violation detail for the subnet for which internet traffic hasn't been inspected. */ public NetworkFirewallInternetTrafficNotInspectedViolation getNetworkFirewallInternetTrafficNotInspectedViolation() { return this.networkFirewallInternetTrafficNotInspectedViolation; } /** *

* Violation detail for the subnet for which internet traffic hasn't been inspected. *

* * @param networkFirewallInternetTrafficNotInspectedViolation * Violation detail for the subnet for which internet traffic hasn't been inspected. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallInternetTrafficNotInspectedViolation( NetworkFirewallInternetTrafficNotInspectedViolation networkFirewallInternetTrafficNotInspectedViolation) { setNetworkFirewallInternetTrafficNotInspectedViolation(networkFirewallInternetTrafficNotInspectedViolation); return this; } /** *

* The route configuration is invalid. *

* * @param networkFirewallInvalidRouteConfigurationViolation * The route configuration is invalid. */ public void setNetworkFirewallInvalidRouteConfigurationViolation( NetworkFirewallInvalidRouteConfigurationViolation networkFirewallInvalidRouteConfigurationViolation) { this.networkFirewallInvalidRouteConfigurationViolation = networkFirewallInvalidRouteConfigurationViolation; } /** *

* The route configuration is invalid. *

* * @return The route configuration is invalid. */ public NetworkFirewallInvalidRouteConfigurationViolation getNetworkFirewallInvalidRouteConfigurationViolation() { return this.networkFirewallInvalidRouteConfigurationViolation; } /** *

* The route configuration is invalid. *

* * @param networkFirewallInvalidRouteConfigurationViolation * The route configuration is invalid. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallInvalidRouteConfigurationViolation( NetworkFirewallInvalidRouteConfigurationViolation networkFirewallInvalidRouteConfigurationViolation) { setNetworkFirewallInvalidRouteConfigurationViolation(networkFirewallInvalidRouteConfigurationViolation); return this; } /** * @param networkFirewallBlackHoleRouteDetectedViolation */ public void setNetworkFirewallBlackHoleRouteDetectedViolation(NetworkFirewallBlackHoleRouteDetectedViolation networkFirewallBlackHoleRouteDetectedViolation) { this.networkFirewallBlackHoleRouteDetectedViolation = networkFirewallBlackHoleRouteDetectedViolation; } /** * @return */ public NetworkFirewallBlackHoleRouteDetectedViolation getNetworkFirewallBlackHoleRouteDetectedViolation() { return this.networkFirewallBlackHoleRouteDetectedViolation; } /** * @param networkFirewallBlackHoleRouteDetectedViolation * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallBlackHoleRouteDetectedViolation( NetworkFirewallBlackHoleRouteDetectedViolation networkFirewallBlackHoleRouteDetectedViolation) { setNetworkFirewallBlackHoleRouteDetectedViolation(networkFirewallBlackHoleRouteDetectedViolation); return this; } /** *

* There's an unexpected firewall route. *

* * @param networkFirewallUnexpectedFirewallRoutesViolation * There's an unexpected firewall route. */ public void setNetworkFirewallUnexpectedFirewallRoutesViolation( NetworkFirewallUnexpectedFirewallRoutesViolation networkFirewallUnexpectedFirewallRoutesViolation) { this.networkFirewallUnexpectedFirewallRoutesViolation = networkFirewallUnexpectedFirewallRoutesViolation; } /** *

* There's an unexpected firewall route. *

* * @return There's an unexpected firewall route. */ public NetworkFirewallUnexpectedFirewallRoutesViolation getNetworkFirewallUnexpectedFirewallRoutesViolation() { return this.networkFirewallUnexpectedFirewallRoutesViolation; } /** *

* There's an unexpected firewall route. *

* * @param networkFirewallUnexpectedFirewallRoutesViolation * There's an unexpected firewall route. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallUnexpectedFirewallRoutesViolation( NetworkFirewallUnexpectedFirewallRoutesViolation networkFirewallUnexpectedFirewallRoutesViolation) { setNetworkFirewallUnexpectedFirewallRoutesViolation(networkFirewallUnexpectedFirewallRoutesViolation); return this; } /** *

* There's an unexpected gateway route. *

* * @param networkFirewallUnexpectedGatewayRoutesViolation * There's an unexpected gateway route. */ public void setNetworkFirewallUnexpectedGatewayRoutesViolation( NetworkFirewallUnexpectedGatewayRoutesViolation networkFirewallUnexpectedGatewayRoutesViolation) { this.networkFirewallUnexpectedGatewayRoutesViolation = networkFirewallUnexpectedGatewayRoutesViolation; } /** *

* There's an unexpected gateway route. *

* * @return There's an unexpected gateway route. */ public NetworkFirewallUnexpectedGatewayRoutesViolation getNetworkFirewallUnexpectedGatewayRoutesViolation() { return this.networkFirewallUnexpectedGatewayRoutesViolation; } /** *

* There's an unexpected gateway route. *

* * @param networkFirewallUnexpectedGatewayRoutesViolation * There's an unexpected gateway route. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallUnexpectedGatewayRoutesViolation( NetworkFirewallUnexpectedGatewayRoutesViolation networkFirewallUnexpectedGatewayRoutesViolation) { setNetworkFirewallUnexpectedGatewayRoutesViolation(networkFirewallUnexpectedGatewayRoutesViolation); return this; } /** *

* Expected routes are missing from Network Firewall. *

* * @param networkFirewallMissingExpectedRoutesViolation * Expected routes are missing from Network Firewall. */ public void setNetworkFirewallMissingExpectedRoutesViolation(NetworkFirewallMissingExpectedRoutesViolation networkFirewallMissingExpectedRoutesViolation) { this.networkFirewallMissingExpectedRoutesViolation = networkFirewallMissingExpectedRoutesViolation; } /** *

* Expected routes are missing from Network Firewall. *

* * @return Expected routes are missing from Network Firewall. */ public NetworkFirewallMissingExpectedRoutesViolation getNetworkFirewallMissingExpectedRoutesViolation() { return this.networkFirewallMissingExpectedRoutesViolation; } /** *

* Expected routes are missing from Network Firewall. *

* * @param networkFirewallMissingExpectedRoutesViolation * Expected routes are missing from Network Firewall. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withNetworkFirewallMissingExpectedRoutesViolation( NetworkFirewallMissingExpectedRoutesViolation networkFirewallMissingExpectedRoutesViolation) { setNetworkFirewallMissingExpectedRoutesViolation(networkFirewallMissingExpectedRoutesViolation); return this; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. *

* * @param dnsRuleGroupPriorityConflictViolation * Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. */ public void setDnsRuleGroupPriorityConflictViolation(DnsRuleGroupPriorityConflictViolation dnsRuleGroupPriorityConflictViolation) { this.dnsRuleGroupPriorityConflictViolation = dnsRuleGroupPriorityConflictViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. *

* * @return Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried * to associate with a VPC has the same priority as a rule group that's already associated. */ public DnsRuleGroupPriorityConflictViolation getDnsRuleGroupPriorityConflictViolation() { return this.dnsRuleGroupPriorityConflictViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. *

* * @param dnsRuleGroupPriorityConflictViolation * Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC has the same priority as a rule group that's already associated. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withDnsRuleGroupPriorityConflictViolation(DnsRuleGroupPriorityConflictViolation dnsRuleGroupPriorityConflictViolation) { setDnsRuleGroupPriorityConflictViolation(dnsRuleGroupPriorityConflictViolation); return this; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. *

* * @param dnsDuplicateRuleGroupViolation * Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. */ public void setDnsDuplicateRuleGroupViolation(DnsDuplicateRuleGroupViolation dnsDuplicateRuleGroupViolation) { this.dnsDuplicateRuleGroupViolation = dnsDuplicateRuleGroupViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. *

* * @return Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried * to associate with a VPC is already associated with the VPC and can't be associated again. */ public DnsDuplicateRuleGroupViolation getDnsDuplicateRuleGroupViolation() { return this.dnsDuplicateRuleGroupViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. *

* * @param dnsDuplicateRuleGroupViolation * Violation detail for a DNS Firewall policy that indicates that a rule group that Firewall Manager tried to * associate with a VPC is already associated with the VPC and can't be associated again. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withDnsDuplicateRuleGroupViolation(DnsDuplicateRuleGroupViolation dnsDuplicateRuleGroupViolation) { setDnsDuplicateRuleGroupViolation(dnsDuplicateRuleGroupViolation); return this; } /** *

* Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS * Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. *

* * @param dnsRuleGroupLimitExceededViolation * Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated * DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. */ public void setDnsRuleGroupLimitExceededViolation(DnsRuleGroupLimitExceededViolation dnsRuleGroupLimitExceededViolation) { this.dnsRuleGroupLimitExceededViolation = dnsRuleGroupLimitExceededViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS * Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. *

* * @return Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated * DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. */ public DnsRuleGroupLimitExceededViolation getDnsRuleGroupLimitExceededViolation() { return this.dnsRuleGroupLimitExceededViolation; } /** *

* Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated DNS * Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. *

* * @param dnsRuleGroupLimitExceededViolation * Violation detail for a DNS Firewall policy that indicates that the VPC reached the limit for associated * DNS Firewall rule groups. Firewall Manager tried to associate another rule group with the VPC and failed. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withDnsRuleGroupLimitExceededViolation(DnsRuleGroupLimitExceededViolation dnsRuleGroupLimitExceededViolation) { setDnsRuleGroupLimitExceededViolation(dnsRuleGroupLimitExceededViolation); return this; } /** *

* Contains details about the firewall subnet that violates the policy scope. *

* * @param firewallSubnetIsOutOfScopeViolation * Contains details about the firewall subnet that violates the policy scope. */ public void setFirewallSubnetIsOutOfScopeViolation(FirewallSubnetIsOutOfScopeViolation firewallSubnetIsOutOfScopeViolation) { this.firewallSubnetIsOutOfScopeViolation = firewallSubnetIsOutOfScopeViolation; } /** *

* Contains details about the firewall subnet that violates the policy scope. *

* * @return Contains details about the firewall subnet that violates the policy scope. */ public FirewallSubnetIsOutOfScopeViolation getFirewallSubnetIsOutOfScopeViolation() { return this.firewallSubnetIsOutOfScopeViolation; } /** *

* Contains details about the firewall subnet that violates the policy scope. *

* * @param firewallSubnetIsOutOfScopeViolation * Contains details about the firewall subnet that violates the policy scope. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withFirewallSubnetIsOutOfScopeViolation(FirewallSubnetIsOutOfScopeViolation firewallSubnetIsOutOfScopeViolation) { setFirewallSubnetIsOutOfScopeViolation(firewallSubnetIsOutOfScopeViolation); return this; } /** *

* Contains details about the route endpoint that violates the policy scope. *

* * @param routeHasOutOfScopeEndpointViolation * Contains details about the route endpoint that violates the policy scope. */ public void setRouteHasOutOfScopeEndpointViolation(RouteHasOutOfScopeEndpointViolation routeHasOutOfScopeEndpointViolation) { this.routeHasOutOfScopeEndpointViolation = routeHasOutOfScopeEndpointViolation; } /** *

* Contains details about the route endpoint that violates the policy scope. *

* * @return Contains details about the route endpoint that violates the policy scope. */ public RouteHasOutOfScopeEndpointViolation getRouteHasOutOfScopeEndpointViolation() { return this.routeHasOutOfScopeEndpointViolation; } /** *

* Contains details about the route endpoint that violates the policy scope. *

* * @param routeHasOutOfScopeEndpointViolation * Contains details about the route endpoint that violates the policy scope. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withRouteHasOutOfScopeEndpointViolation(RouteHasOutOfScopeEndpointViolation routeHasOutOfScopeEndpointViolation) { setRouteHasOutOfScopeEndpointViolation(routeHasOutOfScopeEndpointViolation); return this; } /** *

* The violation details for a third-party firewall that's been deleted. *

* * @param thirdPartyFirewallMissingFirewallViolation * The violation details for a third-party firewall that's been deleted. */ public void setThirdPartyFirewallMissingFirewallViolation(ThirdPartyFirewallMissingFirewallViolation thirdPartyFirewallMissingFirewallViolation) { this.thirdPartyFirewallMissingFirewallViolation = thirdPartyFirewallMissingFirewallViolation; } /** *

* The violation details for a third-party firewall that's been deleted. *

* * @return The violation details for a third-party firewall that's been deleted. */ public ThirdPartyFirewallMissingFirewallViolation getThirdPartyFirewallMissingFirewallViolation() { return this.thirdPartyFirewallMissingFirewallViolation; } /** *

* The violation details for a third-party firewall that's been deleted. *

* * @param thirdPartyFirewallMissingFirewallViolation * The violation details for a third-party firewall that's been deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withThirdPartyFirewallMissingFirewallViolation( ThirdPartyFirewallMissingFirewallViolation thirdPartyFirewallMissingFirewallViolation) { setThirdPartyFirewallMissingFirewallViolation(thirdPartyFirewallMissingFirewallViolation); return this; } /** *

* The violation details for a third-party firewall's subnet that's been deleted. *

* * @param thirdPartyFirewallMissingSubnetViolation * The violation details for a third-party firewall's subnet that's been deleted. */ public void setThirdPartyFirewallMissingSubnetViolation(ThirdPartyFirewallMissingSubnetViolation thirdPartyFirewallMissingSubnetViolation) { this.thirdPartyFirewallMissingSubnetViolation = thirdPartyFirewallMissingSubnetViolation; } /** *

* The violation details for a third-party firewall's subnet that's been deleted. *

* * @return The violation details for a third-party firewall's subnet that's been deleted. */ public ThirdPartyFirewallMissingSubnetViolation getThirdPartyFirewallMissingSubnetViolation() { return this.thirdPartyFirewallMissingSubnetViolation; } /** *

* The violation details for a third-party firewall's subnet that's been deleted. *

* * @param thirdPartyFirewallMissingSubnetViolation * The violation details for a third-party firewall's subnet that's been deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withThirdPartyFirewallMissingSubnetViolation(ThirdPartyFirewallMissingSubnetViolation thirdPartyFirewallMissingSubnetViolation) { setThirdPartyFirewallMissingSubnetViolation(thirdPartyFirewallMissingSubnetViolation); return this; } /** *

* The violation details for a third-party firewall that has the Firewall Manager managed route table that was * associated with the third-party firewall has been deleted. *

* * @param thirdPartyFirewallMissingExpectedRouteTableViolation * The violation details for a third-party firewall that has the Firewall Manager managed route table that * was associated with the third-party firewall has been deleted. */ public void setThirdPartyFirewallMissingExpectedRouteTableViolation( ThirdPartyFirewallMissingExpectedRouteTableViolation thirdPartyFirewallMissingExpectedRouteTableViolation) { this.thirdPartyFirewallMissingExpectedRouteTableViolation = thirdPartyFirewallMissingExpectedRouteTableViolation; } /** *

* The violation details for a third-party firewall that has the Firewall Manager managed route table that was * associated with the third-party firewall has been deleted. *

* * @return The violation details for a third-party firewall that has the Firewall Manager managed route table that * was associated with the third-party firewall has been deleted. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation getThirdPartyFirewallMissingExpectedRouteTableViolation() { return this.thirdPartyFirewallMissingExpectedRouteTableViolation; } /** *

* The violation details for a third-party firewall that has the Firewall Manager managed route table that was * associated with the third-party firewall has been deleted. *

* * @param thirdPartyFirewallMissingExpectedRouteTableViolation * The violation details for a third-party firewall that has the Firewall Manager managed route table that * was associated with the third-party firewall has been deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withThirdPartyFirewallMissingExpectedRouteTableViolation( ThirdPartyFirewallMissingExpectedRouteTableViolation thirdPartyFirewallMissingExpectedRouteTableViolation) { setThirdPartyFirewallMissingExpectedRouteTableViolation(thirdPartyFirewallMissingExpectedRouteTableViolation); return this; } /** *

* The violation details for a third-party firewall's VPC endpoint subnet that was deleted. *

* * @param firewallSubnetMissingVPCEndpointViolation * The violation details for a third-party firewall's VPC endpoint subnet that was deleted. */ public void setFirewallSubnetMissingVPCEndpointViolation(FirewallSubnetMissingVPCEndpointViolation firewallSubnetMissingVPCEndpointViolation) { this.firewallSubnetMissingVPCEndpointViolation = firewallSubnetMissingVPCEndpointViolation; } /** *

* The violation details for a third-party firewall's VPC endpoint subnet that was deleted. *

* * @return The violation details for a third-party firewall's VPC endpoint subnet that was deleted. */ public FirewallSubnetMissingVPCEndpointViolation getFirewallSubnetMissingVPCEndpointViolation() { return this.firewallSubnetMissingVPCEndpointViolation; } /** *

* The violation details for a third-party firewall's VPC endpoint subnet that was deleted. *

* * @param firewallSubnetMissingVPCEndpointViolation * The violation details for a third-party firewall's VPC endpoint subnet that was deleted. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withFirewallSubnetMissingVPCEndpointViolation(FirewallSubnetMissingVPCEndpointViolation firewallSubnetMissingVPCEndpointViolation) { setFirewallSubnetMissingVPCEndpointViolation(firewallSubnetMissingVPCEndpointViolation); return this; } /** *

* Violation detail for the entries in a network ACL resource. *

* * @param invalidNetworkAclEntriesViolation * Violation detail for the entries in a network ACL resource. */ public void setInvalidNetworkAclEntriesViolation(InvalidNetworkAclEntriesViolation invalidNetworkAclEntriesViolation) { this.invalidNetworkAclEntriesViolation = invalidNetworkAclEntriesViolation; } /** *

* Violation detail for the entries in a network ACL resource. *

* * @return Violation detail for the entries in a network ACL resource. */ public InvalidNetworkAclEntriesViolation getInvalidNetworkAclEntriesViolation() { return this.invalidNetworkAclEntriesViolation; } /** *

* Violation detail for the entries in a network ACL resource. *

* * @param invalidNetworkAclEntriesViolation * Violation detail for the entries in a network ACL resource. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withInvalidNetworkAclEntriesViolation(InvalidNetworkAclEntriesViolation invalidNetworkAclEntriesViolation) { setInvalidNetworkAclEntriesViolation(invalidNetworkAclEntriesViolation); return this; } /** *

* A list of possible remediation action lists. Each individual possible remediation action is a list of individual * remediation actions. *

* * @param possibleRemediationActions * A list of possible remediation action lists. Each individual possible remediation action is a list of * individual remediation actions. */ public void setPossibleRemediationActions(PossibleRemediationActions possibleRemediationActions) { this.possibleRemediationActions = possibleRemediationActions; } /** *

* A list of possible remediation action lists. Each individual possible remediation action is a list of individual * remediation actions. *

* * @return A list of possible remediation action lists. Each individual possible remediation action is a list of * individual remediation actions. */ public PossibleRemediationActions getPossibleRemediationActions() { return this.possibleRemediationActions; } /** *

* A list of possible remediation action lists. Each individual possible remediation action is a list of individual * remediation actions. *

* * @param possibleRemediationActions * A list of possible remediation action lists. Each individual possible remediation action is a list of * individual remediation actions. * @return Returns a reference to this object so that method calls can be chained together. */ public ResourceViolation withPossibleRemediationActions(PossibleRemediationActions possibleRemediationActions) { setPossibleRemediationActions(possibleRemediationActions); return this; } /** * Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be * redacted from this string using a placeholder value. * * @return A string representation of this object. * * @see java.lang.Object#toString() */ @Override public String toString() { StringBuilder sb = new StringBuilder(); sb.append("{"); if (getAwsVPCSecurityGroupViolation() != null) sb.append("AwsVPCSecurityGroupViolation: ").append(getAwsVPCSecurityGroupViolation()).append(","); if (getAwsEc2NetworkInterfaceViolation() != null) sb.append("AwsEc2NetworkInterfaceViolation: ").append(getAwsEc2NetworkInterfaceViolation()).append(","); if (getAwsEc2InstanceViolation() != null) sb.append("AwsEc2InstanceViolation: ").append(getAwsEc2InstanceViolation()).append(","); if (getNetworkFirewallMissingFirewallViolation() != null) sb.append("NetworkFirewallMissingFirewallViolation: ").append(getNetworkFirewallMissingFirewallViolation()).append(","); if (getNetworkFirewallMissingSubnetViolation() != null) sb.append("NetworkFirewallMissingSubnetViolation: ").append(getNetworkFirewallMissingSubnetViolation()).append(","); if (getNetworkFirewallMissingExpectedRTViolation() != null) sb.append("NetworkFirewallMissingExpectedRTViolation: ").append(getNetworkFirewallMissingExpectedRTViolation()).append(","); if (getNetworkFirewallPolicyModifiedViolation() != null) sb.append("NetworkFirewallPolicyModifiedViolation: ").append(getNetworkFirewallPolicyModifiedViolation()).append(","); if (getNetworkFirewallInternetTrafficNotInspectedViolation() != null) sb.append("NetworkFirewallInternetTrafficNotInspectedViolation: ").append(getNetworkFirewallInternetTrafficNotInspectedViolation()).append(","); if (getNetworkFirewallInvalidRouteConfigurationViolation() != null) sb.append("NetworkFirewallInvalidRouteConfigurationViolation: ").append(getNetworkFirewallInvalidRouteConfigurationViolation()).append(","); if (getNetworkFirewallBlackHoleRouteDetectedViolation() != null) sb.append("NetworkFirewallBlackHoleRouteDetectedViolation: ").append(getNetworkFirewallBlackHoleRouteDetectedViolation()).append(","); if (getNetworkFirewallUnexpectedFirewallRoutesViolation() != null) sb.append("NetworkFirewallUnexpectedFirewallRoutesViolation: ").append(getNetworkFirewallUnexpectedFirewallRoutesViolation()).append(","); if (getNetworkFirewallUnexpectedGatewayRoutesViolation() != null) sb.append("NetworkFirewallUnexpectedGatewayRoutesViolation: ").append(getNetworkFirewallUnexpectedGatewayRoutesViolation()).append(","); if (getNetworkFirewallMissingExpectedRoutesViolation() != null) sb.append("NetworkFirewallMissingExpectedRoutesViolation: ").append(getNetworkFirewallMissingExpectedRoutesViolation()).append(","); if (getDnsRuleGroupPriorityConflictViolation() != null) sb.append("DnsRuleGroupPriorityConflictViolation: ").append(getDnsRuleGroupPriorityConflictViolation()).append(","); if (getDnsDuplicateRuleGroupViolation() != null) sb.append("DnsDuplicateRuleGroupViolation: ").append(getDnsDuplicateRuleGroupViolation()).append(","); if (getDnsRuleGroupLimitExceededViolation() != null) sb.append("DnsRuleGroupLimitExceededViolation: ").append(getDnsRuleGroupLimitExceededViolation()).append(","); if (getFirewallSubnetIsOutOfScopeViolation() != null) sb.append("FirewallSubnetIsOutOfScopeViolation: ").append(getFirewallSubnetIsOutOfScopeViolation()).append(","); if (getRouteHasOutOfScopeEndpointViolation() != null) sb.append("RouteHasOutOfScopeEndpointViolation: ").append(getRouteHasOutOfScopeEndpointViolation()).append(","); if (getThirdPartyFirewallMissingFirewallViolation() != null) sb.append("ThirdPartyFirewallMissingFirewallViolation: ").append(getThirdPartyFirewallMissingFirewallViolation()).append(","); if (getThirdPartyFirewallMissingSubnetViolation() != null) sb.append("ThirdPartyFirewallMissingSubnetViolation: ").append(getThirdPartyFirewallMissingSubnetViolation()).append(","); if (getThirdPartyFirewallMissingExpectedRouteTableViolation() != null) sb.append("ThirdPartyFirewallMissingExpectedRouteTableViolation: ").append(getThirdPartyFirewallMissingExpectedRouteTableViolation()).append(","); if (getFirewallSubnetMissingVPCEndpointViolation() != null) sb.append("FirewallSubnetMissingVPCEndpointViolation: ").append(getFirewallSubnetMissingVPCEndpointViolation()).append(","); if (getInvalidNetworkAclEntriesViolation() != null) sb.append("InvalidNetworkAclEntriesViolation: ").append(getInvalidNetworkAclEntriesViolation()).append(","); if (getPossibleRemediationActions() != null) sb.append("PossibleRemediationActions: ").append(getPossibleRemediationActions()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ResourceViolation == false) return false; ResourceViolation other = (ResourceViolation) obj; if (other.getAwsVPCSecurityGroupViolation() == null ^ this.getAwsVPCSecurityGroupViolation() == null) return false; if (other.getAwsVPCSecurityGroupViolation() != null && other.getAwsVPCSecurityGroupViolation().equals(this.getAwsVPCSecurityGroupViolation()) == false) return false; if (other.getAwsEc2NetworkInterfaceViolation() == null ^ this.getAwsEc2NetworkInterfaceViolation() == null) return false; if (other.getAwsEc2NetworkInterfaceViolation() != null && other.getAwsEc2NetworkInterfaceViolation().equals(this.getAwsEc2NetworkInterfaceViolation()) == false) return false; if (other.getAwsEc2InstanceViolation() == null ^ this.getAwsEc2InstanceViolation() == null) return false; if (other.getAwsEc2InstanceViolation() != null && other.getAwsEc2InstanceViolation().equals(this.getAwsEc2InstanceViolation()) == false) return false; if (other.getNetworkFirewallMissingFirewallViolation() == null ^ this.getNetworkFirewallMissingFirewallViolation() == null) return false; if (other.getNetworkFirewallMissingFirewallViolation() != null && other.getNetworkFirewallMissingFirewallViolation().equals(this.getNetworkFirewallMissingFirewallViolation()) == false) return false; if (other.getNetworkFirewallMissingSubnetViolation() == null ^ this.getNetworkFirewallMissingSubnetViolation() == null) return false; if (other.getNetworkFirewallMissingSubnetViolation() != null && other.getNetworkFirewallMissingSubnetViolation().equals(this.getNetworkFirewallMissingSubnetViolation()) == false) return false; if (other.getNetworkFirewallMissingExpectedRTViolation() == null ^ this.getNetworkFirewallMissingExpectedRTViolation() == null) return false; if (other.getNetworkFirewallMissingExpectedRTViolation() != null && other.getNetworkFirewallMissingExpectedRTViolation().equals(this.getNetworkFirewallMissingExpectedRTViolation()) == false) return false; if (other.getNetworkFirewallPolicyModifiedViolation() == null ^ this.getNetworkFirewallPolicyModifiedViolation() == null) return false; if (other.getNetworkFirewallPolicyModifiedViolation() != null && other.getNetworkFirewallPolicyModifiedViolation().equals(this.getNetworkFirewallPolicyModifiedViolation()) == false) return false; if (other.getNetworkFirewallInternetTrafficNotInspectedViolation() == null ^ this.getNetworkFirewallInternetTrafficNotInspectedViolation() == null) return false; if (other.getNetworkFirewallInternetTrafficNotInspectedViolation() != null && other.getNetworkFirewallInternetTrafficNotInspectedViolation().equals(this.getNetworkFirewallInternetTrafficNotInspectedViolation()) == false) return false; if (other.getNetworkFirewallInvalidRouteConfigurationViolation() == null ^ this.getNetworkFirewallInvalidRouteConfigurationViolation() == null) return false; if (other.getNetworkFirewallInvalidRouteConfigurationViolation() != null && other.getNetworkFirewallInvalidRouteConfigurationViolation().equals(this.getNetworkFirewallInvalidRouteConfigurationViolation()) == false) return false; if (other.getNetworkFirewallBlackHoleRouteDetectedViolation() == null ^ this.getNetworkFirewallBlackHoleRouteDetectedViolation() == null) return false; if (other.getNetworkFirewallBlackHoleRouteDetectedViolation() != null && other.getNetworkFirewallBlackHoleRouteDetectedViolation().equals(this.getNetworkFirewallBlackHoleRouteDetectedViolation()) == false) return false; if (other.getNetworkFirewallUnexpectedFirewallRoutesViolation() == null ^ this.getNetworkFirewallUnexpectedFirewallRoutesViolation() == null) return false; if (other.getNetworkFirewallUnexpectedFirewallRoutesViolation() != null && other.getNetworkFirewallUnexpectedFirewallRoutesViolation().equals(this.getNetworkFirewallUnexpectedFirewallRoutesViolation()) == false) return false; if (other.getNetworkFirewallUnexpectedGatewayRoutesViolation() == null ^ this.getNetworkFirewallUnexpectedGatewayRoutesViolation() == null) return false; if (other.getNetworkFirewallUnexpectedGatewayRoutesViolation() != null && other.getNetworkFirewallUnexpectedGatewayRoutesViolation().equals(this.getNetworkFirewallUnexpectedGatewayRoutesViolation()) == false) return false; if (other.getNetworkFirewallMissingExpectedRoutesViolation() == null ^ this.getNetworkFirewallMissingExpectedRoutesViolation() == null) return false; if (other.getNetworkFirewallMissingExpectedRoutesViolation() != null && other.getNetworkFirewallMissingExpectedRoutesViolation().equals(this.getNetworkFirewallMissingExpectedRoutesViolation()) == false) return false; if (other.getDnsRuleGroupPriorityConflictViolation() == null ^ this.getDnsRuleGroupPriorityConflictViolation() == null) return false; if (other.getDnsRuleGroupPriorityConflictViolation() != null && other.getDnsRuleGroupPriorityConflictViolation().equals(this.getDnsRuleGroupPriorityConflictViolation()) == false) return false; if (other.getDnsDuplicateRuleGroupViolation() == null ^ this.getDnsDuplicateRuleGroupViolation() == null) return false; if (other.getDnsDuplicateRuleGroupViolation() != null && other.getDnsDuplicateRuleGroupViolation().equals(this.getDnsDuplicateRuleGroupViolation()) == false) return false; if (other.getDnsRuleGroupLimitExceededViolation() == null ^ this.getDnsRuleGroupLimitExceededViolation() == null) return false; if (other.getDnsRuleGroupLimitExceededViolation() != null && other.getDnsRuleGroupLimitExceededViolation().equals(this.getDnsRuleGroupLimitExceededViolation()) == false) return false; if (other.getFirewallSubnetIsOutOfScopeViolation() == null ^ this.getFirewallSubnetIsOutOfScopeViolation() == null) return false; if (other.getFirewallSubnetIsOutOfScopeViolation() != null && other.getFirewallSubnetIsOutOfScopeViolation().equals(this.getFirewallSubnetIsOutOfScopeViolation()) == false) return false; if (other.getRouteHasOutOfScopeEndpointViolation() == null ^ this.getRouteHasOutOfScopeEndpointViolation() == null) return false; if (other.getRouteHasOutOfScopeEndpointViolation() != null && other.getRouteHasOutOfScopeEndpointViolation().equals(this.getRouteHasOutOfScopeEndpointViolation()) == false) return false; if (other.getThirdPartyFirewallMissingFirewallViolation() == null ^ this.getThirdPartyFirewallMissingFirewallViolation() == null) return false; if (other.getThirdPartyFirewallMissingFirewallViolation() != null && other.getThirdPartyFirewallMissingFirewallViolation().equals(this.getThirdPartyFirewallMissingFirewallViolation()) == false) return false; if (other.getThirdPartyFirewallMissingSubnetViolation() == null ^ this.getThirdPartyFirewallMissingSubnetViolation() == null) return false; if (other.getThirdPartyFirewallMissingSubnetViolation() != null && other.getThirdPartyFirewallMissingSubnetViolation().equals(this.getThirdPartyFirewallMissingSubnetViolation()) == false) return false; if (other.getThirdPartyFirewallMissingExpectedRouteTableViolation() == null ^ this.getThirdPartyFirewallMissingExpectedRouteTableViolation() == null) return false; if (other.getThirdPartyFirewallMissingExpectedRouteTableViolation() != null && other.getThirdPartyFirewallMissingExpectedRouteTableViolation().equals(this.getThirdPartyFirewallMissingExpectedRouteTableViolation()) == false) return false; if (other.getFirewallSubnetMissingVPCEndpointViolation() == null ^ this.getFirewallSubnetMissingVPCEndpointViolation() == null) return false; if (other.getFirewallSubnetMissingVPCEndpointViolation() != null && other.getFirewallSubnetMissingVPCEndpointViolation().equals(this.getFirewallSubnetMissingVPCEndpointViolation()) == false) return false; if (other.getInvalidNetworkAclEntriesViolation() == null ^ this.getInvalidNetworkAclEntriesViolation() == null) return false; if (other.getInvalidNetworkAclEntriesViolation() != null && other.getInvalidNetworkAclEntriesViolation().equals(this.getInvalidNetworkAclEntriesViolation()) == false) return false; if (other.getPossibleRemediationActions() == null ^ this.getPossibleRemediationActions() == null) return false; if (other.getPossibleRemediationActions() != null && other.getPossibleRemediationActions().equals(this.getPossibleRemediationActions()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getAwsVPCSecurityGroupViolation() == null) ? 0 : getAwsVPCSecurityGroupViolation().hashCode()); hashCode = prime * hashCode + ((getAwsEc2NetworkInterfaceViolation() == null) ? 0 : getAwsEc2NetworkInterfaceViolation().hashCode()); hashCode = prime * hashCode + ((getAwsEc2InstanceViolation() == null) ? 0 : getAwsEc2InstanceViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallMissingFirewallViolation() == null) ? 0 : getNetworkFirewallMissingFirewallViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallMissingSubnetViolation() == null) ? 0 : getNetworkFirewallMissingSubnetViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallMissingExpectedRTViolation() == null) ? 0 : getNetworkFirewallMissingExpectedRTViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallPolicyModifiedViolation() == null) ? 0 : getNetworkFirewallPolicyModifiedViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallInternetTrafficNotInspectedViolation() == null) ? 0 : getNetworkFirewallInternetTrafficNotInspectedViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallInvalidRouteConfigurationViolation() == null) ? 0 : getNetworkFirewallInvalidRouteConfigurationViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallBlackHoleRouteDetectedViolation() == null) ? 0 : getNetworkFirewallBlackHoleRouteDetectedViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallUnexpectedFirewallRoutesViolation() == null) ? 0 : getNetworkFirewallUnexpectedFirewallRoutesViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallUnexpectedGatewayRoutesViolation() == null) ? 0 : getNetworkFirewallUnexpectedGatewayRoutesViolation().hashCode()); hashCode = prime * hashCode + ((getNetworkFirewallMissingExpectedRoutesViolation() == null) ? 0 : getNetworkFirewallMissingExpectedRoutesViolation().hashCode()); hashCode = prime * hashCode + ((getDnsRuleGroupPriorityConflictViolation() == null) ? 0 : getDnsRuleGroupPriorityConflictViolation().hashCode()); hashCode = prime * hashCode + ((getDnsDuplicateRuleGroupViolation() == null) ? 0 : getDnsDuplicateRuleGroupViolation().hashCode()); hashCode = prime * hashCode + ((getDnsRuleGroupLimitExceededViolation() == null) ? 0 : getDnsRuleGroupLimitExceededViolation().hashCode()); hashCode = prime * hashCode + ((getFirewallSubnetIsOutOfScopeViolation() == null) ? 0 : getFirewallSubnetIsOutOfScopeViolation().hashCode()); hashCode = prime * hashCode + ((getRouteHasOutOfScopeEndpointViolation() == null) ? 0 : getRouteHasOutOfScopeEndpointViolation().hashCode()); hashCode = prime * hashCode + ((getThirdPartyFirewallMissingFirewallViolation() == null) ? 0 : getThirdPartyFirewallMissingFirewallViolation().hashCode()); hashCode = prime * hashCode + ((getThirdPartyFirewallMissingSubnetViolation() == null) ? 0 : getThirdPartyFirewallMissingSubnetViolation().hashCode()); hashCode = prime * hashCode + ((getThirdPartyFirewallMissingExpectedRouteTableViolation() == null) ? 0 : getThirdPartyFirewallMissingExpectedRouteTableViolation() .hashCode()); hashCode = prime * hashCode + ((getFirewallSubnetMissingVPCEndpointViolation() == null) ? 0 : getFirewallSubnetMissingVPCEndpointViolation().hashCode()); hashCode = prime * hashCode + ((getInvalidNetworkAclEntriesViolation() == null) ? 0 : getInvalidNetworkAclEntriesViolation().hashCode()); hashCode = prime * hashCode + ((getPossibleRemediationActions() == null) ? 0 : getPossibleRemediationActions().hashCode()); return hashCode; } @Override public ResourceViolation clone() { try { return (ResourceViolation) super.clone(); } catch (CloneNotSupportedException e) { throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e); } } @com.amazonaws.annotation.SdkInternalApi @Override public void marshall(ProtocolMarshaller protocolMarshaller) { com.amazonaws.services.fms.model.transform.ResourceViolationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy