@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()
Indicates when the instance was launched.
|
AwsEc2InstanceMetadataOptions |
getMetadataOptions()
Details about the metadata options for the Amazon EC2 instance.
|
List<AwsEc2InstanceNetworkInterfacesDetails> |
getNetworkInterfaces()
The identifiers of the network interfaces for the EC2 instance.
|
String |
getSubnetId()
The identifier of the subnet that the instance was launched in.
|
String |
getType()
The instance type of the instance.
|
String |
getVirtualizationType()
The virtualization type of the Amazon Machine Image (AMI) required to launch 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)
Indicates when the instance was launched.
|
void |
setMetadataOptions(AwsEc2InstanceMetadataOptions metadataOptions)
Details about the metadata options for the Amazon EC2 instance.
|
void |
setNetworkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces)
The identifiers of the network interfaces for the EC2 instance.
|
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 |
setVirtualizationType(String virtualizationType)
The virtualization type of the Amazon Machine Image (AMI) required to launch 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)
Indicates when the instance was launched.
|
AwsEc2InstanceDetails |
withMetadataOptions(AwsEc2InstanceMetadataOptions metadataOptions)
Details about the metadata options for the Amazon EC2 instance.
|
AwsEc2InstanceDetails |
withNetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails... networkInterfaces)
The identifiers of the network interfaces for the EC2 instance.
|
AwsEc2InstanceDetails |
withNetworkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces)
The identifiers of the network interfaces for the EC2 instance.
|
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 |
withVirtualizationType(String virtualizationType)
The virtualization type of the Amazon Machine Image (AMI) required to launch 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)
Indicates when the instance was launched.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T
. For example, 2020-03-22T13:22:13.933Z
.
launchedAt
- Indicates when the instance was launched.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T
. For
example, 2020-03-22T13:22:13.933Z
.
public String getLaunchedAt()
Indicates when the instance was launched.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T
. For example, 2020-03-22T13:22:13.933Z
.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T
. For
example, 2020-03-22T13:22:13.933Z
.
public AwsEc2InstanceDetails withLaunchedAt(String launchedAt)
Indicates when the instance was launched.
Uses the date-time
format specified in RFC
3339 section 5.6, Internet Date/Time Format. The value cannot contain spaces, and date and time should be
separated by T
. For example, 2020-03-22T13:22:13.933Z
.
launchedAt
- Indicates when the instance was launched.
Uses the date-time
format specified in RFC 3339 section 5.6, Internet Date/Time
Format. The value cannot contain spaces, and date and time should be separated by T
. For
example, 2020-03-22T13:22:13.933Z
.
public List<AwsEc2InstanceNetworkInterfacesDetails> getNetworkInterfaces()
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding AwsEc2NetworkInterfacesDetails
object.
AwsEc2NetworkInterfacesDetails
object.public void setNetworkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces)
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding AwsEc2NetworkInterfacesDetails
object.
networkInterfaces
- The identifiers of the network interfaces for the EC2 instance. The details for each network interface are
in a corresponding AwsEc2NetworkInterfacesDetails
object.public AwsEc2InstanceDetails withNetworkInterfaces(AwsEc2InstanceNetworkInterfacesDetails... networkInterfaces)
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding AwsEc2NetworkInterfacesDetails
object.
NOTE: This method appends the values to the existing list (if any). Use
setNetworkInterfaces(java.util.Collection)
or withNetworkInterfaces(java.util.Collection)
if
you want to override the existing values.
networkInterfaces
- The identifiers of the network interfaces for the EC2 instance. The details for each network interface are
in a corresponding AwsEc2NetworkInterfacesDetails
object.public AwsEc2InstanceDetails withNetworkInterfaces(Collection<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces)
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding AwsEc2NetworkInterfacesDetails
object.
networkInterfaces
- The identifiers of the network interfaces for the EC2 instance. The details for each network interface are
in a corresponding AwsEc2NetworkInterfacesDetails
object.public void setVirtualizationType(String virtualizationType)
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
virtualizationType
- The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.public String getVirtualizationType()
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
public AwsEc2InstanceDetails withVirtualizationType(String virtualizationType)
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
virtualizationType
- The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.public void setMetadataOptions(AwsEc2InstanceMetadataOptions metadataOptions)
Details about the metadata options for the Amazon EC2 instance.
metadataOptions
- Details about the metadata options for the Amazon EC2 instance.public AwsEc2InstanceMetadataOptions getMetadataOptions()
Details about the metadata options for the Amazon EC2 instance.
public AwsEc2InstanceDetails withMetadataOptions(AwsEc2InstanceMetadataOptions metadataOptions)
Details about the metadata options for the Amazon EC2 instance.
metadataOptions
- Details about the metadata options for 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.