Struct aws_sdk_iot::types::builders::SchedulingConfigBuilder
source · #[non_exhaustive]pub struct SchedulingConfigBuilder { /* private fields */ }
Expand description
A builder for SchedulingConfig
.
Implementations§
source§impl SchedulingConfigBuilder
impl SchedulingConfigBuilder
sourcepub fn start_time(self, input: impl Into<String>) -> Self
pub fn start_time(self, input: impl Into<String>) -> Self
The time a job will begin rollout of the job document to all devices in the target group for a job. The startTime
can be scheduled up to a year in advance and must be scheduled a minimum of thirty minutes from the current time. The date and time format for the startTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for startTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn set_start_time(self, input: Option<String>) -> Self
pub fn set_start_time(self, input: Option<String>) -> Self
The time a job will begin rollout of the job document to all devices in the target group for a job. The startTime
can be scheduled up to a year in advance and must be scheduled a minimum of thirty minutes from the current time. The date and time format for the startTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for startTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn get_start_time(&self) -> &Option<String>
pub fn get_start_time(&self) -> &Option<String>
The time a job will begin rollout of the job document to all devices in the target group for a job. The startTime
can be scheduled up to a year in advance and must be scheduled a minimum of thirty minutes from the current time. The date and time format for the startTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for startTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn end_time(self, input: impl Into<String>) -> Self
pub fn end_time(self, input: impl Into<String>) -> Self
The time a job will stop rollout of the job document to all devices in the target group for a job. The endTime
must take place no later than two years from the current time and be scheduled a minimum of thirty minutes from the current time. The minimum duration between startTime
and endTime
is thirty minutes. The maximum duration between startTime
and endTime
is two years. The date and time format for the endTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn set_end_time(self, input: Option<String>) -> Self
pub fn set_end_time(self, input: Option<String>) -> Self
The time a job will stop rollout of the job document to all devices in the target group for a job. The endTime
must take place no later than two years from the current time and be scheduled a minimum of thirty minutes from the current time. The minimum duration between startTime
and endTime
is thirty minutes. The maximum duration between startTime
and endTime
is two years. The date and time format for the endTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn get_end_time(&self) -> &Option<String>
pub fn get_end_time(&self) -> &Option<String>
The time a job will stop rollout of the job document to all devices in the target group for a job. The endTime
must take place no later than two years from the current time and be scheduled a minimum of thirty minutes from the current time. The minimum duration between startTime
and endTime
is thirty minutes. The maximum duration between startTime
and endTime
is two years. The date and time format for the endTime
is YYYY-MM-DD for the date and HH:MM for the time.
For more information on the syntax for endTime
when using an API command or the Command Line Interface, see Timestamp.
sourcepub fn end_behavior(self, input: JobEndBehavior) -> Self
pub fn end_behavior(self, input: JobEndBehavior) -> Self
Specifies the end behavior for all job executions after a job reaches the selected endTime
. If endTime
is not selected when creating the job, then endBehavior
does not apply.
sourcepub fn set_end_behavior(self, input: Option<JobEndBehavior>) -> Self
pub fn set_end_behavior(self, input: Option<JobEndBehavior>) -> Self
Specifies the end behavior for all job executions after a job reaches the selected endTime
. If endTime
is not selected when creating the job, then endBehavior
does not apply.
sourcepub fn get_end_behavior(&self) -> &Option<JobEndBehavior>
pub fn get_end_behavior(&self) -> &Option<JobEndBehavior>
Specifies the end behavior for all job executions after a job reaches the selected endTime
. If endTime
is not selected when creating the job, then endBehavior
does not apply.
sourcepub fn maintenance_windows(self, input: MaintenanceWindow) -> Self
pub fn maintenance_windows(self, input: MaintenanceWindow) -> Self
Appends an item to maintenance_windows
.
To override the contents of this collection use set_maintenance_windows
.
An optional configuration within the SchedulingConfig
to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
sourcepub fn set_maintenance_windows(
self,
input: Option<Vec<MaintenanceWindow>>
) -> Self
pub fn set_maintenance_windows( self, input: Option<Vec<MaintenanceWindow>> ) -> Self
An optional configuration within the SchedulingConfig
to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
sourcepub fn get_maintenance_windows(&self) -> &Option<Vec<MaintenanceWindow>>
pub fn get_maintenance_windows(&self) -> &Option<Vec<MaintenanceWindow>>
An optional configuration within the SchedulingConfig
to setup a recurring maintenance window with a predetermined start time and duration for the rollout of a job document to all devices in a target group for a job.
sourcepub fn build(self) -> SchedulingConfig
pub fn build(self) -> SchedulingConfig
Consumes the builder and constructs a SchedulingConfig
.
Trait Implementations§
source§impl Clone for SchedulingConfigBuilder
impl Clone for SchedulingConfigBuilder
source§fn clone(&self) -> SchedulingConfigBuilder
fn clone(&self) -> SchedulingConfigBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for SchedulingConfigBuilder
impl Debug for SchedulingConfigBuilder
source§impl Default for SchedulingConfigBuilder
impl Default for SchedulingConfigBuilder
source§fn default() -> SchedulingConfigBuilder
fn default() -> SchedulingConfigBuilder
source§impl PartialEq for SchedulingConfigBuilder
impl PartialEq for SchedulingConfigBuilder
source§fn eq(&self, other: &SchedulingConfigBuilder) -> bool
fn eq(&self, other: &SchedulingConfigBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for SchedulingConfigBuilder
Auto Trait Implementations§
impl Freeze for SchedulingConfigBuilder
impl RefUnwindSafe for SchedulingConfigBuilder
impl Send for SchedulingConfigBuilder
impl Sync for SchedulingConfigBuilder
impl Unpin for SchedulingConfigBuilder
impl UnwindSafe for SchedulingConfigBuilder
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