aws-sdk-billing 1.32.0

AWS SDK for AWS Billing
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 GetBillingViewOutput {
    /// <p>The billing view element associated with the specified ARN.</p>
    pub billing_view: ::std::option::Option<crate::types::BillingViewElement>,
    _request_id: Option<String>,
}
impl GetBillingViewOutput {
    /// <p>The billing view element associated with the specified ARN.</p>
    pub fn billing_view(&self) -> ::std::option::Option<&crate::types::BillingViewElement> {
        self.billing_view.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetBillingViewOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetBillingViewOutput {
    /// Creates a new builder-style object to manufacture [`GetBillingViewOutput`](crate::operation::get_billing_view::GetBillingViewOutput).
    pub fn builder() -> crate::operation::get_billing_view::builders::GetBillingViewOutputBuilder {
        crate::operation::get_billing_view::builders::GetBillingViewOutputBuilder::default()
    }
}

/// A builder for [`GetBillingViewOutput`](crate::operation::get_billing_view::GetBillingViewOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetBillingViewOutputBuilder {
    pub(crate) billing_view: ::std::option::Option<crate::types::BillingViewElement>,
    _request_id: Option<String>,
}
impl GetBillingViewOutputBuilder {
    /// <p>The billing view element associated with the specified ARN.</p>
    /// This field is required.
    pub fn billing_view(mut self, input: crate::types::BillingViewElement) -> Self {
        self.billing_view = ::std::option::Option::Some(input);
        self
    }
    /// <p>The billing view element associated with the specified ARN.</p>
    pub fn set_billing_view(mut self, input: ::std::option::Option<crate::types::BillingViewElement>) -> Self {
        self.billing_view = input;
        self
    }
    /// <p>The billing view element associated with the specified ARN.</p>
    pub fn get_billing_view(&self) -> &::std::option::Option<crate::types::BillingViewElement> {
        &self.billing_view
    }
    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 [`GetBillingViewOutput`](crate::operation::get_billing_view::GetBillingViewOutput).
    pub fn build(self) -> crate::operation::get_billing_view::GetBillingViewOutput {
        crate::operation::get_billing_view::GetBillingViewOutput {
            billing_view: self.billing_view,
            _request_id: self._request_id,
        }
    }
}