@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class InstanceGroup extends Object implements Serializable, Cloneable, StructuredPojo
Defines an instance group for heterogeneous cluster training. When requesting a training job using the CreateTrainingJob API, you can configure multiple instance groups .
Constructor and Description |
---|
InstanceGroup() |
Modifier and Type | Method and Description |
---|---|
InstanceGroup |
clone() |
boolean |
equals(Object obj) |
Integer |
getInstanceCount()
Specifies the number of instances of the instance group.
|
String |
getInstanceGroupName()
Specifies the name of the instance group.
|
String |
getInstanceType()
Specifies the instance type of the instance group.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setInstanceCount(Integer instanceCount)
Specifies the number of instances of the instance group.
|
void |
setInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
|
void |
setInstanceType(String instanceType)
Specifies the instance type of the instance group.
|
String |
toString()
Returns a string representation of this object.
|
InstanceGroup |
withInstanceCount(Integer instanceCount)
Specifies the number of instances of the instance group.
|
InstanceGroup |
withInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
|
InstanceGroup |
withInstanceType(String instanceType)
Specifies the instance type of the instance group.
|
InstanceGroup |
withInstanceType(TrainingInstanceType instanceType)
Specifies the instance type of the instance group.
|
public void setInstanceType(String instanceType)
Specifies the instance type of the instance group.
instanceType
- Specifies the instance type of the instance group.TrainingInstanceType
public String getInstanceType()
Specifies the instance type of the instance group.
TrainingInstanceType
public InstanceGroup withInstanceType(String instanceType)
Specifies the instance type of the instance group.
instanceType
- Specifies the instance type of the instance group.TrainingInstanceType
public InstanceGroup withInstanceType(TrainingInstanceType instanceType)
Specifies the instance type of the instance group.
instanceType
- Specifies the instance type of the instance group.TrainingInstanceType
public void setInstanceCount(Integer instanceCount)
Specifies the number of instances of the instance group.
instanceCount
- Specifies the number of instances of the instance group.public Integer getInstanceCount()
Specifies the number of instances of the instance group.
public InstanceGroup withInstanceCount(Integer instanceCount)
Specifies the number of instances of the instance group.
instanceCount
- Specifies the number of instances of the instance group.public void setInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
instanceGroupName
- Specifies the name of the instance group.public String getInstanceGroupName()
Specifies the name of the instance group.
public InstanceGroup withInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
instanceGroupName
- Specifies the name of the instance group.public String toString()
toString
in class Object
Object.toString()
public InstanceGroup clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.