Struct aws_sdk_sagemaker::model::channel_specification::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for ChannelSpecification
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A brief description of the channel.
sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A brief description of the channel.
sourcepub fn is_required(self, input: bool) -> Self
pub fn is_required(self, input: bool) -> Self
Indicates whether the channel is required by the algorithm.
sourcepub fn set_is_required(self, input: Option<bool>) -> Self
pub fn set_is_required(self, input: Option<bool>) -> Self
Indicates whether the channel is required by the algorithm.
sourcepub fn supported_content_types(self, input: impl Into<String>) -> Self
pub fn supported_content_types(self, input: impl Into<String>) -> Self
Appends an item to supported_content_types
.
To override the contents of this collection use set_supported_content_types
.
The supported MIME types for the data.
sourcepub fn set_supported_content_types(self, input: Option<Vec<String>>) -> Self
pub fn set_supported_content_types(self, input: Option<Vec<String>>) -> Self
The supported MIME types for the data.
sourcepub fn supported_compression_types(self, input: CompressionType) -> Self
pub fn supported_compression_types(self, input: CompressionType) -> Self
Appends an item to supported_compression_types
.
To override the contents of this collection use set_supported_compression_types
.
The allowed compression types, if data compression is used.
sourcepub fn set_supported_compression_types(
self,
input: Option<Vec<CompressionType>>
) -> Self
pub fn set_supported_compression_types(
self,
input: Option<Vec<CompressionType>>
) -> Self
The allowed compression types, if data compression is used.
sourcepub fn supported_input_modes(self, input: TrainingInputMode) -> Self
pub fn supported_input_modes(self, input: TrainingInputMode) -> Self
Appends an item to supported_input_modes
.
To override the contents of this collection use set_supported_input_modes
.
The allowed input mode, either FILE or PIPE.
In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.
sourcepub fn set_supported_input_modes(
self,
input: Option<Vec<TrainingInputMode>>
) -> Self
pub fn set_supported_input_modes(
self,
input: Option<Vec<TrainingInputMode>>
) -> Self
The allowed input mode, either FILE or PIPE.
In FILE mode, Amazon SageMaker copies the data from the input source onto the local Amazon Elastic Block Store (Amazon EBS) volumes before starting your training algorithm. This is the most commonly used input mode.
In PIPE mode, Amazon SageMaker streams input data from the source directly to your algorithm without using the EBS volume.
sourcepub fn build(self) -> ChannelSpecification
pub fn build(self) -> ChannelSpecification
Consumes the builder and constructs a ChannelSpecification
.