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

com.amazonaws.services.fms.model.ThirdPartyFirewallMissingExpectedRouteTableViolation 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;

/**
 * 

* The violation details for a third-party firewall that's not associated with an Firewall Manager managed route table. *

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

* The ID of the third-party firewall or VPC resource that's causing the violation. *

*/ private String violationTarget; /** *

* The resource ID of the VPC associated with a fireawll subnet that's causing the violation. *

*/ private String vPC; /** *

* The Availability Zone of the firewall subnet that's causing the violation. *

*/ private String availabilityZone; /** *

* The resource ID of the current route table that's associated with the subnet, if one is available. *

*/ private String currentRouteTable; /** *

* The resource ID of the route table that should be associated with the subnet. *

*/ private String expectedRouteTable; /** *

* The ID of the third-party firewall or VPC resource that's causing the violation. *

* * @param violationTarget * The ID of the third-party firewall or VPC resource that's causing the violation. */ public void setViolationTarget(String violationTarget) { this.violationTarget = violationTarget; } /** *

* The ID of the third-party firewall or VPC resource that's causing the violation. *

* * @return The ID of the third-party firewall or VPC resource that's causing the violation. */ public String getViolationTarget() { return this.violationTarget; } /** *

* The ID of the third-party firewall or VPC resource that's causing the violation. *

* * @param violationTarget * The ID of the third-party firewall or VPC resource that's causing the violation. * @return Returns a reference to this object so that method calls can be chained together. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation withViolationTarget(String violationTarget) { setViolationTarget(violationTarget); return this; } /** *

* The resource ID of the VPC associated with a fireawll subnet that's causing the violation. *

* * @param vPC * The resource ID of the VPC associated with a fireawll subnet that's causing the violation. */ public void setVPC(String vPC) { this.vPC = vPC; } /** *

* The resource ID of the VPC associated with a fireawll subnet that's causing the violation. *

* * @return The resource ID of the VPC associated with a fireawll subnet that's causing the violation. */ public String getVPC() { return this.vPC; } /** *

* The resource ID of the VPC associated with a fireawll subnet that's causing the violation. *

* * @param vPC * The resource ID of the VPC associated with a fireawll subnet that's causing the violation. * @return Returns a reference to this object so that method calls can be chained together. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation withVPC(String vPC) { setVPC(vPC); return this; } /** *

* The Availability Zone of the firewall subnet that's causing the violation. *

* * @param availabilityZone * The Availability Zone of the firewall subnet that's causing the violation. */ public void setAvailabilityZone(String availabilityZone) { this.availabilityZone = availabilityZone; } /** *

* The Availability Zone of the firewall subnet that's causing the violation. *

* * @return The Availability Zone of the firewall subnet that's causing the violation. */ public String getAvailabilityZone() { return this.availabilityZone; } /** *

* The Availability Zone of the firewall subnet that's causing the violation. *

* * @param availabilityZone * The Availability Zone of the firewall subnet that's causing the violation. * @return Returns a reference to this object so that method calls can be chained together. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation withAvailabilityZone(String availabilityZone) { setAvailabilityZone(availabilityZone); return this; } /** *

* The resource ID of the current route table that's associated with the subnet, if one is available. *

* * @param currentRouteTable * The resource ID of the current route table that's associated with the subnet, if one is available. */ public void setCurrentRouteTable(String currentRouteTable) { this.currentRouteTable = currentRouteTable; } /** *

* The resource ID of the current route table that's associated with the subnet, if one is available. *

* * @return The resource ID of the current route table that's associated with the subnet, if one is available. */ public String getCurrentRouteTable() { return this.currentRouteTable; } /** *

* The resource ID of the current route table that's associated with the subnet, if one is available. *

* * @param currentRouteTable * The resource ID of the current route table that's associated with the subnet, if one is available. * @return Returns a reference to this object so that method calls can be chained together. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation withCurrentRouteTable(String currentRouteTable) { setCurrentRouteTable(currentRouteTable); return this; } /** *

* The resource ID of the route table that should be associated with the subnet. *

* * @param expectedRouteTable * The resource ID of the route table that should be associated with the subnet. */ public void setExpectedRouteTable(String expectedRouteTable) { this.expectedRouteTable = expectedRouteTable; } /** *

* The resource ID of the route table that should be associated with the subnet. *

* * @return The resource ID of the route table that should be associated with the subnet. */ public String getExpectedRouteTable() { return this.expectedRouteTable; } /** *

* The resource ID of the route table that should be associated with the subnet. *

* * @param expectedRouteTable * The resource ID of the route table that should be associated with the subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public ThirdPartyFirewallMissingExpectedRouteTableViolation withExpectedRouteTable(String expectedRouteTable) { setExpectedRouteTable(expectedRouteTable); 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 (getViolationTarget() != null) sb.append("ViolationTarget: ").append(getViolationTarget()).append(","); if (getVPC() != null) sb.append("VPC: ").append(getVPC()).append(","); if (getAvailabilityZone() != null) sb.append("AvailabilityZone: ").append(getAvailabilityZone()).append(","); if (getCurrentRouteTable() != null) sb.append("CurrentRouteTable: ").append(getCurrentRouteTable()).append(","); if (getExpectedRouteTable() != null) sb.append("ExpectedRouteTable: ").append(getExpectedRouteTable()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof ThirdPartyFirewallMissingExpectedRouteTableViolation == false) return false; ThirdPartyFirewallMissingExpectedRouteTableViolation other = (ThirdPartyFirewallMissingExpectedRouteTableViolation) obj; if (other.getViolationTarget() == null ^ this.getViolationTarget() == null) return false; if (other.getViolationTarget() != null && other.getViolationTarget().equals(this.getViolationTarget()) == false) return false; if (other.getVPC() == null ^ this.getVPC() == null) return false; if (other.getVPC() != null && other.getVPC().equals(this.getVPC()) == false) return false; if (other.getAvailabilityZone() == null ^ this.getAvailabilityZone() == null) return false; if (other.getAvailabilityZone() != null && other.getAvailabilityZone().equals(this.getAvailabilityZone()) == false) return false; if (other.getCurrentRouteTable() == null ^ this.getCurrentRouteTable() == null) return false; if (other.getCurrentRouteTable() != null && other.getCurrentRouteTable().equals(this.getCurrentRouteTable()) == false) return false; if (other.getExpectedRouteTable() == null ^ this.getExpectedRouteTable() == null) return false; if (other.getExpectedRouteTable() != null && other.getExpectedRouteTable().equals(this.getExpectedRouteTable()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getViolationTarget() == null) ? 0 : getViolationTarget().hashCode()); hashCode = prime * hashCode + ((getVPC() == null) ? 0 : getVPC().hashCode()); hashCode = prime * hashCode + ((getAvailabilityZone() == null) ? 0 : getAvailabilityZone().hashCode()); hashCode = prime * hashCode + ((getCurrentRouteTable() == null) ? 0 : getCurrentRouteTable().hashCode()); hashCode = prime * hashCode + ((getExpectedRouteTable() == null) ? 0 : getExpectedRouteTable().hashCode()); return hashCode; } @Override public ThirdPartyFirewallMissingExpectedRouteTableViolation clone() { try { return (ThirdPartyFirewallMissingExpectedRouteTableViolation) 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.ThirdPartyFirewallMissingExpectedRouteTableViolationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy