Class ReservedCapacitySummary
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ReservedCapacitySummary
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReservedCapacitySummary.Builder,ReservedCapacitySummary>
@Generated("software.amazon.awssdk:codegen") public final class ReservedCapacitySummary extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservedCapacitySummary.Builder,ReservedCapacitySummary>
Details of a reserved capacity for the training plan.
For more information about how to reserve GPU capacity for your SageMaker HyperPod clusters using Amazon SageMaker Training Plan, see
CreateTrainingPlan.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceReservedCapacitySummary.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The availability zone for the reserved capacity.static ReservedCapacitySummary.Builderbuilder()LongdurationHours()The number of whole hours in the total duration for this reserved capacity.LongdurationMinutes()The additional minutes beyond whole hours in the total duration for this reserved capacity.InstantendTime()The end time of the reserved capacity.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()ReservedCapacityInstanceTypeinstanceType()The instance type for the reserved capacity.StringinstanceTypeAsString()The instance type for the reserved capacity.StringreservedCapacityArn()The Amazon Resource Name (ARN); of the reserved capacity.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ReservedCapacitySummary.Builder>serializableBuilderClass()InstantstartTime()The start time of the reserved capacity.ReservedCapacityStatusstatus()The current status of the reserved capacity.StringstatusAsString()The current status of the reserved capacity.ReservedCapacitySummary.BuildertoBuilder()StringtoString()Returns a string representation of this object.IntegertotalInstanceCount()The total number of instances in the reserved capacity.-
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
-
reservedCapacityArn
public final String reservedCapacityArn()
The Amazon Resource Name (ARN); of the reserved capacity.
- Returns:
- The Amazon Resource Name (ARN); of the reserved capacity.
-
instanceType
public final ReservedCapacityInstanceType instanceType()
The instance type for the reserved capacity.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnReservedCapacityInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type for the reserved capacity.
- See Also:
ReservedCapacityInstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
The instance type for the reserved capacity.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnReservedCapacityInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- The instance type for the reserved capacity.
- See Also:
ReservedCapacityInstanceType
-
totalInstanceCount
public final Integer totalInstanceCount()
The total number of instances in the reserved capacity.
- Returns:
- The total number of instances in the reserved capacity.
-
status
public final ReservedCapacityStatus status()
The current status of the reserved capacity.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnReservedCapacityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the reserved capacity.
- See Also:
ReservedCapacityStatus
-
statusAsString
public final String statusAsString()
The current status of the reserved capacity.
If the service returns an enum value that is not available in the current SDK version,
statuswill returnReservedCapacityStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstatusAsString().- Returns:
- The current status of the reserved capacity.
- See Also:
ReservedCapacityStatus
-
availabilityZone
public final String availabilityZone()
The availability zone for the reserved capacity.
- Returns:
- The availability zone for the reserved capacity.
-
durationHours
public final Long durationHours()
The number of whole hours in the total duration for this reserved capacity.
- Returns:
- The number of whole hours in the total duration for this reserved capacity.
-
durationMinutes
public final Long durationMinutes()
The additional minutes beyond whole hours in the total duration for this reserved capacity.
- Returns:
- The additional minutes beyond whole hours in the total duration for this reserved capacity.
-
startTime
public final Instant startTime()
The start time of the reserved capacity.
- Returns:
- The start time of the reserved capacity.
-
endTime
public final Instant endTime()
The end time of the reserved capacity.
- Returns:
- The end time of the reserved capacity.
-
toBuilder
public ReservedCapacitySummary.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReservedCapacitySummary.Builder,ReservedCapacitySummary>
-
builder
public static ReservedCapacitySummary.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservedCapacitySummary.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
-
-