#[non_exhaustive]pub struct ScheduledQueryBuilder { /* private fields */ }Expand description
A builder for ScheduledQuery.
Implementations§
source§impl ScheduledQueryBuilder
impl ScheduledQueryBuilder
sourcepub fn arn(self, input: impl Into<String>) -> Self
pub fn arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name.
This field is required.sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the scheduled query.
This field is required.sourcepub fn creation_time(self, input: DateTime) -> Self
pub fn creation_time(self, input: DateTime) -> Self
The creation time of the scheduled query.
sourcepub fn set_creation_time(self, input: Option<DateTime>) -> Self
pub fn set_creation_time(self, input: Option<DateTime>) -> Self
The creation time of the scheduled query.
sourcepub fn get_creation_time(&self) -> &Option<DateTime>
pub fn get_creation_time(&self) -> &Option<DateTime>
The creation time of the scheduled query.
sourcepub fn state(self, input: ScheduledQueryState) -> Self
pub fn state(self, input: ScheduledQueryState) -> Self
State of scheduled query.
This field is required.sourcepub fn set_state(self, input: Option<ScheduledQueryState>) -> Self
pub fn set_state(self, input: Option<ScheduledQueryState>) -> Self
State of scheduled query.
sourcepub fn get_state(&self) -> &Option<ScheduledQueryState>
pub fn get_state(&self) -> &Option<ScheduledQueryState>
State of scheduled query.
sourcepub fn previous_invocation_time(self, input: DateTime) -> Self
pub fn previous_invocation_time(self, input: DateTime) -> Self
The last time the scheduled query was run.
sourcepub fn set_previous_invocation_time(self, input: Option<DateTime>) -> Self
pub fn set_previous_invocation_time(self, input: Option<DateTime>) -> Self
The last time the scheduled query was run.
sourcepub fn get_previous_invocation_time(&self) -> &Option<DateTime>
pub fn get_previous_invocation_time(&self) -> &Option<DateTime>
The last time the scheduled query was run.
sourcepub fn next_invocation_time(self, input: DateTime) -> Self
pub fn next_invocation_time(self, input: DateTime) -> Self
The next time the scheduled query is to be run.
sourcepub fn set_next_invocation_time(self, input: Option<DateTime>) -> Self
pub fn set_next_invocation_time(self, input: Option<DateTime>) -> Self
The next time the scheduled query is to be run.
sourcepub fn get_next_invocation_time(&self) -> &Option<DateTime>
pub fn get_next_invocation_time(&self) -> &Option<DateTime>
The next time the scheduled query is to be run.
sourcepub fn error_report_configuration(self, input: ErrorReportConfiguration) -> Self
pub fn error_report_configuration(self, input: ErrorReportConfiguration) -> Self
Configuration for scheduled query error reporting.
sourcepub fn set_error_report_configuration(
self,
input: Option<ErrorReportConfiguration>,
) -> Self
pub fn set_error_report_configuration( self, input: Option<ErrorReportConfiguration>, ) -> Self
Configuration for scheduled query error reporting.
sourcepub fn get_error_report_configuration(
&self,
) -> &Option<ErrorReportConfiguration>
pub fn get_error_report_configuration( &self, ) -> &Option<ErrorReportConfiguration>
Configuration for scheduled query error reporting.
sourcepub fn target_destination(self, input: TargetDestination) -> Self
pub fn target_destination(self, input: TargetDestination) -> Self
Target data source where final scheduled query result will be written.
sourcepub fn set_target_destination(self, input: Option<TargetDestination>) -> Self
pub fn set_target_destination(self, input: Option<TargetDestination>) -> Self
Target data source where final scheduled query result will be written.
sourcepub fn get_target_destination(&self) -> &Option<TargetDestination>
pub fn get_target_destination(&self) -> &Option<TargetDestination>
Target data source where final scheduled query result will be written.
sourcepub fn last_run_status(self, input: ScheduledQueryRunStatus) -> Self
pub fn last_run_status(self, input: ScheduledQueryRunStatus) -> Self
Status of the last scheduled query run.
sourcepub fn set_last_run_status(self, input: Option<ScheduledQueryRunStatus>) -> Self
pub fn set_last_run_status(self, input: Option<ScheduledQueryRunStatus>) -> Self
Status of the last scheduled query run.
sourcepub fn get_last_run_status(&self) -> &Option<ScheduledQueryRunStatus>
pub fn get_last_run_status(&self) -> &Option<ScheduledQueryRunStatus>
Status of the last scheduled query run.
sourcepub fn build(self) -> Result<ScheduledQuery, BuildError>
pub fn build(self) -> Result<ScheduledQuery, BuildError>
Consumes the builder and constructs a ScheduledQuery.
This method will fail if any of the following fields are not set:
Trait Implementations§
source§impl Clone for ScheduledQueryBuilder
impl Clone for ScheduledQueryBuilder
source§fn clone(&self) -> ScheduledQueryBuilder
fn clone(&self) -> ScheduledQueryBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ScheduledQueryBuilder
impl Debug for ScheduledQueryBuilder
source§impl Default for ScheduledQueryBuilder
impl Default for ScheduledQueryBuilder
source§fn default() -> ScheduledQueryBuilder
fn default() -> ScheduledQueryBuilder
source§impl PartialEq for ScheduledQueryBuilder
impl PartialEq for ScheduledQueryBuilder
source§fn eq(&self, other: &ScheduledQueryBuilder) -> bool
fn eq(&self, other: &ScheduledQueryBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ScheduledQueryBuilder
Auto Trait Implementations§
impl Freeze for ScheduledQueryBuilder
impl RefUnwindSafe for ScheduledQueryBuilder
impl Send for ScheduledQueryBuilder
impl Sync for ScheduledQueryBuilder
impl Unpin for ScheduledQueryBuilder
impl UnwindSafe for ScheduledQueryBuilder
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