@Generated(value="software.amazon.awssdk:codegen") public final class InstanceDetails extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceDetails.Builder,InstanceDetails>
Contains information about the details of an instance.
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceDetails.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
availabilityZone()
The Availability Zone of the EC2 instance.
|
static InstanceDetails.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasNetworkInterfaces()
For responses, this returns true if the service returned a value for the NetworkInterfaces property.
|
boolean |
hasProductCodes()
For responses, this returns true if the service returned a value for the ProductCodes property.
|
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
IamInstanceProfile |
iamInstanceProfile()
The profile information of the EC2 instance.
|
String |
imageDescription()
The image description of the EC2 instance.
|
String |
imageId()
The image ID of the EC2 instance.
|
String |
instanceId()
The ID of the EC2 instance.
|
String |
instanceState()
The state of the EC2 instance.
|
String |
instanceType()
The type of the EC2 instance.
|
String |
launchTime()
The launch time of the EC2 instance.
|
List<NetworkInterface> |
networkInterfaces()
The elastic network interface information of the EC2 instance.
|
String |
outpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost.
|
String |
platform()
The platform of the EC2 instance.
|
List<ProductCode> |
productCodes()
The product code of the EC2 instance.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceDetails.Builder> |
serializableBuilderClass() |
List<Tag> |
tags()
The tags of the EC2 instance.
|
InstanceDetails.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String availabilityZone()
The Availability Zone of the EC2 instance.
public final IamInstanceProfile iamInstanceProfile()
The profile information of the EC2 instance.
public final String imageDescription()
The image description of the EC2 instance.
public final String imageId()
The image ID of the EC2 instance.
public final String instanceId()
The ID of the EC2 instance.
public final String instanceState()
The state of the EC2 instance.
public final String instanceType()
The type of the EC2 instance.
public final String outpostArn()
The Amazon Resource Name (ARN) of the Amazon Web Services Outpost. Only applicable to Amazon Web Services Outposts instances.
public final String launchTime()
The launch time of the EC2 instance.
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<NetworkInterface> networkInterfaces()
The elastic network interface information of the EC2 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 hasNetworkInterfaces() method.
public final String platform()
The platform of the EC2 instance.
public final boolean hasProductCodes()
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<ProductCode> productCodes()
The product code of the EC2 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 hasProductCodes() method.
public final boolean hasTags()
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<Tag> tags()
The tags of the EC2 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 hasTags() method.
public InstanceDetails.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceDetails.Builder,InstanceDetails>public static InstanceDetails.Builder builder()
public static Class<? extends InstanceDetails.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.