aws-sdk-securityhub 1.110.0

AWS SDK for AWS SecurityHub
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 GetMasterAccountOutput {
    /// <p>A list of details about the Security Hub CSPM administrator account for the current member account.</p>
    pub master: ::std::option::Option<crate::types::Invitation>,
    _request_id: Option<String>,
}
impl GetMasterAccountOutput {
    /// <p>A list of details about the Security Hub CSPM administrator account for the current member account.</p>
    pub fn master(&self) -> ::std::option::Option<&crate::types::Invitation> {
        self.master.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for GetMasterAccountOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl GetMasterAccountOutput {
    /// Creates a new builder-style object to manufacture [`GetMasterAccountOutput`](crate::operation::get_master_account::GetMasterAccountOutput).
    pub fn builder() -> crate::operation::get_master_account::builders::GetMasterAccountOutputBuilder {
        crate::operation::get_master_account::builders::GetMasterAccountOutputBuilder::default()
    }
}

/// A builder for [`GetMasterAccountOutput`](crate::operation::get_master_account::GetMasterAccountOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetMasterAccountOutputBuilder {
    pub(crate) master: ::std::option::Option<crate::types::Invitation>,
    _request_id: Option<String>,
}
impl GetMasterAccountOutputBuilder {
    /// <p>A list of details about the Security Hub CSPM administrator account for the current member account.</p>
    pub fn master(mut self, input: crate::types::Invitation) -> Self {
        self.master = ::std::option::Option::Some(input);
        self
    }
    /// <p>A list of details about the Security Hub CSPM administrator account for the current member account.</p>
    pub fn set_master(mut self, input: ::std::option::Option<crate::types::Invitation>) -> Self {
        self.master = input;
        self
    }
    /// <p>A list of details about the Security Hub CSPM administrator account for the current member account.</p>
    pub fn get_master(&self) -> &::std::option::Option<crate::types::Invitation> {
        &self.master
    }
    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 [`GetMasterAccountOutput`](crate::operation::get_master_account::GetMasterAccountOutput).
    pub fn build(self) -> crate::operation::get_master_account::GetMasterAccountOutput {
        crate::operation::get_master_account::GetMasterAccountOutput {
            master: self.master,
            _request_id: self._request_id,
        }
    }
}