@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ClusterInstanceGroupSpecification extends Object implements Serializable, Cloneable, StructuredPojo
The specifications of an instance group that you need to define.
Constructor and Description |
---|
ClusterInstanceGroupSpecification() |
Modifier and Type | Method and Description |
---|---|
ClusterInstanceGroupSpecification |
clone() |
boolean |
equals(Object obj) |
String |
getExecutionRole()
Specifies an IAM execution role to be assumed by the instance group.
|
Integer |
getInstanceCount()
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
|
String |
getInstanceGroupName()
Specifies the name of the instance group.
|
List<ClusterInstanceStorageConfig> |
getInstanceStorageConfigs()
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance
group.
|
String |
getInstanceType()
Specifies the instance type of the instance group.
|
ClusterLifeCycleConfig |
getLifeCycleConfig()
Specifies the LifeCycle configuration for the instance group.
|
Integer |
getThreadsPerCore()
Specifies the value for Threads per core.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setExecutionRole(String executionRole)
Specifies an IAM execution role to be assumed by the instance group.
|
void |
setInstanceCount(Integer instanceCount)
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
|
void |
setInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
|
void |
setInstanceStorageConfigs(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance
group.
|
void |
setInstanceType(String instanceType)
Specifies the instance type of the instance group.
|
void |
setLifeCycleConfig(ClusterLifeCycleConfig lifeCycleConfig)
Specifies the LifeCycle configuration for the instance group.
|
void |
setThreadsPerCore(Integer threadsPerCore)
Specifies the value for Threads per core.
|
String |
toString()
Returns a string representation of this object.
|
ClusterInstanceGroupSpecification |
withExecutionRole(String executionRole)
Specifies an IAM execution role to be assumed by the instance group.
|
ClusterInstanceGroupSpecification |
withInstanceCount(Integer instanceCount)
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
|
ClusterInstanceGroupSpecification |
withInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
|
ClusterInstanceGroupSpecification |
withInstanceStorageConfigs(ClusterInstanceStorageConfig... instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance
group.
|
ClusterInstanceGroupSpecification |
withInstanceStorageConfigs(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance
group.
|
ClusterInstanceGroupSpecification |
withInstanceType(ClusterInstanceType instanceType)
Specifies the instance type of the instance group.
|
ClusterInstanceGroupSpecification |
withInstanceType(String instanceType)
Specifies the instance type of the instance group.
|
ClusterInstanceGroupSpecification |
withLifeCycleConfig(ClusterLifeCycleConfig lifeCycleConfig)
Specifies the LifeCycle configuration for the instance group.
|
ClusterInstanceGroupSpecification |
withThreadsPerCore(Integer threadsPerCore)
Specifies the value for Threads per core.
|
public void setInstanceCount(Integer instanceCount)
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
instanceCount
- Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.public Integer getInstanceCount()
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
public ClusterInstanceGroupSpecification withInstanceCount(Integer instanceCount)
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
instanceCount
- Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.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 ClusterInstanceGroupSpecification withInstanceGroupName(String instanceGroupName)
Specifies the name of the instance group.
instanceGroupName
- Specifies the name 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.ClusterInstanceType
public String getInstanceType()
Specifies the instance type of the instance group.
ClusterInstanceType
public ClusterInstanceGroupSpecification withInstanceType(String instanceType)
Specifies the instance type of the instance group.
instanceType
- Specifies the instance type of the instance group.ClusterInstanceType
public ClusterInstanceGroupSpecification withInstanceType(ClusterInstanceType instanceType)
Specifies the instance type of the instance group.
instanceType
- Specifies the instance type of the instance group.ClusterInstanceType
public void setLifeCycleConfig(ClusterLifeCycleConfig lifeCycleConfig)
Specifies the LifeCycle configuration for the instance group.
lifeCycleConfig
- Specifies the LifeCycle configuration for the instance group.public ClusterLifeCycleConfig getLifeCycleConfig()
Specifies the LifeCycle configuration for the instance group.
public ClusterInstanceGroupSpecification withLifeCycleConfig(ClusterLifeCycleConfig lifeCycleConfig)
Specifies the LifeCycle configuration for the instance group.
lifeCycleConfig
- Specifies the LifeCycle configuration for the instance group.public void setExecutionRole(String executionRole)
Specifies an IAM execution role to be assumed by the instance group.
executionRole
- Specifies an IAM execution role to be assumed by the instance group.public String getExecutionRole()
Specifies an IAM execution role to be assumed by the instance group.
public ClusterInstanceGroupSpecification withExecutionRole(String executionRole)
Specifies an IAM execution role to be assumed by the instance group.
executionRole
- Specifies an IAM execution role to be assumed by the instance group.public void setThreadsPerCore(Integer threadsPerCore)
Specifies the value for Threads per core. For instance types that support multithreading, you can specify
1
for disabling multithreading and 2
for enabling multithreading. For instance types
that doesn't support multithreading, specify 1
. For more information, see the reference table of CPU cores
and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
threadsPerCore
- Specifies the value for Threads per core. For instance types that support multithreading, you can
specify 1
for disabling multithreading and 2
for enabling multithreading. For
instance types that doesn't support multithreading, specify 1
. For more information, see the
reference table of CPU
cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User
Guide.public Integer getThreadsPerCore()
Specifies the value for Threads per core. For instance types that support multithreading, you can specify
1
for disabling multithreading and 2
for enabling multithreading. For instance types
that doesn't support multithreading, specify 1
. For more information, see the reference table of CPU cores
and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
1
for disabling multithreading and 2
for enabling multithreading. For
instance types that doesn't support multithreading, specify 1
. For more information, see the
reference table of CPU cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User
Guide.public ClusterInstanceGroupSpecification withThreadsPerCore(Integer threadsPerCore)
Specifies the value for Threads per core. For instance types that support multithreading, you can specify
1
for disabling multithreading and 2
for enabling multithreading. For instance types
that doesn't support multithreading, specify 1
. For more information, see the reference table of CPU cores
and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User Guide.
threadsPerCore
- Specifies the value for Threads per core. For instance types that support multithreading, you can
specify 1
for disabling multithreading and 2
for enabling multithreading. For
instance types that doesn't support multithreading, specify 1
. For more information, see the
reference table of CPU
cores and threads per CPU core per instance type in the Amazon Elastic Compute Cloud User
Guide.public List<ClusterInstanceStorageConfig> getInstanceStorageConfigs()
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
public void setInstanceStorageConfigs(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
instanceStorageConfigs
- Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster
instance group.public ClusterInstanceGroupSpecification withInstanceStorageConfigs(ClusterInstanceStorageConfig... instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
NOTE: This method appends the values to the existing list (if any). Use
setInstanceStorageConfigs(java.util.Collection)
or
withInstanceStorageConfigs(java.util.Collection)
if you want to override the existing values.
instanceStorageConfigs
- Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster
instance group.public ClusterInstanceGroupSpecification withInstanceStorageConfigs(Collection<ClusterInstanceStorageConfig> instanceStorageConfigs)
Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster instance group.
instanceStorageConfigs
- Specifies the additional storage configurations for the instances in the SageMaker HyperPod cluster
instance group.public String toString()
toString
in class Object
Object.toString()
public ClusterInstanceGroupSpecification clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.