@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsEc2InstanceDetails extends Object implements Serializable, Cloneable, StructuredPojo
The details of an Amazon EC2 instance.
Constructor and Description |
---|
AwsEc2InstanceDetails() |
Modifier and Type | Method and Description |
---|---|
AwsEc2InstanceDetails |
clone() |
boolean |
equals(Object obj) |
String |
getIamInstanceProfileArn()
The IAM profile ARN of the instance.
|
String |
getImageId()
The Amazon Machine Image (AMI) ID of the instance.
|
List<String> |
getIpV4Addresses()
The IPv4 addresses associated with the instance.
|
List<String> |
getIpV6Addresses()
The IPv6 addresses associated with the instance.
|
String |
getKeyName()
The key name associated with the instance.
|
String |
getLaunchedAt()
The date/time the instance was launched.
|
String |
getSubnetId()
The identifier of the subnet that the instance was launched in.
|
String |
getType()
The instance type of the instance.
|
String |
getVpcId()
The identifier of the VPC that the instance was launched in.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM profile ARN of the instance.
|
void |
setImageId(String imageId)
The Amazon Machine Image (AMI) ID of the instance.
|
void |
setIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses associated with the instance.
|
void |
setIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses associated with the instance.
|
void |
setKeyName(String keyName)
The key name associated with the instance.
|
void |
setLaunchedAt(String launchedAt)
The date/time the instance was launched.
|
void |
setSubnetId(String subnetId)
The identifier of the subnet that the instance was launched in.
|
void |
setType(String type)
The instance type of the instance.
|
void |
setVpcId(String vpcId)
The identifier of the VPC that the instance was launched in.
|
String |
toString()
Returns a string representation of this object.
|
AwsEc2InstanceDetails |
withIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM profile ARN of the instance.
|
AwsEc2InstanceDetails |
withImageId(String imageId)
The Amazon Machine Image (AMI) ID of the instance.
|
AwsEc2InstanceDetails |
withIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses associated with the instance.
|
AwsEc2InstanceDetails |
withIpV4Addresses(String... ipV4Addresses)
The IPv4 addresses associated with the instance.
|
AwsEc2InstanceDetails |
withIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses associated with the instance.
|
AwsEc2InstanceDetails |
withIpV6Addresses(String... ipV6Addresses)
The IPv6 addresses associated with the instance.
|
AwsEc2InstanceDetails |
withKeyName(String keyName)
The key name associated with the instance.
|
AwsEc2InstanceDetails |
withLaunchedAt(String launchedAt)
The date/time the instance was launched.
|
AwsEc2InstanceDetails |
withSubnetId(String subnetId)
The identifier of the subnet that the instance was launched in.
|
AwsEc2InstanceDetails |
withType(String type)
The instance type of the instance.
|
AwsEc2InstanceDetails |
withVpcId(String vpcId)
The identifier of the VPC that the instance was launched in.
|
public void setType(String type)
The instance type of the instance.
type
- The instance type of the instance.public String getType()
The instance type of the instance.
public AwsEc2InstanceDetails withType(String type)
The instance type of the instance.
type
- The instance type of the instance.public void setImageId(String imageId)
The Amazon Machine Image (AMI) ID of the instance.
imageId
- The Amazon Machine Image (AMI) ID of the instance.public String getImageId()
The Amazon Machine Image (AMI) ID of the instance.
public AwsEc2InstanceDetails withImageId(String imageId)
The Amazon Machine Image (AMI) ID of the instance.
imageId
- The Amazon Machine Image (AMI) ID of the instance.public List<String> getIpV4Addresses()
The IPv4 addresses associated with the instance.
public void setIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses associated with the instance.
ipV4Addresses
- The IPv4 addresses associated with the instance.public AwsEc2InstanceDetails withIpV4Addresses(String... ipV4Addresses)
The IPv4 addresses associated with the 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 associated with the instance.public AwsEc2InstanceDetails withIpV4Addresses(Collection<String> ipV4Addresses)
The IPv4 addresses associated with the instance.
ipV4Addresses
- The IPv4 addresses associated with the instance.public List<String> getIpV6Addresses()
The IPv6 addresses associated with the instance.
public void setIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses associated with the instance.
ipV6Addresses
- The IPv6 addresses associated with the instance.public AwsEc2InstanceDetails withIpV6Addresses(String... ipV6Addresses)
The IPv6 addresses associated with the 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 associated with the instance.public AwsEc2InstanceDetails withIpV6Addresses(Collection<String> ipV6Addresses)
The IPv6 addresses associated with the instance.
ipV6Addresses
- The IPv6 addresses associated with the instance.public void setKeyName(String keyName)
The key name associated with the instance.
keyName
- The key name associated with the instance.public String getKeyName()
The key name associated with the instance.
public AwsEc2InstanceDetails withKeyName(String keyName)
The key name associated with the instance.
keyName
- The key name associated with the instance.public void setIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM profile ARN of the instance.
iamInstanceProfileArn
- The IAM profile ARN of the instance.public String getIamInstanceProfileArn()
The IAM profile ARN of the instance.
public AwsEc2InstanceDetails withIamInstanceProfileArn(String iamInstanceProfileArn)
The IAM profile ARN of the instance.
iamInstanceProfileArn
- The IAM profile ARN of the instance.public void setVpcId(String vpcId)
The identifier of the VPC that the instance was launched in.
vpcId
- The identifier of the VPC that the instance was launched in.public String getVpcId()
The identifier of the VPC that the instance was launched in.
public AwsEc2InstanceDetails withVpcId(String vpcId)
The identifier of the VPC that the instance was launched in.
vpcId
- The identifier of the VPC that the instance was launched in.public void setSubnetId(String subnetId)
The identifier of the subnet that the instance was launched in.
subnetId
- The identifier of the subnet that the instance was launched in.public String getSubnetId()
The identifier of the subnet that the instance was launched in.
public AwsEc2InstanceDetails withSubnetId(String subnetId)
The identifier of the subnet that the instance was launched in.
subnetId
- The identifier of the subnet that the instance was launched in.public void setLaunchedAt(String launchedAt)
The date/time the instance was launched.
launchedAt
- The date/time the instance was launched.public String getLaunchedAt()
The date/time the instance was launched.
public AwsEc2InstanceDetails withLaunchedAt(String launchedAt)
The date/time the instance was launched.
launchedAt
- The date/time the instance was launched.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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.