aws-sdk-groundstation 0.27.0

AWS SDK for AWS Ground Station
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.

/// <p></p>
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct GetMinuteUsageInput {
    /// <p>The month being requested, with a value of 1-12.</p>
    #[doc(hidden)]
    pub month: std::option::Option<i32>,
    /// <p>The year being requested, in the format of YYYY.</p>
    #[doc(hidden)]
    pub year: std::option::Option<i32>,
}
impl GetMinuteUsageInput {
    /// <p>The month being requested, with a value of 1-12.</p>
    pub fn month(&self) -> std::option::Option<i32> {
        self.month
    }
    /// <p>The year being requested, in the format of YYYY.</p>
    pub fn year(&self) -> std::option::Option<i32> {
        self.year
    }
}
impl GetMinuteUsageInput {
    /// Creates a new builder-style object to manufacture [`GetMinuteUsageInput`](crate::operation::get_minute_usage::GetMinuteUsageInput).
    pub fn builder() -> crate::operation::get_minute_usage::builders::GetMinuteUsageInputBuilder {
        crate::operation::get_minute_usage::builders::GetMinuteUsageInputBuilder::default()
    }
}

/// A builder for [`GetMinuteUsageInput`](crate::operation::get_minute_usage::GetMinuteUsageInput).
#[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 {
    /// <p>The month being requested, with a value of 1-12.</p>
    pub fn month(mut self, input: i32) -> Self {
        self.month = Some(input);
        self
    }
    /// <p>The month being requested, with a value of 1-12.</p>
    pub fn set_month(mut self, input: std::option::Option<i32>) -> Self {
        self.month = input;
        self
    }
    /// <p>The year being requested, in the format of YYYY.</p>
    pub fn year(mut self, input: i32) -> Self {
        self.year = Some(input);
        self
    }
    /// <p>The year being requested, in the format of YYYY.</p>
    pub fn set_year(mut self, input: std::option::Option<i32>) -> Self {
        self.year = input;
        self
    }
    /// Consumes the builder and constructs a [`GetMinuteUsageInput`](crate::operation::get_minute_usage::GetMinuteUsageInput).
    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,
        })
    }
}