#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMinuteUsageInput {
#[doc(hidden)]
pub month: std::option::Option<i32>,
#[doc(hidden)]
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()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
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 = Some(input);
self
}
pub fn set_month(mut self, input: std::option::Option<i32>) -> Self {
self.month = input;
self
}
pub fn year(mut self, input: i32) -> Self {
self.year = Some(input);
self
}
pub fn set_year(mut self, input: std::option::Option<i32>) -> Self {
self.year = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::get_minute_usage::GetMinuteUsageInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::get_minute_usage::GetMinuteUsageInput {
month: self.month,
year: self.year,
})
}
}