/* * 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; /** *
* Violation detail for an internet gateway route with an inactive state in the customer subnet route table or Network * Firewall subnet route table. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class NetworkFirewallBlackHoleRouteDetectedViolation implements Serializable, Cloneable, StructuredPojo { /** ** The subnet that has an inactive state. *
*/ private String violationTarget; /** ** Information about the route table ID. *
*/ private String routeTableId; /** ** Information about the VPC ID. *
*/ private String vpcId; /** ** Information about the route or routes that are in violation. *
*/ private java.util.List* The subnet that has an inactive state. *
* * @param violationTarget * The subnet that has an inactive state. */ public void setViolationTarget(String violationTarget) { this.violationTarget = violationTarget; } /** ** The subnet that has an inactive state. *
* * @return The subnet that has an inactive state. */ public String getViolationTarget() { return this.violationTarget; } /** ** The subnet that has an inactive state. *
* * @param violationTarget * The subnet that has an inactive state. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallBlackHoleRouteDetectedViolation withViolationTarget(String violationTarget) { setViolationTarget(violationTarget); return this; } /** ** Information about the route table ID. *
* * @param routeTableId * Information about the route table ID. */ public void setRouteTableId(String routeTableId) { this.routeTableId = routeTableId; } /** ** Information about the route table ID. *
* * @return Information about the route table ID. */ public String getRouteTableId() { return this.routeTableId; } /** ** Information about the route table ID. *
* * @param routeTableId * Information about the route table ID. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallBlackHoleRouteDetectedViolation 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 NetworkFirewallBlackHoleRouteDetectedViolation withVpcId(String vpcId) { setVpcId(vpcId); return this; } /** ** Information about the route or routes that are in violation. *
* * @return Information about the route or routes that are in violation. */ public java.util.List* Information about the route or routes that are in violation. *
* * @param violatingRoutes * Information about the route or routes that are in violation. */ public void setViolatingRoutes(java.util.Collection* Information about the route or 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 * Information about the route or routes that are in violation. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallBlackHoleRouteDetectedViolation withViolatingRoutes(Route... violatingRoutes) { if (this.violatingRoutes == null) { setViolatingRoutes(new java.util.ArrayList* Information about the route or routes that are in violation. *
* * @param violatingRoutes * Information about the route or routes that are in violation. * @return Returns a reference to this object so that method calls can be chained together. */ public NetworkFirewallBlackHoleRouteDetectedViolation withViolatingRoutes(java.util.Collection