@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2NetworkInterfaceViolation extends Object implements Serializable, Cloneable, StructuredPojo
Violation detail for network interfaces associated with an EC2 instance.
Constructor and Description |
---|
AwsEc2NetworkInterfaceViolation() |
Modifier and Type | Method and Description |
---|---|
AwsEc2NetworkInterfaceViolation |
clone() |
boolean |
equals(Object obj) |
List<String> |
getViolatingSecurityGroups()
List of security groups that violate the rules specified in the primary security group of the Firewall Manager
policy.
|
String |
getViolationTarget()
The resource ID of the network interface.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setViolatingSecurityGroups(Collection<String> violatingSecurityGroups)
List of security groups that violate the rules specified in the primary security group of the Firewall Manager
policy.
|
void |
setViolationTarget(String violationTarget)
The resource ID of the network interface.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2NetworkInterfaceViolation |
withViolatingSecurityGroups(Collection<String> violatingSecurityGroups)
List of security groups that violate the rules specified in the primary security group of the Firewall Manager
policy.
|
AwsEc2NetworkInterfaceViolation |
withViolatingSecurityGroups(String... violatingSecurityGroups)
List of security groups that violate the rules specified in the primary security group of the Firewall Manager
policy.
|
AwsEc2NetworkInterfaceViolation |
withViolationTarget(String violationTarget)
The resource ID of the network interface.
|
public void setViolationTarget(String violationTarget)
The resource ID of the network interface.
violationTarget
- The resource ID of the network interface.public String getViolationTarget()
The resource ID of the network interface.
public AwsEc2NetworkInterfaceViolation withViolationTarget(String violationTarget)
The resource ID of the network interface.
violationTarget
- The resource ID of the network interface.public List<String> getViolatingSecurityGroups()
List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
public void setViolatingSecurityGroups(Collection<String> violatingSecurityGroups)
List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
violatingSecurityGroups
- List of security groups that violate the rules specified in the primary security group of the Firewall
Manager policy.public AwsEc2NetworkInterfaceViolation withViolatingSecurityGroups(String... violatingSecurityGroups)
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
setViolatingSecurityGroups(java.util.Collection)
or
withViolatingSecurityGroups(java.util.Collection)
if you want to override the existing values.
violatingSecurityGroups
- List of security groups that violate the rules specified in the primary security group of the Firewall
Manager policy.public AwsEc2NetworkInterfaceViolation withViolatingSecurityGroups(Collection<String> violatingSecurityGroups)
List of security groups that violate the rules specified in the primary security group of the Firewall Manager policy.
violatingSecurityGroups
- List of security groups that violate the rules specified in the primary security group of the Firewall
Manager policy.public String toString()
toString
in class Object
Object.toString()
public AwsEc2NetworkInterfaceViolation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.