/* * 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; /** *
* Contains details about the route endpoint that violates the policy scope. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class RouteHasOutOfScopeEndpointViolation implements Serializable, Cloneable, StructuredPojo { /** ** The ID of the subnet associated with the route that violates the policy scope. *
*/ private String subnetId; /** ** The VPC ID of the route that violates the policy scope. *
*/ private String vpcId; /** ** The ID of the route table. *
*/ private String routeTableId; /** ** The list of routes that violate the route table. *
*/ private java.util.List* The subnet's Availability Zone. *
*/ private String subnetAvailabilityZone; /** ** The ID of the subnet's Availability Zone. *
*/ private String subnetAvailabilityZoneId; /** ** The route table associated with the current firewall subnet. *
*/ private String currentFirewallSubnetRouteTable; /** ** The ID of the firewall subnet. *
*/ private String firewallSubnetId; /** ** The list of firewall subnet routes. *
*/ private java.util.List* The ID of the Internet Gateway. *
*/ private String internetGatewayId; /** ** The current route table associated with the Internet Gateway. *
*/ private String currentInternetGatewayRouteTable; /** ** The routes in the route table associated with the Internet Gateway. *
*/ private java.util.List* The ID of the subnet associated with the route that violates the policy scope. *
* * @param subnetId * The ID of the subnet associated with the route that violates the policy scope. */ public void setSubnetId(String subnetId) { this.subnetId = subnetId; } /** ** The ID of the subnet associated with the route that violates the policy scope. *
* * @return The ID of the subnet associated with the route that violates the policy scope. */ public String getSubnetId() { return this.subnetId; } /** ** The ID of the subnet associated with the route that violates the policy scope. *
* * @param subnetId * The ID of the subnet associated with the route that violates the policy scope. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withSubnetId(String subnetId) { setSubnetId(subnetId); return this; } /** ** The VPC ID of the route that violates the policy scope. *
* * @param vpcId * The VPC ID of the route that violates the policy scope. */ public void setVpcId(String vpcId) { this.vpcId = vpcId; } /** ** The VPC ID of the route that violates the policy scope. *
* * @return The VPC ID of the route that violates the policy scope. */ public String getVpcId() { return this.vpcId; } /** ** The VPC ID of the route that violates the policy scope. *
* * @param vpcId * The VPC ID of the route that violates the policy scope. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** The ID of the route table. *
* * @param routeTableId * The ID of the route table. */ public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } /** ** The ID of the route table. *
* * @return The ID of the route table. */ public String getRouteTableId() { return this.routeTableId; } /** ** The ID of the route table. *
* * @param routeTableId * The ID of the route table. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withRouteTableId(String routeTableId) { setRouteTableId(routeTableId); return this; } /** ** The list of routes that violate the route table. *
* * @return The list of routes that violate the route table. */ public java.util.List* The list of routes that violate the route table. *
* * @param violatingRoutes * The list of routes that violate the route table. */ public void setViolatingRoutes(java.util.Collection* The list of routes that violate the route table. *
** 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 list of routes that violate the route table. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withViolatingRoutes(Route... violatingRoutes) { if (this.violatingRoutes == null) { setViolatingRoutes(new java.util.ArrayList* The list of routes that violate the route table. *
* * @param violatingRoutes * The list of routes that violate the route table. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withViolatingRoutes(java.util.Collection* The subnet's Availability Zone. *
* * @param subnetAvailabilityZone * The subnet's Availability Zone. */ public void setSubnetAvailabilityZone(String subnetAvailabilityZone) { this.subnetAvailabilityZone = subnetAvailabilityZone; } /** ** The subnet's Availability Zone. *
* * @return The subnet's Availability Zone. */ public String getSubnetAvailabilityZone() { return this.subnetAvailabilityZone; } /** ** The subnet's Availability Zone. *
* * @param subnetAvailabilityZone * The subnet's Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withSubnetAvailabilityZone(String subnetAvailabilityZone) { setSubnetAvailabilityZone(subnetAvailabilityZone); return this; } /** ** The ID of the subnet's Availability Zone. *
* * @param subnetAvailabilityZoneId * The ID of the subnet's Availability Zone. */ public void setSubnetAvailabilityZoneId(String subnetAvailabilityZoneId) { this.subnetAvailabilityZoneId = subnetAvailabilityZoneId; } /** ** The ID of the subnet's Availability Zone. *
* * @return The ID of the subnet's Availability Zone. */ public String getSubnetAvailabilityZoneId() { return this.subnetAvailabilityZoneId; } /** ** The ID of the subnet's Availability Zone. *
* * @param subnetAvailabilityZoneId * The ID of the subnet's Availability Zone. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withSubnetAvailabilityZoneId(String subnetAvailabilityZoneId) { setSubnetAvailabilityZoneId(subnetAvailabilityZoneId); return this; } /** ** The route table associated with the current firewall subnet. *
* * @param currentFirewallSubnetRouteTable * The route table associated with the current firewall subnet. */ public void setCurrentFirewallSubnetRouteTable(String currentFirewallSubnetRouteTable) { this.currentFirewallSubnetRouteTable = currentFirewallSubnetRouteTable; } /** ** The route table associated with the current firewall subnet. *
* * @return The route table associated with the current firewall subnet. */ public String getCurrentFirewallSubnetRouteTable() { return this.currentFirewallSubnetRouteTable; } /** ** The route table associated with the current firewall subnet. *
* * @param currentFirewallSubnetRouteTable * The route table associated with the current firewall subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withCurrentFirewallSubnetRouteTable(String currentFirewallSubnetRouteTable) { setCurrentFirewallSubnetRouteTable(currentFirewallSubnetRouteTable); return this; } /** ** The ID of the firewall subnet. *
* * @param firewallSubnetId * The ID of the firewall subnet. */ public void setFirewallSubnetId(String firewallSubnetId) { this.firewallSubnetId = firewallSubnetId; } /** ** The ID of the firewall subnet. *
* * @return The ID of the firewall subnet. */ public String getFirewallSubnetId() { return this.firewallSubnetId; } /** ** The ID of the firewall subnet. *
* * @param firewallSubnetId * The ID of the firewall subnet. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withFirewallSubnetId(String firewallSubnetId) { setFirewallSubnetId(firewallSubnetId); return this; } /** ** The list of firewall subnet routes. *
* * @return The list of firewall subnet routes. */ public java.util.List* The list of firewall subnet routes. *
* * @param firewallSubnetRoutes * The list of firewall subnet routes. */ public void setFirewallSubnetRoutes(java.util.Collection* The list of firewall subnet routes. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setFirewallSubnetRoutes(java.util.Collection)} or {@link #withFirewallSubnetRoutes(java.util.Collection)} * if you want to override the existing values. *
* * @param firewallSubnetRoutes * The list of firewall subnet routes. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withFirewallSubnetRoutes(Route... firewallSubnetRoutes) { if (this.firewallSubnetRoutes == null) { setFirewallSubnetRoutes(new java.util.ArrayList* The list of firewall subnet routes. *
* * @param firewallSubnetRoutes * The list of firewall subnet routes. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withFirewallSubnetRoutes(java.util.Collection* The ID of the Internet Gateway. *
* * @param internetGatewayId * The ID of the Internet Gateway. */ public void setInternetGatewayId(String internetGatewayId) { this.internetGatewayId = internetGatewayId; } /** ** The ID of the Internet Gateway. *
* * @return The ID of the Internet Gateway. */ public String getInternetGatewayId() { return this.internetGatewayId; } /** ** The ID of the Internet Gateway. *
* * @param internetGatewayId * The ID of the Internet Gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withInternetGatewayId(String internetGatewayId) { setInternetGatewayId(internetGatewayId); return this; } /** ** The current route table associated with the Internet Gateway. *
* * @param currentInternetGatewayRouteTable * The current route table associated with the Internet Gateway. */ public void setCurrentInternetGatewayRouteTable(String currentInternetGatewayRouteTable) { this.currentInternetGatewayRouteTable = currentInternetGatewayRouteTable; } /** ** The current route table associated with the Internet Gateway. *
* * @return The current route table associated with the Internet Gateway. */ public String getCurrentInternetGatewayRouteTable() { return this.currentInternetGatewayRouteTable; } /** ** The current route table associated with the Internet Gateway. *
* * @param currentInternetGatewayRouteTable * The current route table associated with the Internet Gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withCurrentInternetGatewayRouteTable(String currentInternetGatewayRouteTable) { setCurrentInternetGatewayRouteTable(currentInternetGatewayRouteTable); return this; } /** ** The routes in the route table associated with the Internet Gateway. *
* * @return The routes in the route table associated with the Internet Gateway. */ public java.util.List* The routes in the route table associated with the Internet Gateway. *
* * @param internetGatewayRoutes * The routes in the route table associated with the Internet Gateway. */ public void setInternetGatewayRoutes(java.util.Collection* The routes in the route table associated with the Internet Gateway. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setInternetGatewayRoutes(java.util.Collection)} or * {@link #withInternetGatewayRoutes(java.util.Collection)} if you want to override the existing values. *
* * @param internetGatewayRoutes * The routes in the route table associated with the Internet Gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withInternetGatewayRoutes(Route... internetGatewayRoutes) { if (this.internetGatewayRoutes == null) { setInternetGatewayRoutes(new java.util.ArrayList* The routes in the route table associated with the Internet Gateway. *
* * @param internetGatewayRoutes * The routes in the route table associated with the Internet Gateway. * @return Returns a reference to this object so that method calls can be chained together. */ public RouteHasOutOfScopeEndpointViolation withInternetGatewayRoutes(java.util.Collection