#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMetricsSummaryInput {
pub date: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl GetMetricsSummaryInput {
pub fn date(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.date.as_ref()
}
}
impl GetMetricsSummaryInput {
pub fn builder() -> crate::operation::get_metrics_summary::builders::GetMetricsSummaryInputBuilder {
crate::operation::get_metrics_summary::builders::GetMetricsSummaryInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMetricsSummaryInputBuilder {
pub(crate) date: ::std::option::Option<::aws_smithy_types::DateTime>,
}
impl GetMetricsSummaryInputBuilder {
pub fn date(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.date = ::std::option::Option::Some(input);
self
}
pub fn set_date(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.date = input;
self
}
pub fn get_date(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.date
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_metrics_summary::GetMetricsSummaryInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_metrics_summary::GetMetricsSummaryInput { date: self.date })
}
}