@Generated(value="software.amazon.awssdk:codegen") public final class AwsEc2InstanceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AwsEc2InstanceDetails.Builder,AwsEc2InstanceDetails>
The details of an Amazon EC2 instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
AwsEc2InstanceDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
static AwsEc2InstanceDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasIpV4Addresses()
For responses, this returns true if the service returned a value for the IpV4Addresses property.
|
boolean |
hasIpV6Addresses()
For responses, this returns true if the service returned a value for the IpV6Addresses property.
|
boolean |
hasNetworkInterfaces()
For responses, this returns true if the service returned a value for the NetworkInterfaces property.
|
String |
iamInstanceProfileArn()
The IAM profile ARN of the instance.
|
String |
imageId()
The Amazon Machine Image (AMI) ID of the instance.
|
List<String> |
ipV4Addresses()
The IPv4 addresses associated with the instance.
|
List<String> |
ipV6Addresses()
The IPv6 addresses associated with the instance.
|
String |
keyName()
The key name associated with the instance.
|
String |
launchedAt()
Indicates when the instance was launched.
|
AwsEc2InstanceMetadataOptions |
metadataOptions()
Details about the metadata options for the Amazon EC2 instance.
|
AwsEc2InstanceMonitoringDetails |
monitoring()
Describes the type of monitoring that’s turned on for an instance.
|
List<AwsEc2InstanceNetworkInterfacesDetails> |
networkInterfaces()
The identifiers of the network interfaces for the EC2 instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends AwsEc2InstanceDetails.Builder> |
serializableBuilderClass() |
String |
subnetId()
The identifier of the subnet that the instance was launched in.
|
AwsEc2InstanceDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
type()
The instance type of the instance.
|
String |
virtualizationType()
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
|
String |
vpcId()
The identifier of the VPC that the instance was launched in.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String type()
The instance type of the instance.
public final String imageId()
The Amazon Machine Image (AMI) ID of the instance.
public final boolean hasIpV4Addresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> ipV4Addresses()
The IPv4 addresses associated with the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpV4Addresses() method.
public final boolean hasIpV6Addresses()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<String> ipV6Addresses()
The IPv6 addresses associated with the instance.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasIpV6Addresses() method.
public final String keyName()
The key name associated with the instance.
public final String iamInstanceProfileArn()
The IAM profile ARN of the instance.
public final String vpcId()
The identifier of the VPC that the instance was launched in.
public final String subnetId()
The identifier of the subnet that the instance was launched in.
public final 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.
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 final boolean hasNetworkInterfaces()
isEmpty() method on the property).
This is useful because the SDK will never return a null collection or map, but you may need to differentiate
between the service returning nothing (or null) and the service returning an empty collection or map. For
requests, this returns true if a value for the property was specified in the request builder, and false if a
value was not specified.public final List<AwsEc2InstanceNetworkInterfacesDetails> networkInterfaces()
The identifiers of the network interfaces for the EC2 instance. The details for each network interface are in a
corresponding AwsEc2NetworkInterfacesDetails object.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasNetworkInterfaces() method.
AwsEc2NetworkInterfacesDetails object.public final String virtualizationType()
The virtualization type of the Amazon Machine Image (AMI) required to launch the instance.
public final AwsEc2InstanceMetadataOptions metadataOptions()
Details about the metadata options for the Amazon EC2 instance.
public final AwsEc2InstanceMonitoringDetails monitoring()
Describes the type of monitoring that’s turned on for an instance.
public AwsEc2InstanceDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<AwsEc2InstanceDetails.Builder,AwsEc2InstanceDetails>public static AwsEc2InstanceDetails.Builder builder()
public static Class<? extends AwsEc2InstanceDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.