Class ReservedCapacityOffering
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.ReservedCapacityOffering
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ReservedCapacityOffering.Builder,ReservedCapacityOffering>
@Generated("software.amazon.awssdk:codegen") public final class ReservedCapacityOffering extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ReservedCapacityOffering.Builder,ReservedCapacityOffering>
Details about a reserved capacity offering for a training plan offering.
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 interfaceReservedCapacityOffering.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringavailabilityZone()The availability zone for the reserved capacity offering.static ReservedCapacityOffering.Builderbuilder()LongdurationHours()The number of whole hours in the total duration for this reserved capacity offering.LongdurationMinutes()The additional minutes beyond whole hours in the total duration for this reserved capacity offering.InstantendTime()The end time of the reserved capacity offering.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerinstanceCount()The number of instances in the reserved capacity offering.ReservedCapacityInstanceTypeinstanceType()The instance type for the reserved capacity offering.StringinstanceTypeAsString()The instance type for the reserved capacity offering.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends ReservedCapacityOffering.Builder>serializableBuilderClass()InstantstartTime()The start time of the reserved capacity offering.ReservedCapacityOffering.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
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
-
instanceType
public final ReservedCapacityInstanceType instanceType()
The instance type for the reserved capacity offering.
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 offering.
- See Also:
ReservedCapacityInstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
The instance type for the reserved capacity offering.
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 offering.
- See Also:
ReservedCapacityInstanceType
-
instanceCount
public final Integer instanceCount()
The number of instances in the reserved capacity offering.
- Returns:
- The number of instances in the reserved capacity offering.
-
availabilityZone
public final String availabilityZone()
The availability zone for the reserved capacity offering.
- Returns:
- The availability zone for the reserved capacity offering.
-
durationHours
public final Long durationHours()
The number of whole hours in the total duration for this reserved capacity offering.
- Returns:
- The number of whole hours in the total duration for this reserved capacity offering.
-
durationMinutes
public final Long durationMinutes()
The additional minutes beyond whole hours in the total duration for this reserved capacity offering.
- Returns:
- The additional minutes beyond whole hours in the total duration for this reserved capacity offering.
-
startTime
public final Instant startTime()
The start time of the reserved capacity offering.
- Returns:
- The start time of the reserved capacity offering.
-
endTime
public final Instant endTime()
The end time of the reserved capacity offering.
- Returns:
- The end time of the reserved capacity offering.
-
toBuilder
public ReservedCapacityOffering.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ReservedCapacityOffering.Builder,ReservedCapacityOffering>
-
builder
public static ReservedCapacityOffering.Builder builder()
-
serializableBuilderClass
public static Class<? extends ReservedCapacityOffering.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
-
-