#[non_exhaustive]pub struct ClusterInstanceGroupDetailsBuilder { /* private fields */ }
Expand description
A builder for ClusterInstanceGroupDetails
.
Implementations§
source§impl ClusterInstanceGroupDetailsBuilder
impl ClusterInstanceGroupDetailsBuilder
sourcepub fn current_count(self, input: i32) -> Self
pub fn current_count(self, input: i32) -> Self
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
sourcepub fn set_current_count(self, input: Option<i32>) -> Self
pub fn set_current_count(self, input: Option<i32>) -> Self
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_current_count(&self) -> &Option<i32>
pub fn get_current_count(&self) -> &Option<i32>
The number of instances that are currently in the instance group of a SageMaker HyperPod cluster.
sourcepub fn target_count(self, input: i32) -> Self
pub fn target_count(self, input: i32) -> Self
The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn set_target_count(self, input: Option<i32>) -> Self
pub fn set_target_count(self, input: Option<i32>) -> Self
The number of instances you specified to add to the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_target_count(&self) -> &Option<i32>
pub fn get_target_count(&self) -> &Option<i32>
The number of instances you specified 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
The name of the instance group of a SageMaker HyperPod cluster.
sourcepub fn set_instance_group_name(self, input: Option<String>) -> Self
pub fn set_instance_group_name(self, input: Option<String>) -> Self
The name of the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_instance_group_name(&self) -> &Option<String>
pub fn get_instance_group_name(&self) -> &Option<String>
The name of the instance group of a SageMaker HyperPod cluster.
sourcepub fn instance_type(self, input: ClusterInstanceType) -> Self
pub fn instance_type(self, input: ClusterInstanceType) -> Self
The instance type of the instance group of a SageMaker HyperPod cluster.
sourcepub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
pub fn set_instance_type(self, input: Option<ClusterInstanceType>) -> Self
The instance type of the instance group of a SageMaker HyperPod cluster.
sourcepub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
pub fn get_instance_type(&self) -> &Option<ClusterInstanceType>
The instance type of the instance group of a SageMaker HyperPod cluster.
sourcepub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
pub fn life_cycle_config(self, input: ClusterLifeCycleConfig) -> Self
Details of LifeCycle configuration for the instance group.
sourcepub fn set_life_cycle_config(
self,
input: Option<ClusterLifeCycleConfig>
) -> Self
pub fn set_life_cycle_config( self, input: Option<ClusterLifeCycleConfig> ) -> Self
Details of LifeCycle configuration for the instance group.
sourcepub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
pub fn get_life_cycle_config(&self) -> &Option<ClusterLifeCycleConfig>
Details of 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
The execution role for the instance group to assume.
sourcepub fn set_execution_role(self, input: Option<String>) -> Self
pub fn set_execution_role(self, input: Option<String>) -> Self
The execution role for the instance group to assume.
sourcepub fn get_execution_role(&self) -> &Option<String>
pub fn get_execution_role(&self) -> &Option<String>
The execution role for the instance group to assume.
sourcepub fn threads_per_core(self, input: i32) -> Self
pub fn threads_per_core(self, input: i32) -> Self
The number you specified to TreadsPerCore
in CreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. 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
The number you specified to TreadsPerCore
in CreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. 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>
The number you specified to TreadsPerCore
in CreateCluster
for enabling or disabling multithreading. For instance types that support multithreading, you can specify 1 for disabling multithreading and 2 for enabling multithreading. 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) -> ClusterInstanceGroupDetails
pub fn build(self) -> ClusterInstanceGroupDetails
Consumes the builder and constructs a ClusterInstanceGroupDetails
.
Trait Implementations§
source§impl Clone for ClusterInstanceGroupDetailsBuilder
impl Clone for ClusterInstanceGroupDetailsBuilder
source§fn clone(&self) -> ClusterInstanceGroupDetailsBuilder
fn clone(&self) -> ClusterInstanceGroupDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ClusterInstanceGroupDetailsBuilder
impl Default for ClusterInstanceGroupDetailsBuilder
source§fn default() -> ClusterInstanceGroupDetailsBuilder
fn default() -> ClusterInstanceGroupDetailsBuilder
source§impl PartialEq for ClusterInstanceGroupDetailsBuilder
impl PartialEq for ClusterInstanceGroupDetailsBuilder
source§fn eq(&self, other: &ClusterInstanceGroupDetailsBuilder) -> bool
fn eq(&self, other: &ClusterInstanceGroupDetailsBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.