#[non_exhaustive]pub struct ClusterInstanceGroupSpecificationBuilder { /* private fields */ }
Expand description
A builder for ClusterInstanceGroupSpecification
.
Implementations§
source§impl ClusterInstanceGroupSpecificationBuilder
impl ClusterInstanceGroupSpecificationBuilder
sourcepub fn instance_count(self, input: i32) -> Self
pub fn instance_count(self, input: i32) -> Self
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
This field is required.sourcepub fn set_instance_count(self, input: Option<i32>) -> Self
pub fn set_instance_count(self, input: Option<i32>) -> Self
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_instance_count(&self) -> &Option<i32>
pub fn get_instance_count(&self) -> &Option<i32>
Specifies the number of instances to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn instance_group_name(self, input: impl Into<String>) -> Self
pub fn instance_group_name(self, input: impl Into<String>) -> Self
Specifies the name of the instance group.
This field is required.sourcepub fn set_instance_group_name(self, input: Option<String>) -> Self
pub fn set_instance_group_name(self, input: Option<String>) -> Self
Specifies the name of the instance group.
sourcepub fn get_instance_group_name(&self) -> &Option<String>
pub fn get_instance_group_name(&self) -> &Option<String>
Specifies the name of the instance group.
sourcepub fn instance_type(self, input: ClusterInstanceType) -> Self
pub fn instance_type(self, input: ClusterInstanceType) -> Self
Specifies the instance type of the instance group.
This field is required.sourcepub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
pub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
Specifies the instance type of the instance group.
sourcepub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
pub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
Specifies the instance type of the instance group.
sourcepub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
pub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
Specifies the LifeCycle configuration for the instance group.
This field is required.sourcepub fn set_life_cycle_config(
self,
input: Option<ClusterLifeCycleConfig>
) -> Self
pub fn set_life_cycle_config( self, input: Option<ClusterLifeCycleConfig> ) -> Self
Specifies the LifeCycle configuration for the instance group.
sourcepub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
pub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
Specifies the LifeCycle configuration for the instance group.
sourcepub fn execution_role(self, input: impl Into<String>) -> Self
pub fn execution_role(self, input: impl Into<String>) -> Self
Specifies an IAM execution role to be assumed by the instance group.
This field is required.sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
Specifies an IAM execution role to be assumed by the instance group.
sourcepub fn get_execution_role(&self) -> &Option<String>
pub fn get_execution_role(&self) -> &Option<String>
Specifies an IAM execution role to be assumed by the instance group.
sourcepub fn threads_per_core(self, input: i32) -> Self
pub fn threads_per_core(self, input: i32) -> Self
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.
sourcepub fn set_threads_per_core(self, input: Option<i32>) -> Self
pub fn set_threads_per_core(self, input: Option<i32>) -> Self
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.
sourcepub fn get_threads_per_core(&self) -> &Option<i32>
pub fn get_threads_per_core(&self) -> &Option<i32>
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.
sourcepub fn build(self) -> ClusterInstanceGroupSpecification
pub fn build(self) -> ClusterInstanceGroupSpecification
Consumes the builder and constructs a ClusterInstanceGroupSpecification
.
Trait Implementations§
source§impl Clone for ClusterInstanceGroupSpecificationBuilder
impl Clone for ClusterInstanceGroupSpecificationBuilder
source§fn clone(&self) -> ClusterInstanceGroupSpecificationBuilder
fn clone(&self) -> ClusterInstanceGroupSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClusterInstanceGroupSpecificationBuilder
impl Default for ClusterInstanceGroupSpecificationBuilder
source§fn default() -> ClusterInstanceGroupSpecificationBuilder
fn default() -> ClusterInstanceGroupSpecificationBuilder
source§impl PartialEq for ClusterInstanceGroupSpecificationBuilder
impl PartialEq for ClusterInstanceGroupSpecificationBuilder
source§fn eq(&self, other: &ClusterInstanceGroupSpecificationBuilder) -> bool
fn eq(&self, other: &ClusterInstanceGroupSpecificationBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.