#[non_exhaustive]pub struct AutoTrainingConfigBuilder { /* private fields */ }Expand description
A builder for AutoTrainingConfig.
Implementations§
source§impl AutoTrainingConfigBuilder
impl AutoTrainingConfigBuilder
sourcepub fn scheduling_expression(self, input: impl Into<String>) -> Self
pub fn scheduling_expression(self, input: impl Into<String>) -> Self
Specifies how often to automatically train new solution versions. Specify a rate expression in rate(value unit) format. For value, specify a number between 1 and 30. For unit, specify day or days. For example, to automatically create a new solution version every 5 days, specify rate(5 days). The default is every 7 days.
For more information about auto training, see Creating and configuring a solution.
sourcepub fn set_scheduling_expression(self, input: Option<String>) -> Self
pub fn set_scheduling_expression(self, input: Option<String>) -> Self
Specifies how often to automatically train new solution versions. Specify a rate expression in rate(value unit) format. For value, specify a number between 1 and 30. For unit, specify day or days. For example, to automatically create a new solution version every 5 days, specify rate(5 days). The default is every 7 days.
For more information about auto training, see Creating and configuring a solution.
sourcepub fn get_scheduling_expression(&self) -> &Option<String>
pub fn get_scheduling_expression(&self) -> &Option<String>
Specifies how often to automatically train new solution versions. Specify a rate expression in rate(value unit) format. For value, specify a number between 1 and 30. For unit, specify day or days. For example, to automatically create a new solution version every 5 days, specify rate(5 days). The default is every 7 days.
For more information about auto training, see Creating and configuring a solution.
sourcepub fn build(self) -> AutoTrainingConfig
pub fn build(self) -> AutoTrainingConfig
Consumes the builder and constructs a AutoTrainingConfig.
Trait Implementations§
source§impl Clone for AutoTrainingConfigBuilder
impl Clone for AutoTrainingConfigBuilder
source§fn clone(&self) -> AutoTrainingConfigBuilder
fn clone(&self) -> AutoTrainingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for AutoTrainingConfigBuilder
impl Debug for AutoTrainingConfigBuilder
source§impl Default for AutoTrainingConfigBuilder
impl Default for AutoTrainingConfigBuilder
source§fn default() -> AutoTrainingConfigBuilder
fn default() -> AutoTrainingConfigBuilder
source§impl PartialEq for AutoTrainingConfigBuilder
impl PartialEq for AutoTrainingConfigBuilder
source§fn eq(&self, other: &AutoTrainingConfigBuilder) -> bool
fn eq(&self, other: &AutoTrainingConfigBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for AutoTrainingConfigBuilder
Auto Trait Implementations§
impl Freeze for AutoTrainingConfigBuilder
impl RefUnwindSafe for AutoTrainingConfigBuilder
impl Send for AutoTrainingConfigBuilder
impl Sync for AutoTrainingConfigBuilder
impl Unpin for AutoTrainingConfigBuilder
impl UnwindSafe for AutoTrainingConfigBuilder
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> 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