#[non_exhaustive]pub struct TaskScheduleDetailsBuilder { /* private fields */ }
Expand description
A builder for TaskScheduleDetails
.
Implementations§
source§impl TaskScheduleDetailsBuilder
impl TaskScheduleDetailsBuilder
sourcepub fn status_update_time(self, input: DateTime) -> Self
pub fn status_update_time(self, input: DateTime) -> Self
Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
sourcepub fn set_status_update_time(self, input: Option<DateTime>) -> Self
pub fn set_status_update_time(self, input: Option<DateTime>) -> Self
Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
sourcepub fn get_status_update_time(&self) -> &Option<DateTime>
pub fn get_status_update_time(&self) -> &Option<DateTime>
Indicates the last time the status of your task schedule changed. For example, if DataSync automatically disables your schedule because of a repeated error, you can see when the schedule was disabled.
sourcepub fn disabled_reason(self, input: impl Into<String>) -> Self
pub fn disabled_reason(self, input: impl Into<String>) -> Self
Provides a reason if the task schedule is disabled.
If your schedule is disabled by USER
, you see a Manually disabled by user.
message.
If your schedule is disabled by SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.
sourcepub fn set_disabled_reason(self, input: Option<String>) -> Self
pub fn set_disabled_reason(self, input: Option<String>) -> Self
Provides a reason if the task schedule is disabled.
If your schedule is disabled by USER
, you see a Manually disabled by user.
message.
If your schedule is disabled by SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.
sourcepub fn get_disabled_reason(&self) -> &Option<String>
pub fn get_disabled_reason(&self) -> &Option<String>
Provides a reason if the task schedule is disabled.
If your schedule is disabled by USER
, you see a Manually disabled by user.
message.
If your schedule is disabled by SERVICE
, you see an error message to help you understand why the task keeps failing. For information on resolving DataSync errors, see Troubleshooting issues with DataSync transfers.
sourcepub fn disabled_by(self, input: ScheduleDisabledBy) -> Self
pub fn disabled_by(self, input: ScheduleDisabledBy) -> Self
Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
sourcepub fn set_disabled_by(self, input: Option<ScheduleDisabledBy>) -> Self
pub fn set_disabled_by(self, input: Option<ScheduleDisabledBy>) -> Self
Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
sourcepub fn get_disabled_by(&self) -> &Option<ScheduleDisabledBy>
pub fn get_disabled_by(&self) -> &Option<ScheduleDisabledBy>
Indicates how your task schedule was disabled.
-
USER
- Your schedule was manually disabled by using the UpdateTask operation or DataSync console. -
SERVICE
- Your schedule was automatically disabled by DataSync because the task failed repeatedly with the same error.
sourcepub fn build(self) -> TaskScheduleDetails
pub fn build(self) -> TaskScheduleDetails
Consumes the builder and constructs a TaskScheduleDetails
.
Trait Implementations§
source§impl Clone for TaskScheduleDetailsBuilder
impl Clone for TaskScheduleDetailsBuilder
source§fn clone(&self) -> TaskScheduleDetailsBuilder
fn clone(&self) -> TaskScheduleDetailsBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TaskScheduleDetailsBuilder
impl Debug for TaskScheduleDetailsBuilder
source§impl Default for TaskScheduleDetailsBuilder
impl Default for TaskScheduleDetailsBuilder
source§fn default() -> TaskScheduleDetailsBuilder
fn default() -> TaskScheduleDetailsBuilder
impl StructuralPartialEq for TaskScheduleDetailsBuilder
Auto Trait Implementations§
impl Freeze for TaskScheduleDetailsBuilder
impl RefUnwindSafe for TaskScheduleDetailsBuilder
impl Send for TaskScheduleDetailsBuilder
impl Sync for TaskScheduleDetailsBuilder
impl Unpin for TaskScheduleDetailsBuilder
impl UnwindSafe for TaskScheduleDetailsBuilder
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