Struct aws_sdk_datasync::types::builders::TaskScheduleBuilder
source · #[non_exhaustive]pub struct TaskScheduleBuilder { /* private fields */ }
Expand description
A builder for TaskSchedule
.
Implementations§
source§impl TaskScheduleBuilder
impl TaskScheduleBuilder
sourcepub fn schedule_expression(self, input: impl Into<String>) -> Self
pub fn schedule_expression(self, input: impl Into<String>) -> Self
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
This field is required.sourcepub fn set_schedule_expression(self, input: Option<String>) -> Self
pub fn set_schedule_expression(self, input: Option<String>) -> Self
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
sourcepub fn get_schedule_expression(&self) -> &Option<String>
pub fn get_schedule_expression(&self) -> &Option<String>
Specifies your task schedule by using a cron expression in UTC time. For information about cron expression syntax, see the Amazon EventBridge User Guide .
sourcepub fn status(self, input: ScheduleStatus) -> Self
pub fn status(self, input: ScheduleStatus) -> Self
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
sourcepub fn set_status(self, input: Option<ScheduleStatus>) -> Self
pub fn set_status(self, input: Option<ScheduleStatus>) -> Self
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
sourcepub fn get_status(&self) -> &Option<ScheduleStatus>
pub fn get_status(&self) -> &Option<ScheduleStatus>
Specifies whether to enable or disable your task schedule. Your schedule is enabled by default, but there can be situations where you need to disable it. For example, you might need to pause a recurring transfer to fix an issue with your task or perform maintenance on your storage system.
DataSync might disable your schedule automatically if your task fails repeatedly with the same error. For more information, see TaskScheduleDetails.
sourcepub fn build(self) -> Result<TaskSchedule, BuildError>
pub fn build(self) -> Result<TaskSchedule, BuildError>
Consumes the builder and constructs a TaskSchedule
.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TaskScheduleBuilder
impl Clone for TaskScheduleBuilder
source§fn clone(&self) -> TaskScheduleBuilder
fn clone(&self) -> TaskScheduleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskScheduleBuilder
impl Debug for TaskScheduleBuilder
source§impl Default for TaskScheduleBuilder
impl Default for TaskScheduleBuilder
source§fn default() -> TaskScheduleBuilder
fn default() -> TaskScheduleBuilder
source§impl PartialEq for TaskScheduleBuilder
impl PartialEq for TaskScheduleBuilder
source§fn eq(&self, other: &TaskScheduleBuilder) -> bool
fn eq(&self, other: &TaskScheduleBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for TaskScheduleBuilder
Auto Trait Implementations§
impl Freeze for TaskScheduleBuilder
impl RefUnwindSafe for TaskScheduleBuilder
impl Send for TaskScheduleBuilder
impl Sync for TaskScheduleBuilder
impl Unpin for TaskScheduleBuilder
impl UnwindSafe for TaskScheduleBuilder
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