@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2InstanceViolation extends Object implements Serializable, Cloneable, StructuredPojo
Violation detail for an EC2 instance resource.
Constructor and Description |
---|
AwsEc2InstanceViolation() |
Modifier and Type | Method and Description |
---|---|
AwsEc2InstanceViolation |
clone() |
boolean |
equals(Object obj) |
List<AwsEc2NetworkInterfaceViolation> |
getAwsEc2NetworkInterfaceViolations()
Violation detail for network interfaces associated with the EC2 instance.
|
String |
getViolationTarget()
The resource ID of the EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAwsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
|
void |
setViolationTarget(String violationTarget)
The resource ID of the EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2InstanceViolation |
withAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation... awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
|
AwsEc2InstanceViolation |
withAwsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
|
AwsEc2InstanceViolation |
withViolationTarget(String violationTarget)
The resource ID of the EC2 instance.
|
public void setViolationTarget(String violationTarget)
The resource ID of the EC2 instance.
violationTarget
- The resource ID of the EC2 instance.public String getViolationTarget()
The resource ID of the EC2 instance.
public AwsEc2InstanceViolation withViolationTarget(String violationTarget)
The resource ID of the EC2 instance.
violationTarget
- The resource ID of the EC2 instance.public List<AwsEc2NetworkInterfaceViolation> getAwsEc2NetworkInterfaceViolations()
Violation detail for network interfaces associated with the EC2 instance.
public void setAwsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
awsEc2NetworkInterfaceViolations
- Violation detail for network interfaces associated with the EC2 instance.public AwsEc2InstanceViolation withAwsEc2NetworkInterfaceViolations(AwsEc2NetworkInterfaceViolation... awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
NOTE: This method appends the values to the existing list (if any). Use
setAwsEc2NetworkInterfaceViolations(java.util.Collection)
or
withAwsEc2NetworkInterfaceViolations(java.util.Collection)
if you want to override the existing values.
awsEc2NetworkInterfaceViolations
- Violation detail for network interfaces associated with the EC2 instance.public AwsEc2InstanceViolation withAwsEc2NetworkInterfaceViolations(Collection<AwsEc2NetworkInterfaceViolation> awsEc2NetworkInterfaceViolations)
Violation detail for network interfaces associated with the EC2 instance.
awsEc2NetworkInterfaceViolations
- Violation detail for network interfaces associated with the EC2 instance.public String toString()
toString
in class Object
Object.toString()
public AwsEc2InstanceViolation clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.