#[non_exhaustive]pub struct ChannelSpecificationBuilder { /* private fields */ }
Expand description
A builder for ChannelSpecification
.
Implementations§
source§impl ChannelSpecificationBuilder
impl ChannelSpecificationBuilder
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the channel.
This field is required.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 get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
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 get_is_required(&self) -> &Option<bool>
pub fn get_is_required(&self) -> &Option<bool>
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 get_supported_content_types(&self) -> &Option<Vec<String>>
pub fn get_supported_content_types(&self) -> &Option<Vec<String>>
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 get_supported_compression_types(&self) -> &Option<Vec<CompressionType>>
pub fn get_supported_compression_types(&self) -> &Option<Vec<CompressionType>>
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 get_supported_input_modes(&self) -> &Option<Vec<TrainingInputMode>>
pub fn get_supported_input_modes(&self) -> &Option<Vec<TrainingInputMode>>
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
.
Trait Implementations§
source§impl Clone for ChannelSpecificationBuilder
impl Clone for ChannelSpecificationBuilder
source§fn clone(&self) -> ChannelSpecificationBuilder
fn clone(&self) -> ChannelSpecificationBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ChannelSpecificationBuilder
impl Debug for ChannelSpecificationBuilder
source§impl Default for ChannelSpecificationBuilder
impl Default for ChannelSpecificationBuilder
source§fn default() -> ChannelSpecificationBuilder
fn default() -> ChannelSpecificationBuilder
impl StructuralPartialEq for ChannelSpecificationBuilder
Auto Trait Implementations§
impl Freeze for ChannelSpecificationBuilder
impl RefUnwindSafe for ChannelSpecificationBuilder
impl Send for ChannelSpecificationBuilder
impl Sync for ChannelSpecificationBuilder
impl Unpin for ChannelSpecificationBuilder
impl UnwindSafe for ChannelSpecificationBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more