@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2InstanceDetails extends Object implements Serializable, Cloneable, StructuredPojo
Details of the Amazon EC2 instance involved in a finding.
Constructor and Description |
---|
AwsEc2InstanceDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2InstanceDetails |
clone() |
boolean |
equals(Object obj) |
String |
getIamInstanceProfileArn()
The IAM instance profile ARN of the Amazon EC2 instance.
|
String |
getImageId()
The image ID of the Amazon EC2 instance.
|
List<String> |
getIpV4Addresses()
The IPv4 addresses of the Amazon EC2 instance.
|
List<String> |
getIpV6Addresses()
The IPv6 addresses of the Amazon EC2 instance.
|
String |
getKeyName()
The name of the key pair used to launch the Amazon EC2 instance.
|
Date |
getLaunchedAt()
The date and time the Amazon EC2 instance was launched at.
|
String |
getPlatform()
The platform of the Amazon EC2 instance.
|
String |
getSubnetId()
The subnet ID of the Amazon EC2 instance.
|
String |
getType()
The type of the Amazon EC2 instance.
|
String |
getVpcId()
The VPC ID of the Amazon EC2 instance.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM instance profile ARN of the Amazon EC2 instance.
|
void |
setImageId(String imageId)
The image ID of the Amazon EC2 instance.
|
void |
setIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
|
void |
setIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
|
void |
setKeyName(String keyName)
The name of the key pair used to launch the Amazon EC2 instance.
|
void |
setLaunchedAt(Date launchedAt)
The date and time the Amazon EC2 instance was launched at.
|
void |
setPlatform(String platform)
The platform of the Amazon EC2 instance.
|
void |
setSubnetId(String subnetId)
The subnet ID of the Amazon EC2 instance.
|
void |
setType(String type)
The type of the Amazon EC2 instance.
|
void |
setVpcId(String vpcId)
The VPC ID of the Amazon EC2 instance.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2InstanceDetails |
withIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM instance profile ARN of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withImageId(String imageId)
The image ID of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withIpV4Addresses(String... ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withIpV6Addresses(String... ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withKeyName(String keyName)
The name of the key pair used to launch the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withLaunchedAt(Date launchedAt)
The date and time the Amazon EC2 instance was launched at.
|
AwsEc2InstanceDetails |
withPlatform(String platform)
The platform of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withSubnetId(String subnetId)
The subnet ID of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withType(String type)
The type of the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withVpcId(String vpcId)
The VPC ID of the Amazon EC2 instance.
|
public void setIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM instance profile ARN of the Amazon EC2 instance.
iamInstanceProfileArn
- The IAM instance profile ARN of the Amazon EC2 instance.public String getIamInstanceProfileArn()
The IAM instance profile ARN of the Amazon EC2 instance.
public AwsEc2InstanceDetails withIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM instance profile ARN of the Amazon EC2 instance.
iamInstanceProfileArn
- The IAM instance profile ARN of the Amazon EC2 instance.public void setImageId(String imageId)
The image ID of the Amazon EC2 instance.
imageId
- The image ID of the Amazon EC2 instance.public String getImageId()
The image ID of the Amazon EC2 instance.
public AwsEc2InstanceDetails withImageId(String imageId)
The image ID of the Amazon EC2 instance.
imageId
- The image ID of the Amazon EC2 instance.public List<String> getIpV4Addresses()
The IPv4 addresses of the Amazon EC2 instance.
public void setIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
ipV4Addresses
- The IPv4 addresses of the Amazon EC2 instance.public AwsEc2InstanceDetails withIpV4Addresses(String... ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
NOTE: This method appends the values to the existing list (if any). Use
setIpV4Addresses(java.util.Collection)
or withIpV4Addresses(java.util.Collection)
if you want
to override the existing values.
ipV4Addresses
- The IPv4 addresses of the Amazon EC2 instance.public AwsEc2InstanceDetails withIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses of the Amazon EC2 instance.
ipV4Addresses
- The IPv4 addresses of the Amazon EC2 instance.public List<String> getIpV6Addresses()
The IPv6 addresses of the Amazon EC2 instance.
public void setIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
ipV6Addresses
- The IPv6 addresses of the Amazon EC2 instance.public AwsEc2InstanceDetails withIpV6Addresses(String... ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
NOTE: This method appends the values to the existing list (if any). Use
setIpV6Addresses(java.util.Collection)
or withIpV6Addresses(java.util.Collection)
if you want
to override the existing values.
ipV6Addresses
- The IPv6 addresses of the Amazon EC2 instance.public AwsEc2InstanceDetails withIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses of the Amazon EC2 instance.
ipV6Addresses
- The IPv6 addresses of the Amazon EC2 instance.public void setKeyName(String keyName)
The name of the key pair used to launch the Amazon EC2 instance.
keyName
- The name of the key pair used to launch the Amazon EC2 instance.public String getKeyName()
The name of the key pair used to launch the Amazon EC2 instance.
public AwsEc2InstanceDetails withKeyName(String keyName)
The name of the key pair used to launch the Amazon EC2 instance.
keyName
- The name of the key pair used to launch the Amazon EC2 instance.public void setLaunchedAt(Date launchedAt)
The date and time the Amazon EC2 instance was launched at.
launchedAt
- The date and time the Amazon EC2 instance was launched at.public Date getLaunchedAt()
The date and time the Amazon EC2 instance was launched at.
public AwsEc2InstanceDetails withLaunchedAt(Date launchedAt)
The date and time the Amazon EC2 instance was launched at.
launchedAt
- The date and time the Amazon EC2 instance was launched at.public void setPlatform(String platform)
The platform of the Amazon EC2 instance.
platform
- The platform of the Amazon EC2 instance.public String getPlatform()
The platform of the Amazon EC2 instance.
public AwsEc2InstanceDetails withPlatform(String platform)
The platform of the Amazon EC2 instance.
platform
- The platform of the Amazon EC2 instance.public void setSubnetId(String subnetId)
The subnet ID of the Amazon EC2 instance.
subnetId
- The subnet ID of the Amazon EC2 instance.public String getSubnetId()
The subnet ID of the Amazon EC2 instance.
public AwsEc2InstanceDetails withSubnetId(String subnetId)
The subnet ID of the Amazon EC2 instance.
subnetId
- The subnet ID of the Amazon EC2 instance.public void setType(String type)
The type of the Amazon EC2 instance.
type
- The type of the Amazon EC2 instance.public String getType()
The type of the Amazon EC2 instance.
public AwsEc2InstanceDetails withType(String type)
The type of the Amazon EC2 instance.
type
- The type of the Amazon EC2 instance.public void setVpcId(String vpcId)
The VPC ID of the Amazon EC2 instance.
vpcId
- The VPC ID of the Amazon EC2 instance.public String getVpcId()
The VPC ID of the Amazon EC2 instance.
public AwsEc2InstanceDetails withVpcId(String vpcId)
The VPC ID of the Amazon EC2 instance.
vpcId
- The VPC ID of the Amazon EC2 instance.public String toString()
toString
in class Object
Object.toString()
public AwsEc2InstanceDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.