Class InstanceUsage
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceUsage
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstanceUsage.Builder,InstanceUsage>
@Generated("software.amazon.awssdk:codegen") public final class InstanceUsage extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceUsage.Builder,InstanceUsage>
Information about the Capacity Reservation usage.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InstanceUsage.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
accountId()
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.static InstanceUsage.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
List<SdkField<?>>
sdkFields()
static Class<? extends InstanceUsage.Builder>
serializableBuilderClass()
InstanceUsage.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
usedInstanceCount()
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
accountId
public final String accountId()
The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
- Returns:
- The ID of the Amazon Web Services account that is making use of the Capacity Reservation.
-
usedInstanceCount
public final Integer usedInstanceCount()
The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
- Returns:
- The number of instances the Amazon Web Services account currently has in the Capacity Reservation.
-
toBuilder
public InstanceUsage.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InstanceUsage.Builder,InstanceUsage>
-
builder
public static InstanceUsage.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceUsage.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
-