/* * 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 network interfaces associated with an EC2 instance. *
* * @see AWS API Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkInterfaceViolation implements Serializable, Cloneable, StructuredPojo { /** ** The resource ID of the network interface. *
*/ private String violationTarget; /** ** List of security groups that violate the rules specified in the primary security group of the Firewall Manager * policy. *
*/ private java.util.List* The resource ID of the network interface. *
* * @param violationTarget * The resource ID of the network interface. */ public void setViolationTarget(String violationTarget) { this.violationTarget = violationTarget; } /** ** The resource ID of the network interface. *
* * @return The resource ID of the network interface. */ public String getViolationTarget() { return this.violationTarget; } /** ** The resource ID of the network interface. *
* * @param violationTarget * The resource ID of the network interface. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkInterfaceViolation withViolationTarget(String violationTarget) { setViolationTarget(violationTarget); return this; } /** ** List of security groups that violate the rules specified in the primary security group of the Firewall Manager * policy. *
* * @return List of security groups that violate the rules specified in the primary security group of the Firewall * Manager policy. */ public java.util.List* List of security groups that violate the rules specified in the primary security group of the Firewall Manager * policy. *
* * @param violatingSecurityGroups * List of security groups that violate the rules specified in the primary security group of the Firewall * Manager policy. */ public void setViolatingSecurityGroups(java.util.Collection* List of security groups that violate the rules specified in the primary security group of the Firewall Manager * policy. *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setViolatingSecurityGroups(java.util.Collection)} or * {@link #withViolatingSecurityGroups(java.util.Collection)} if you want to override the existing values. *
* * @param violatingSecurityGroups * List of security groups that violate the rules specified in the primary security group of the Firewall * Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkInterfaceViolation withViolatingSecurityGroups(String... violatingSecurityGroups) { if (this.violatingSecurityGroups == null) { setViolatingSecurityGroups(new java.util.ArrayList* List of security groups that violate the rules specified in the primary security group of the Firewall Manager * policy. *
* * @param violatingSecurityGroups * List of security groups that violate the rules specified in the primary security group of the Firewall * Manager policy. * @return Returns a reference to this object so that method calls can be chained together. */ public AwsEc2NetworkInterfaceViolation withViolatingSecurityGroups(java.util.Collection