@Generated(value="software.amazon.awssdk:codegen") public final class Instance extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Instance.Builder,Instance>
Details discovered information about a running instance using Linux subscriptions.
| Modifier and Type | Class and Description |
|---|---|
static interface |
Instance.Builder |
| Modifier and Type | Method and Description |
|---|---|
String |
accountID()
The account ID which owns the instance.
|
String |
amiId()
The AMI ID used to launch the instance.
|
static Instance.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasProductCode()
For responses, this returns true if the service returned a value for the ProductCode property.
|
String |
instanceID()
The instance ID of the resource.
|
String |
instanceType()
The instance type of the resource.
|
String |
lastUpdatedTime()
The time in which the last discovery updated the instance details.
|
List<String> |
productCode()
The product code for the instance.
|
String |
region()
The Region the instance is running in.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends Instance.Builder> |
serializableBuilderClass() |
String |
status()
The status of the instance.
|
String |
subscriptionName()
The name of the subscription being used by the instance.
|
Instance.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
String |
usageOperation()
The usage operation of the instance.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String accountID()
The account ID which owns the instance.
public final String amiId()
The AMI ID used to launch the instance.
public final String instanceID()
The instance ID of the resource.
public final String instanceType()
The instance type of the resource.
public final String lastUpdatedTime()
The time in which the last discovery updated the instance details.
public final boolean hasProductCode()
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> productCode()
The product code for the instance. For more information, see Usage operation values in the License Manager User Guide .
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 hasProductCode() method.
public final String region()
The Region the instance is running in.
public final String status()
The status of the instance.
public final String subscriptionName()
The name of the subscription being used by the instance.
public final String usageOperation()
The usage operation of the instance. For more information, see For more information, see Usage operation values in the License Manager User Guide.
public Instance.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<Instance.Builder,Instance>public static Instance.Builder builder()
public static Class<? extends Instance.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.