Class Ec2CapacityReservation
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.Ec2CapacityReservation
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Ec2CapacityReservation.Builder,Ec2CapacityReservation>
@Generated("software.amazon.awssdk:codegen") public final class Ec2CapacityReservation extends Object implements SdkPojo, Serializable, ToCopyableBuilder<Ec2CapacityReservation.Builder,Ec2CapacityReservation>
The EC2 capacity reservations that are shared to an ML capacity reservation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceEc2CapacityReservation.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegeravailableInstanceCount()The number of instances that are currently available in the EC2 capacity reservation.static Ec2CapacityReservation.Builderbuilder()Stringec2CapacityReservationId()The unique identifier for an EC2 capacity reservation that's part of the ML capacity reservation.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends Ec2CapacityReservation.Builder>serializableBuilderClass()Ec2CapacityReservation.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertotalInstanceCount()The number of instances that you allocated to the EC2 capacity reservation.IntegerusedByCurrentEndpoint()The number of instances from the EC2 capacity reservation that are being used by the endpoint.-
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
-
ec2CapacityReservationId
public final String ec2CapacityReservationId()
The unique identifier for an EC2 capacity reservation that's part of the ML capacity reservation.
- Returns:
- The unique identifier for an EC2 capacity reservation that's part of the ML capacity reservation.
-
totalInstanceCount
public final Integer totalInstanceCount()
The number of instances that you allocated to the EC2 capacity reservation.
- Returns:
- The number of instances that you allocated to the EC2 capacity reservation.
-
availableInstanceCount
public final Integer availableInstanceCount()
The number of instances that are currently available in the EC2 capacity reservation.
- Returns:
- The number of instances that are currently available in the EC2 capacity reservation.
-
usedByCurrentEndpoint
public final Integer usedByCurrentEndpoint()
The number of instances from the EC2 capacity reservation that are being used by the endpoint.
- Returns:
- The number of instances from the EC2 capacity reservation that are being used by the endpoint.
-
toBuilder
public Ec2CapacityReservation.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<Ec2CapacityReservation.Builder,Ec2CapacityReservation>
-
builder
public static Ec2CapacityReservation.Builder builder()
-
serializableBuilderClass
public static Class<? extends Ec2CapacityReservation.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-