#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetMinuteUsageInput {
pub month: ::std::option::Option<i32>,
pub year: ::std::option::Option<i32>,
}
impl GetMinuteUsageInput {
pub fn month(&self) -> ::std::option::Option<i32> {
self.month
}
pub fn year(&self) -> ::std::option::Option<i32> {
self.year
}
}
impl GetMinuteUsageInput {
pub fn builder() -> crate::operation::get_minute_usage::builders::GetMinuteUsageInputBuilder {
crate::operation::get_minute_usage::builders::GetMinuteUsageInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMinuteUsageInputBuilder {
pub(crate) month: ::std::option::Option<i32>,
pub(crate) year: ::std::option::Option<i32>,
}
impl GetMinuteUsageInputBuilder {
pub fn month(mut self, input: i32) -> Self {
self.month = ::std::option::Option::Some(input);
self
}
pub fn set_month(mut self, input: ::std::option::Option<i32>) -> Self {
self.month = input;
self
}
pub fn get_month(&self) -> &::std::option::Option<i32> {
&self.month
}
pub fn year(mut self, input: i32) -> Self {
self.year = ::std::option::Option::Some(input);
self
}
pub fn set_year(mut self, input: ::std::option::Option<i32>) -> Self {
self.year = input;
self
}
pub fn get_year(&self) -> &::std::option::Option<i32> {
&self.year
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::get_minute_usage::GetMinuteUsageInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_minute_usage::GetMinuteUsageInput {
month: self.month,
year: self.year,
})
}
}