@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()
Returns true if the IpV4Addresses property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
boolean |
hasIpV6Addresses()
Returns true if the IpV6Addresses property was specified by the sender (it may be empty), or false if the sender
did not specify the value (it will be empty).
|
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.
|
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 |
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()
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.
You can use hasIpV4Addresses() to see if a value was sent in this field.
public final boolean hasIpV6Addresses()
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.
You can use hasIpV6Addresses() to see if a value was sent in this field.
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. 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. For example, 2020-03-22T13:22:13.933Z.
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 © 2021. All rights reserved.