#[non_exhaustive]pub struct TopicRefreshScheduleBuilder { /* private fields */ }Expand description
A builder for TopicRefreshSchedule.
Implementations§
source§impl TopicRefreshScheduleBuilder
impl TopicRefreshScheduleBuilder
sourcepub fn is_enabled(self, input: bool) -> Self
pub fn is_enabled(self, input: bool) -> Self
A Boolean value that controls whether to schedule is enabled.
This field is required.sourcepub fn set_is_enabled(self, input: Option<bool>) -> Self
pub fn set_is_enabled(self, input: Option<bool>) -> Self
A Boolean value that controls whether to schedule is enabled.
sourcepub fn get_is_enabled(&self) -> &Option<bool>
pub fn get_is_enabled(&self) -> &Option<bool>
A Boolean value that controls whether to schedule is enabled.
sourcepub fn based_on_spice_schedule(self, input: bool) -> Self
pub fn based_on_spice_schedule(self, input: bool) -> Self
A Boolean value that controls whether to schedule runs at the same schedule that is specified in SPICE dataset.
This field is required.sourcepub fn set_based_on_spice_schedule(self, input: Option<bool>) -> Self
pub fn set_based_on_spice_schedule(self, input: Option<bool>) -> Self
A Boolean value that controls whether to schedule runs at the same schedule that is specified in SPICE dataset.
sourcepub fn get_based_on_spice_schedule(&self) -> &Option<bool>
pub fn get_based_on_spice_schedule(&self) -> &Option<bool>
A Boolean value that controls whether to schedule runs at the same schedule that is specified in SPICE dataset.
sourcepub fn starting_at(self, input: DateTime) -> Self
pub fn starting_at(self, input: DateTime) -> Self
The starting date and time for the refresh schedule.
sourcepub fn set_starting_at(self, input: Option<DateTime>) -> Self
pub fn set_starting_at(self, input: Option<DateTime>) -> Self
The starting date and time for the refresh schedule.
sourcepub fn get_starting_at(&self) -> &Option<DateTime>
pub fn get_starting_at(&self) -> &Option<DateTime>
The starting date and time for the refresh schedule.
sourcepub fn timezone(self, input: impl Into<String>) -> Self
pub fn timezone(self, input: impl Into<String>) -> Self
The timezone that you want the refresh schedule to use.
sourcepub fn set_timezone(self, input: Option<String>) -> Self
pub fn set_timezone(self, input: Option<String>) -> Self
The timezone that you want the refresh schedule to use.
sourcepub fn get_timezone(&self) -> &Option<String>
pub fn get_timezone(&self) -> &Option<String>
The timezone that you want the refresh schedule to use.
sourcepub fn repeat_at(self, input: impl Into<String>) -> Self
pub fn repeat_at(self, input: impl Into<String>) -> Self
The time of day when the refresh should run, for example, Monday-Sunday.
sourcepub fn set_repeat_at(self, input: Option<String>) -> Self
pub fn set_repeat_at(self, input: Option<String>) -> Self
The time of day when the refresh should run, for example, Monday-Sunday.
sourcepub fn get_repeat_at(&self) -> &Option<String>
pub fn get_repeat_at(&self) -> &Option<String>
The time of day when the refresh should run, for example, Monday-Sunday.
sourcepub fn topic_schedule_type(self, input: TopicScheduleType) -> Self
pub fn topic_schedule_type(self, input: TopicScheduleType) -> Self
The type of refresh schedule. Valid values for this structure are HOURLY, DAILY, WEEKLY, and MONTHLY.
sourcepub fn set_topic_schedule_type(self, input: Option<TopicScheduleType>) -> Self
pub fn set_topic_schedule_type(self, input: Option<TopicScheduleType>) -> Self
The type of refresh schedule. Valid values for this structure are HOURLY, DAILY, WEEKLY, and MONTHLY.
sourcepub fn get_topic_schedule_type(&self) -> &Option<TopicScheduleType>
pub fn get_topic_schedule_type(&self) -> &Option<TopicScheduleType>
The type of refresh schedule. Valid values for this structure are HOURLY, DAILY, WEEKLY, and MONTHLY.
sourcepub fn build(self) -> Result<TopicRefreshSchedule, BuildError>
pub fn build(self) -> Result<TopicRefreshSchedule, BuildError>
Consumes the builder and constructs a TopicRefreshSchedule.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for TopicRefreshScheduleBuilder
impl Clone for TopicRefreshScheduleBuilder
source§fn clone(&self) -> TopicRefreshScheduleBuilder
fn clone(&self) -> TopicRefreshScheduleBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for TopicRefreshScheduleBuilder
impl Debug for TopicRefreshScheduleBuilder
source§impl Default for TopicRefreshScheduleBuilder
impl Default for TopicRefreshScheduleBuilder
source§fn default() -> TopicRefreshScheduleBuilder
fn default() -> TopicRefreshScheduleBuilder
source§impl PartialEq for TopicRefreshScheduleBuilder
impl PartialEq for TopicRefreshScheduleBuilder
source§fn eq(&self, other: &TopicRefreshScheduleBuilder) -> bool
fn eq(&self, other: &TopicRefreshScheduleBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for TopicRefreshScheduleBuilder
Auto Trait Implementations§
impl Freeze for TopicRefreshScheduleBuilder
impl RefUnwindSafe for TopicRefreshScheduleBuilder
impl Send for TopicRefreshScheduleBuilder
impl Sync for TopicRefreshScheduleBuilder
impl Unpin for TopicRefreshScheduleBuilder
impl UnwindSafe for TopicRefreshScheduleBuilder
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