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.

/// <p>Details about the account that was not processed.</p>
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct Result {
    /// <p>An Amazon Web Services account ID of the account that was not processed.</p>
    pub account_id: ::std::option::Option<::std::string::String>,
    /// <p>The reason that the account was not processed.</p>
    pub processing_result: ::std::option::Option<::std::string::String>,
}
impl Result {
    /// <p>An Amazon Web Services account ID of the account that was not processed.</p>
    pub fn account_id(&self) -> ::std::option::Option<&str> {
        self.account_id.as_deref()
    }
    /// <p>The reason that the account was not processed.</p>
    pub fn processing_result(&self) -> ::std::option::Option<&str> {
        self.processing_result.as_deref()
    }
}
impl Result {
    /// Creates a new builder-style object to manufacture [`Result`](crate::types::Result).
    pub fn builder() -> crate::types::builders::ResultBuilder {
        crate::types::builders::ResultBuilder::default()
    }
}

/// A builder for [`Result`](crate::types::Result).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ResultBuilder {
    pub(crate) account_id: ::std::option::Option<::std::string::String>,
    pub(crate) processing_result: ::std::option::Option<::std::string::String>,
}
impl ResultBuilder {
    /// <p>An Amazon Web Services account ID of the account that was not processed.</p>
    pub fn account_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.account_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>An Amazon Web Services account ID of the account that was not processed.</p>
    pub fn set_account_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.account_id = input;
        self
    }
    /// <p>An Amazon Web Services account ID of the account that was not processed.</p>
    pub fn get_account_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.account_id
    }
    /// <p>The reason that the account was not processed.</p>
    pub fn processing_result(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.processing_result = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The reason that the account was not processed.</p>
    pub fn set_processing_result(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.processing_result = input;
        self
    }
    /// <p>The reason that the account was not processed.</p>
    pub fn get_processing_result(&self) -> &::std::option::Option<::std::string::String> {
        &self.processing_result
    }
    /// Consumes the builder and constructs a [`Result`](crate::types::Result).
    pub fn build(self) -> crate::types::Result {
        crate::types::Result {
            account_id: self.account_id,
            processing_result: self.processing_result,
        }
    }
}