aws-sdk-snowball 1.93.0

AWS SDK for Amazon Import/Export Snowball
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetSnowballUsageOutput {
    /// <p>The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).</p>
    pub snowball_limit: ::std::option::Option<i32>,
    /// <p>The number of Snow devices that this account is currently using.</p>
    pub snowballs_in_use: ::std::option::Option<i32>,
    _request_id: Option<String>,
}
impl GetSnowballUsageOutput {
    /// <p>The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).</p>
    pub fn snowball_limit(&self) -> ::std::option::Option<i32> {
        self.snowball_limit
    }
    /// <p>The number of Snow devices that this account is currently using.</p>
    pub fn snowballs_in_use(&self) -> ::std::option::Option<i32> {
        self.snowballs_in_use
    }
}
impl ::aws_types::request_id::RequestId for GetSnowballUsageOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetSnowballUsageOutput {
    /// Creates a new builder-style object to manufacture [`GetSnowballUsageOutput`](crate::operation::get_snowball_usage::GetSnowballUsageOutput).
    pub fn builder() -> crate::operation::get_snowball_usage::builders::GetSnowballUsageOutputBuilder {
        crate::operation::get_snowball_usage::builders::GetSnowballUsageOutputBuilder::default()
    }
}

/// A builder for [`GetSnowballUsageOutput`](crate::operation::get_snowball_usage::GetSnowballUsageOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetSnowballUsageOutputBuilder {
    pub(crate) snowball_limit: ::std::option::Option<i32>,
    pub(crate) snowballs_in_use: ::std::option::Option<i32>,
    _request_id: Option<String>,
}
impl GetSnowballUsageOutputBuilder {
    /// <p>The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).</p>
    pub fn snowball_limit(mut self, input: i32) -> Self {
        self.snowball_limit = ::std::option::Option::Some(input);
        self
    }
    /// <p>The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).</p>
    pub fn set_snowball_limit(mut self, input: ::std::option::Option<i32>) -> Self {
        self.snowball_limit = input;
        self
    }
    /// <p>The service limit for number of Snow devices this account can have at once. The default service limit is 1 (one).</p>
    pub fn get_snowball_limit(&self) -> &::std::option::Option<i32> {
        &self.snowball_limit
    }
    /// <p>The number of Snow devices that this account is currently using.</p>
    pub fn snowballs_in_use(mut self, input: i32) -> Self {
        self.snowballs_in_use = ::std::option::Option::Some(input);
        self
    }
    /// <p>The number of Snow devices that this account is currently using.</p>
    pub fn set_snowballs_in_use(mut self, input: ::std::option::Option<i32>) -> Self {
        self.snowballs_in_use = input;
        self
    }
    /// <p>The number of Snow devices that this account is currently using.</p>
    pub fn get_snowballs_in_use(&self) -> &::std::option::Option<i32> {
        &self.snowballs_in_use
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`GetSnowballUsageOutput`](crate::operation::get_snowball_usage::GetSnowballUsageOutput).
    pub fn build(self) -> crate::operation::get_snowball_usage::GetSnowballUsageOutput {
        crate::operation::get_snowball_usage::GetSnowballUsageOutput {
            snowball_limit: self.snowball_limit,
            snowballs_in_use: self.snowballs_in_use,
            _request_id: self._request_id,
        }
    }
}