Class InstanceGroup
- java.lang.Object
-
- software.amazon.awssdk.services.sagemaker.model.InstanceGroup
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<InstanceGroup.Builder,InstanceGroup>
@Generated("software.amazon.awssdk:codegen") public final class InstanceGroup extends Object implements SdkPojo, Serializable, ToCopyableBuilder<InstanceGroup.Builder,InstanceGroup>
Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceInstanceGroup.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static InstanceGroup.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()IntegerinstanceCount()Specifies the number of instances of the instance group.StringinstanceGroupName()Specifies the name of the instance group.TrainingInstanceTypeinstanceType()Specifies the instance type of the instance group.StringinstanceTypeAsString()Specifies the instance type of the instance group.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends InstanceGroup.Builder>serializableBuilderClass()InstanceGroup.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 TrainingInstanceType instanceType()
Specifies the instance type of the instance group.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnTrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- Specifies the instance type of the instance group.
- See Also:
TrainingInstanceType
-
instanceTypeAsString
public final String instanceTypeAsString()
Specifies the instance type of the instance group.
If the service returns an enum value that is not available in the current SDK version,
instanceTypewill returnTrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available frominstanceTypeAsString().- Returns:
- Specifies the instance type of the instance group.
- See Also:
TrainingInstanceType
-
instanceCount
public final Integer instanceCount()
Specifies the number of instances of the instance group.
- Returns:
- Specifies the number of instances of the instance group.
-
instanceGroupName
public final String instanceGroupName()
Specifies the name of the instance group.
- Returns:
- Specifies the name of the instance group.
-
toBuilder
public InstanceGroup.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<InstanceGroup.Builder,InstanceGroup>
-
builder
public static InstanceGroup.Builder builder()
-
serializableBuilderClass
public static Class<? extends InstanceGroup.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
-
-