aws-sdk-iot 1.112.0

AWS SDK for AWS IoT
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 UpdateBillingGroupOutput {
    /// <p>The latest version of the billing group.</p>
    pub version: i64,
    _request_id: Option<String>,
}
impl UpdateBillingGroupOutput {
    /// <p>The latest version of the billing group.</p>
    pub fn version(&self) -> i64 {
        self.version
    }
}
impl ::aws_types::request_id::RequestId for UpdateBillingGroupOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateBillingGroupOutput {
    /// Creates a new builder-style object to manufacture [`UpdateBillingGroupOutput`](crate::operation::update_billing_group::UpdateBillingGroupOutput).
    pub fn builder() -> crate::operation::update_billing_group::builders::UpdateBillingGroupOutputBuilder {
        crate::operation::update_billing_group::builders::UpdateBillingGroupOutputBuilder::default()
    }
}

/// A builder for [`UpdateBillingGroupOutput`](crate::operation::update_billing_group::UpdateBillingGroupOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateBillingGroupOutputBuilder {
    pub(crate) version: ::std::option::Option<i64>,
    _request_id: Option<String>,
}
impl UpdateBillingGroupOutputBuilder {
    /// <p>The latest version of the billing group.</p>
    pub fn version(mut self, input: i64) -> Self {
        self.version = ::std::option::Option::Some(input);
        self
    }
    /// <p>The latest version of the billing group.</p>
    pub fn set_version(mut self, input: ::std::option::Option<i64>) -> Self {
        self.version = input;
        self
    }
    /// <p>The latest version of the billing group.</p>
    pub fn get_version(&self) -> &::std::option::Option<i64> {
        &self.version
    }
    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 [`UpdateBillingGroupOutput`](crate::operation::update_billing_group::UpdateBillingGroupOutput).
    pub fn build(self) -> crate::operation::update_billing_group::UpdateBillingGroupOutput {
        crate::operation::update_billing_group::UpdateBillingGroupOutput {
            version: self.version.unwrap_or_default(),
            _request_id: self._request_id,
        }
    }
}