#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateScheduledQueryInput {
pub scheduled_query_arn: ::std::option::Option<::std::string::String>,
pub state: ::std::option::Option<crate::types::ScheduledQueryState>,
}
impl UpdateScheduledQueryInput {
pub fn scheduled_query_arn(&self) -> ::std::option::Option<&str> {
self.scheduled_query_arn.as_deref()
}
pub fn state(&self) -> ::std::option::Option<&crate::types::ScheduledQueryState> {
self.state.as_ref()
}
}
impl UpdateScheduledQueryInput {
pub fn builder() -> crate::operation::update_scheduled_query::builders::UpdateScheduledQueryInputBuilder {
crate::operation::update_scheduled_query::builders::UpdateScheduledQueryInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateScheduledQueryInputBuilder {
pub(crate) scheduled_query_arn: ::std::option::Option<::std::string::String>,
pub(crate) state: ::std::option::Option<crate::types::ScheduledQueryState>,
}
impl UpdateScheduledQueryInputBuilder {
pub fn scheduled_query_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.scheduled_query_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_scheduled_query_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.scheduled_query_arn = input;
self
}
pub fn get_scheduled_query_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.scheduled_query_arn
}
pub fn state(mut self, input: crate::types::ScheduledQueryState) -> Self {
self.state = ::std::option::Option::Some(input);
self
}
pub fn set_state(mut self, input: ::std::option::Option<crate::types::ScheduledQueryState>) -> Self {
self.state = input;
self
}
pub fn get_state(&self) -> &::std::option::Option<crate::types::ScheduledQueryState> {
&self.state
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::update_scheduled_query::UpdateScheduledQueryInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::update_scheduled_query::UpdateScheduledQueryInput {
scheduled_query_arn: self.scheduled_query_arn,
state: self.state,
})
}
}