aws-sdk-controltower 1.100.0

AWS SDK for AWS Control Tower
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 UpdateLandingZoneOutput {
    /// <p>A unique identifier assigned to a <code>UpdateLandingZone</code> operation. You can use this identifier as an input of <code>GetLandingZoneOperation</code> to check the operation's status.</p>
    pub operation_identifier: ::std::string::String,
    _request_id: Option<String>,
}
impl UpdateLandingZoneOutput {
    /// <p>A unique identifier assigned to a <code>UpdateLandingZone</code> operation. You can use this identifier as an input of <code>GetLandingZoneOperation</code> to check the operation's status.</p>
    pub fn operation_identifier(&self) -> &str {
        use std::ops::Deref;
        self.operation_identifier.deref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateLandingZoneOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateLandingZoneOutput {
    /// Creates a new builder-style object to manufacture [`UpdateLandingZoneOutput`](crate::operation::update_landing_zone::UpdateLandingZoneOutput).
    pub fn builder() -> crate::operation::update_landing_zone::builders::UpdateLandingZoneOutputBuilder {
        crate::operation::update_landing_zone::builders::UpdateLandingZoneOutputBuilder::default()
    }
}

/// A builder for [`UpdateLandingZoneOutput`](crate::operation::update_landing_zone::UpdateLandingZoneOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateLandingZoneOutputBuilder {
    pub(crate) operation_identifier: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl UpdateLandingZoneOutputBuilder {
    /// <p>A unique identifier assigned to a <code>UpdateLandingZone</code> operation. You can use this identifier as an input of <code>GetLandingZoneOperation</code> to check the operation's status.</p>
    /// This field is required.
    pub fn operation_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.operation_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>A unique identifier assigned to a <code>UpdateLandingZone</code> operation. You can use this identifier as an input of <code>GetLandingZoneOperation</code> to check the operation's status.</p>
    pub fn set_operation_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.operation_identifier = input;
        self
    }
    /// <p>A unique identifier assigned to a <code>UpdateLandingZone</code> operation. You can use this identifier as an input of <code>GetLandingZoneOperation</code> to check the operation's status.</p>
    pub fn get_operation_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.operation_identifier
    }
    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 [`UpdateLandingZoneOutput`](crate::operation::update_landing_zone::UpdateLandingZoneOutput).
    /// This method will fail if any of the following fields are not set:
    /// - [`operation_identifier`](crate::operation::update_landing_zone::builders::UpdateLandingZoneOutputBuilder::operation_identifier)
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_landing_zone::UpdateLandingZoneOutput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_landing_zone::UpdateLandingZoneOutput {
            operation_identifier: self.operation_identifier.ok_or_else(|| {
                ::aws_smithy_types::error::operation::BuildError::missing_field(
                    "operation_identifier",
                    "operation_identifier was not specified but it is required when building UpdateLandingZoneOutput",
                )
            })?,
            _request_id: self._request_id,
        })
    }
}