#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateBusinessReportScheduleInput {
pub schedule_arn: ::std::option::Option<::std::string::String>,
pub s3_bucket_name: ::std::option::Option<::std::string::String>,
pub s3_key_prefix: ::std::option::Option<::std::string::String>,
pub format: ::std::option::Option<crate::types::BusinessReportFormat>,
pub schedule_name: ::std::option::Option<::std::string::String>,
pub recurrence: ::std::option::Option<crate::types::BusinessReportRecurrence>,
}
impl UpdateBusinessReportScheduleInput {
pub fn schedule_arn(&self) -> ::std::option::Option<&str> {
self.schedule_arn.as_deref()
}
pub fn s3_bucket_name(&self) -> ::std::option::Option<&str> {
self.s3_bucket_name.as_deref()
}
pub fn s3_key_prefix(&self) -> ::std::option::Option<&str> {
self.s3_key_prefix.as_deref()
}
pub fn format(&self) -> ::std::option::Option<&crate::types::BusinessReportFormat> {
self.format.as_ref()
}
pub fn schedule_name(&self) -> ::std::option::Option<&str> {
self.schedule_name.as_deref()
}
pub fn recurrence(&self) -> ::std::option::Option<&crate::types::BusinessReportRecurrence> {
self.recurrence.as_ref()
}
}
impl UpdateBusinessReportScheduleInput {
pub fn builder() -> crate::operation::update_business_report_schedule::builders::UpdateBusinessReportScheduleInputBuilder {
crate::operation::update_business_report_schedule::builders::UpdateBusinessReportScheduleInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct UpdateBusinessReportScheduleInputBuilder {
pub(crate) schedule_arn: ::std::option::Option<::std::string::String>,
pub(crate) s3_bucket_name: ::std::option::Option<::std::string::String>,
pub(crate) s3_key_prefix: ::std::option::Option<::std::string::String>,
pub(crate) format: ::std::option::Option<crate::types::BusinessReportFormat>,
pub(crate) schedule_name: ::std::option::Option<::std::string::String>,
pub(crate) recurrence: ::std::option::Option<crate::types::BusinessReportRecurrence>,
}
impl UpdateBusinessReportScheduleInputBuilder {
pub fn schedule_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_schedule_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_arn = input;
self
}
pub fn get_schedule_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_arn
}
pub fn s3_bucket_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_bucket_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_bucket_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_bucket_name = input;
self
}
pub fn get_s3_bucket_name(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_bucket_name
}
pub fn s3_key_prefix(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.s3_key_prefix = ::std::option::Option::Some(input.into());
self
}
pub fn set_s3_key_prefix(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.s3_key_prefix = input;
self
}
pub fn get_s3_key_prefix(&self) -> &::std::option::Option<::std::string::String> {
&self.s3_key_prefix
}
pub fn format(mut self, input: crate::types::BusinessReportFormat) -> Self {
self.format = ::std::option::Option::Some(input);
self
}
pub fn set_format(mut self, input: ::std::option::Option<crate::types::BusinessReportFormat>) -> Self {
self.format = input;
self
}
pub fn get_format(&self) -> &::std::option::Option<crate::types::BusinessReportFormat> {
&self.format
}
pub fn schedule_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.schedule_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_schedule_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.schedule_name = input;
self
}
pub fn get_schedule_name(&self) -> &::std::option::Option<::std::string::String> {
&self.schedule_name
}
pub fn recurrence(mut self, input: crate::types::BusinessReportRecurrence) -> Self {
self.recurrence = ::std::option::Option::Some(input);
self
}
pub fn set_recurrence(mut self, input: ::std::option::Option<crate::types::BusinessReportRecurrence>) -> Self {
self.recurrence = input;
self
}
pub fn get_recurrence(&self) -> &::std::option::Option<crate::types::BusinessReportRecurrence> {
&self.recurrence
}
pub fn build(
self,
) -> ::std::result::Result<
crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput,
::aws_smithy_http::operation::error::BuildError,
> {
::std::result::Result::Ok(crate::operation::update_business_report_schedule::UpdateBusinessReportScheduleInput {
schedule_arn: self.schedule_arn,
s3_bucket_name: self.s3_bucket_name,
s3_key_prefix: self.s3_key_prefix,
format: self.format,
schedule_name: self.schedule_name,
recurrence: self.recurrence,
})
}
}