@Generated(value="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 .
| Modifier and Type | Class and Description |
|---|---|
static interface |
InstanceGroup.Builder |
| Modifier and Type | Method and Description |
|---|---|
static InstanceGroup.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
Integer |
instanceCount()
Specifies the number of instances of the instance group.
|
String |
instanceGroupName()
Specifies the name of the instance group.
|
TrainingInstanceType |
instanceType()
Specifies the instance type of the instance group.
|
String |
instanceTypeAsString()
Specifies the instance type of the instance group.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends InstanceGroup.Builder> |
serializableBuilderClass() |
InstanceGroup.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic 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, instanceType will
return TrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from instanceTypeAsString().
TrainingInstanceTypepublic 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, instanceType will
return TrainingInstanceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from instanceTypeAsString().
TrainingInstanceTypepublic final Integer instanceCount()
Specifies the number of instances of the instance group.
public final String instanceGroupName()
Specifies the name of the instance group.
public InstanceGroup.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<InstanceGroup.Builder,InstanceGroup>public static InstanceGroup.Builder builder()
public static Class<? extends InstanceGroup.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2023. All rights reserved.