// 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 CreateAccountOutput {
/// <p>A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned <code>CreateAccountStatus</code> ID as a parameter to <code>DescribeCreateAccountStatus</code> to get status about the progress of the request at later times. You can also check the CloudTrail log for the <code>CreateAccountResult</code> event. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html">Logging and monitoring in Organizations</a> in the <i>Organizations User Guide</i>.</p>
pub create_account_status: ::std::option::Option<crate::types::CreateAccountStatus>,
_request_id: Option<String>,
}
impl CreateAccountOutput {
/// <p>A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned <code>CreateAccountStatus</code> ID as a parameter to <code>DescribeCreateAccountStatus</code> to get status about the progress of the request at later times. You can also check the CloudTrail log for the <code>CreateAccountResult</code> event. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html">Logging and monitoring in Organizations</a> in the <i>Organizations User Guide</i>.</p>
pub fn create_account_status(&self) -> ::std::option::Option<&crate::types::CreateAccountStatus> {
self.create_account_status.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreateAccountOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateAccountOutput {
/// Creates a new builder-style object to manufacture [`CreateAccountOutput`](crate::operation::create_account::CreateAccountOutput).
pub fn builder() -> crate::operation::create_account::builders::CreateAccountOutputBuilder {
crate::operation::create_account::builders::CreateAccountOutputBuilder::default()
}
}
/// A builder for [`CreateAccountOutput`](crate::operation::create_account::CreateAccountOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateAccountOutputBuilder {
pub(crate) create_account_status: ::std::option::Option<crate::types::CreateAccountStatus>,
_request_id: Option<String>,
}
impl CreateAccountOutputBuilder {
/// <p>A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned <code>CreateAccountStatus</code> ID as a parameter to <code>DescribeCreateAccountStatus</code> to get status about the progress of the request at later times. You can also check the CloudTrail log for the <code>CreateAccountResult</code> event. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html">Logging and monitoring in Organizations</a> in the <i>Organizations User Guide</i>.</p>
pub fn create_account_status(mut self, input: crate::types::CreateAccountStatus) -> Self {
self.create_account_status = ::std::option::Option::Some(input);
self
}
/// <p>A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned <code>CreateAccountStatus</code> ID as a parameter to <code>DescribeCreateAccountStatus</code> to get status about the progress of the request at later times. You can also check the CloudTrail log for the <code>CreateAccountResult</code> event. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html">Logging and monitoring in Organizations</a> in the <i>Organizations User Guide</i>.</p>
pub fn set_create_account_status(mut self, input: ::std::option::Option<crate::types::CreateAccountStatus>) -> Self {
self.create_account_status = input;
self
}
/// <p>A structure that contains details about the request to create an account. This response structure might not be fully populated when you first receive it because account creation is an asynchronous process. You can pass the returned <code>CreateAccountStatus</code> ID as a parameter to <code>DescribeCreateAccountStatus</code> to get status about the progress of the request at later times. You can also check the CloudTrail log for the <code>CreateAccountResult</code> event. For more information, see <a href="https://docs.aws.amazon.com/organizations/latest/userguide/orgs_security_incident-response.html">Logging and monitoring in Organizations</a> in the <i>Organizations User Guide</i>.</p>
pub fn get_create_account_status(&self) -> &::std::option::Option<crate::types::CreateAccountStatus> {
&self.create_account_status
}
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 [`CreateAccountOutput`](crate::operation::create_account::CreateAccountOutput).
pub fn build(self) -> crate::operation::create_account::CreateAccountOutput {
crate::operation::create_account::CreateAccountOutput {
create_account_status: self.create_account_status,
_request_id: self._request_id,
}
}
}