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

com.amazonaws.services.fms.model.NetworkFirewallUnexpectedGatewayRoutesViolation 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 for an unexpected gateway route that’s present in a route table. *

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

* Information about the gateway ID. *

*/ private String gatewayId; /** *

* The routes that are in violation. *

*/ private java.util.List violatingRoutes; /** *

* Information about the route table. *

*/ private String routeTableId; /** *

* Information about the VPC ID. *

*/ private String vpcId; /** *

* Information about the gateway ID. *

* * @param gatewayId * Information about the gateway ID. */ public void setGatewayId(String gatewayId) { this.gatewayId = gatewayId; } /** *

* Information about the gateway ID. *

* * @return Information about the gateway ID. */ public String getGatewayId() { return this.gatewayId; } /** *

* Information about the gateway ID. *

* * @param gatewayId * Information about the gateway ID. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallUnexpectedGatewayRoutesViolation withGatewayId(String gatewayId) { setGatewayId(gatewayId); return this; } /** *

* The routes that are in violation. *

* * @return The routes that are in violation. */ public java.util.List getViolatingRoutes() { return violatingRoutes; } /** *

* The routes that are in violation. *

* * @param violatingRoutes * The routes that are in violation. */ public void setViolatingRoutes(java.util.Collection violatingRoutes) { if (violatingRoutes == null) { this.violatingRoutes = null; return; } this.violatingRoutes = new java.util.ArrayList(violatingRoutes); } /** *

* The routes that are in violation. *

*

* NOTE: This method appends the values to the existing list (if any). Use * {@link #setViolatingRoutes(java.util.Collection)} or {@link #withViolatingRoutes(java.util.Collection)} if you * want to override the existing values. *

* * @param violatingRoutes * The routes that are in violation. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallUnexpectedGatewayRoutesViolation withViolatingRoutes(Route... violatingRoutes) { if (this.violatingRoutes == null) { setViolatingRoutes(new java.util.ArrayList(violatingRoutes.length)); } for (Route ele : violatingRoutes) { this.violatingRoutes.add(ele); } return this; } /** *

* The routes that are in violation. *

* * @param violatingRoutes * The routes that are in violation. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallUnexpectedGatewayRoutesViolation withViolatingRoutes(java.util.Collection violatingRoutes) { setViolatingRoutes(violatingRoutes); return this; } /** *

* Information about the route table. *

* * @param routeTableId * Information about the route table. */ public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } /** *

* Information about the route table. *

* * @return Information about the route table. */ public String getRouteTableId() { return this.routeTableId; } /** *

* Information about the route table. *

* * @param routeTableId * Information about the route table. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallUnexpectedGatewayRoutesViolation withRouteTableId(String routeTableId) { setRouteTableId(routeTableId); return this; } /** *

* Information about the VPC ID. *

* * @param vpcId * Information about the VPC ID. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** *

* Information about the VPC ID. *

* * @return Information about the VPC ID. */ public String getVpcId() { return this.vpcId; } /** *

* Information about the VPC ID. *

* * @param vpcId * Information about the VPC ID. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallUnexpectedGatewayRoutesViolation withVpcId(String vpcId) { setVpcId(vpcId); 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 (getGatewayId() != null) sb.append("GatewayId: ").append(getGatewayId()).append(","); if (getViolatingRoutes() != null) sb.append("ViolatingRoutes: ").append(getViolatingRoutes()).append(","); if (getRouteTableId() != null) sb.append("RouteTableId: ").append(getRouteTableId()).append(","); if (getVpcId() != null) sb.append("VpcId: ").append(getVpcId()); sb.append("}"); return sb.toString(); } @Override public boolean equals(Object obj) { if (this == obj) return true; if (obj == null) return false; if (obj instanceof NetworkFirewallUnexpectedGatewayRoutesViolation == false) return false; NetworkFirewallUnexpectedGatewayRoutesViolation other = (NetworkFirewallUnexpectedGatewayRoutesViolation) obj; if (other.getGatewayId() == null ^ this.getGatewayId() == null) return false; if (other.getGatewayId() != null && other.getGatewayId().equals(this.getGatewayId()) == false) return false; if (other.getViolatingRoutes() == null ^ this.getViolatingRoutes() == null) return false; if (other.getViolatingRoutes() != null && other.getViolatingRoutes().equals(this.getViolatingRoutes()) == false) return false; if (other.getRouteTableId() == null ^ this.getRouteTableId() == null) return false; if (other.getRouteTableId() != null && other.getRouteTableId().equals(this.getRouteTableId()) == false) return false; if (other.getVpcId() == null ^ this.getVpcId() == null) return false; if (other.getVpcId() != null && other.getVpcId().equals(this.getVpcId()) == false) return false; return true; } @Override public int hashCode() { final int prime = 31; int hashCode = 1; hashCode = prime * hashCode + ((getGatewayId() == null) ? 0 : getGatewayId().hashCode()); hashCode = prime * hashCode + ((getViolatingRoutes() == null) ? 0 : getViolatingRoutes().hashCode()); hashCode = prime * hashCode + ((getRouteTableId() == null) ? 0 : getRouteTableId().hashCode()); hashCode = prime * hashCode + ((getVpcId() == null) ? 0 : getVpcId().hashCode()); return hashCode; } @Override public NetworkFirewallUnexpectedGatewayRoutesViolation clone() { try { return (NetworkFirewallUnexpectedGatewayRoutesViolation) 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.NetworkFirewallUnexpectedGatewayRoutesViolationMarshaller.getInstance().marshall(this, protocolMarshaller); } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy