@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()
Returns true if the NetworkInterfaces 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 |
hasProductCodes()
Returns true if the ProductCodes 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 |
hasTags()
Returns true if the Tags property was specified by the sender (it may be empty), or false if the sender did not
specify the value (it will be empty).
|
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 AWS 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 AWS Outpost. Only applicable to AWS Outposts instances.
public final String launchTime()
The launch time of the EC2 instance.
public final boolean hasNetworkInterfaces()
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.
You can use hasNetworkInterfaces() to see if a value was sent in this field.
public final String platform()
The platform of the EC2 instance.
public final boolean hasProductCodes()
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.
You can use hasProductCodes() to see if a value was sent in this field.
public final boolean hasTags()
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.
You can use hasTags() to see if a value was sent in this field.
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 © 2021. All rights reserved.