#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateRefreshScheduleInput {
pub data_set_id: ::std::option::Option<::std::string::String>,
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub schedule: ::std::option::Option<crate::types::RefreshSchedule>,
}
impl CreateRefreshScheduleInput {
pub fn data_set_id(&self) -> ::std::option::Option<&str> {
self.data_set_id.as_deref()
}
pub fn aws_account_id(&self) -> ::std::option::Option<&str> {
self.aws_account_id.as_deref()
}
pub fn schedule(&self) -> ::std::option::Option<&crate::types::RefreshSchedule> {
self.schedule.as_ref()
}
}
impl CreateRefreshScheduleInput {
pub fn builder() -> crate::operation::create_refresh_schedule::builders::CreateRefreshScheduleInputBuilder {
crate::operation::create_refresh_schedule::builders::CreateRefreshScheduleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateRefreshScheduleInputBuilder {
pub(crate) data_set_id: ::std::option::Option<::std::string::String>,
pub(crate) aws_account_id: ::std::option::Option<::std::string::String>,
pub(crate) schedule: ::std::option::Option<crate::types::RefreshSchedule>,
}
impl CreateRefreshScheduleInputBuilder {
pub fn data_set_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.data_set_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_data_set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.data_set_id = input;
self
}
pub fn get_data_set_id(&self) -> &::std::option::Option<::std::string::String> {
&self.data_set_id
}
pub fn aws_account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.aws_account_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_aws_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.aws_account_id = input;
self
}
pub fn get_aws_account_id(&self) -> &::std::option::Option<::std::string::String> {
&self.aws_account_id
}
pub fn schedule(mut self, input: crate::types::RefreshSchedule) -> Self {
self.schedule = ::std::option::Option::Some(input);
self
}
pub fn set_schedule(mut self, input: ::std::option::Option<crate::types::RefreshSchedule>) -> Self {
self.schedule = input;
self
}
pub fn get_schedule(&self) -> &::std::option::Option<crate::types::RefreshSchedule> {
&self.schedule
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::create_refresh_schedule::CreateRefreshScheduleInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_refresh_schedule::CreateRefreshScheduleInput {
data_set_id: self.data_set_id,
aws_account_id: self.aws_account_id,
schedule: self.schedule,
})
}
}