#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetUsageTotalsInput {
pub time_range: ::std::option::Option<::std::string::String>,
}
impl GetUsageTotalsInput {
pub fn time_range(&self) -> ::std::option::Option<&str> {
self.time_range.as_deref()
}
}
impl GetUsageTotalsInput {
pub fn builder() -> crate::operation::get_usage_totals::builders::GetUsageTotalsInputBuilder {
crate::operation::get_usage_totals::builders::GetUsageTotalsInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetUsageTotalsInputBuilder {
pub(crate) time_range: ::std::option::Option<::std::string::String>,
}
impl GetUsageTotalsInputBuilder {
pub fn time_range(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.time_range = ::std::option::Option::Some(input.into());
self
}
pub fn set_time_range(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.time_range = input;
self
}
pub fn get_time_range(&self) -> &::std::option::Option<::std::string::String> {
&self.time_range
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_usage_totals::GetUsageTotalsInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_usage_totals::GetUsageTotalsInput { time_range: self.time_range })
}
}