#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteRefreshScheduleInput {
pub data_set_id: ::std::option::Option<::std::string::String>,
pub aws_account_id: ::std::option::Option<::std::string::String>,
pub schedule_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRefreshScheduleInput {
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_id(&self) -> ::std::option::Option<&str> {
self.schedule_id.as_deref()
}
}
impl DeleteRefreshScheduleInput {
pub fn builder() -> crate::operation::delete_refresh_schedule::builders::DeleteRefreshScheduleInputBuilder {
crate::operation::delete_refresh_schedule::builders::DeleteRefreshScheduleInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteRefreshScheduleInputBuilder {
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_id: ::std::option::Option<::std::string::String>,
}
impl DeleteRefreshScheduleInputBuilder {
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_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_schedule_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_id = input;
self
}
pub fn get_schedule_id(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_id
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_refresh_schedule::DeleteRefreshScheduleInput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::delete_refresh_schedule::DeleteRefreshScheduleInput {
data_set_id: self.data_set_id,
aws_account_id: self.aws_account_id,
schedule_id: self.schedule_id,
})
}
}