aws-sdk-groundstation 1.107.0

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

/// <p>Input for the <code>GetMinuteUsage</code> operation.</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>
    pub month: ::std::option::Option<i32>,
    /// <p>The year being requested, in the format of YYYY.</p>
    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).
#[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 {
    /// <p>The month being requested, with a value of 1-12.</p>
    /// This field is required.
    pub fn month(mut self, input: i32) -> Self {
        self.month = ::std::option::Option::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 month being requested, with a value of 1-12.</p>
    pub fn get_month(&self) -> &::std::option::Option<i32> {
        &self.month
    }
    /// <p>The year being requested, in the format of YYYY.</p>
    /// This field is required.
    pub fn year(mut self, input: i32) -> Self {
        self.year = ::std::option::Option::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
    }
    /// <p>The year being requested, in the format of YYYY.</p>
    pub fn get_year(&self) -> &::std::option::Option<i32> {
        &self.year
    }
    /// Consumes the builder and constructs a [`GetMinuteUsageInput`](crate::operation::get_minute_usage::GetMinuteUsageInput).
    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,
        })
    }
}