Class InstanceCapacity
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.InstanceCapacity
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<InstanceCapacity.Builder,InstanceCapacity>
@Generated("software.amazon.awssdk:codegen") public final class InstanceCapacity extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceCapacity.Builder,InstanceCapacity>
Information about the number of instances that can be launched onto the Dedicated Host.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
InstanceCapacity.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Integer
availableCapacity()
The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.static InstanceCapacity.Builder
builder()
boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
instanceType()
The instance type supported by the Dedicated Host.List<SdkField<?>>
sdkFields()
static Class<? extends InstanceCapacity.Builder>
serializableBuilderClass()
InstanceCapacity.Builder
toBuilder()
String
toString()
Returns a string representation of this object.Integer
totalCapacity()
The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.-
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
-
availableCapacity
public final Integer availableCapacity()
The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
- Returns:
- The number of instances that can be launched onto the Dedicated Host based on the host's available capacity.
-
instanceType
public final String instanceType()
The instance type supported by the Dedicated Host.
- Returns:
- The instance type supported by the Dedicated Host.
-
totalCapacity
public final Integer totalCapacity()
The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
- Returns:
- The total number of instances that can be launched onto the Dedicated Host if there are no instances running on it.
-
toBuilder
public InstanceCapacity.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<InstanceCapacity.Builder,InstanceCapacity>
-
builder
public static InstanceCapacity.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceCapacity.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.
-
-