aws-sdk-wellarchitected 1.102.0

AWS SDK for AWS Well-Architected Tool
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 UpdateShareInvitationOutput {
    /// <p>The updated workload or custom lens share invitation.</p>
    pub share_invitation: ::std::option::Option<crate::types::ShareInvitation>,
    _request_id: Option<String>,
}
impl UpdateShareInvitationOutput {
    /// <p>The updated workload or custom lens share invitation.</p>
    pub fn share_invitation(&self) -> ::std::option::Option<&crate::types::ShareInvitation> {
        self.share_invitation.as_ref()
    }
}
impl ::aws_types::request_id::RequestId for UpdateShareInvitationOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl UpdateShareInvitationOutput {
    /// Creates a new builder-style object to manufacture [`UpdateShareInvitationOutput`](crate::operation::update_share_invitation::UpdateShareInvitationOutput).
    pub fn builder() -> crate::operation::update_share_invitation::builders::UpdateShareInvitationOutputBuilder {
        crate::operation::update_share_invitation::builders::UpdateShareInvitationOutputBuilder::default()
    }
}

/// A builder for [`UpdateShareInvitationOutput`](crate::operation::update_share_invitation::UpdateShareInvitationOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateShareInvitationOutputBuilder {
    pub(crate) share_invitation: ::std::option::Option<crate::types::ShareInvitation>,
    _request_id: Option<String>,
}
impl UpdateShareInvitationOutputBuilder {
    /// <p>The updated workload or custom lens share invitation.</p>
    pub fn share_invitation(mut self, input: crate::types::ShareInvitation) -> Self {
        self.share_invitation = ::std::option::Option::Some(input);
        self
    }
    /// <p>The updated workload or custom lens share invitation.</p>
    pub fn set_share_invitation(mut self, input: ::std::option::Option<crate::types::ShareInvitation>) -> Self {
        self.share_invitation = input;
        self
    }
    /// <p>The updated workload or custom lens share invitation.</p>
    pub fn get_share_invitation(&self) -> &::std::option::Option<crate::types::ShareInvitation> {
        &self.share_invitation
    }
    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 [`UpdateShareInvitationOutput`](crate::operation::update_share_invitation::UpdateShareInvitationOutput).
    pub fn build(self) -> crate::operation::update_share_invitation::UpdateShareInvitationOutput {
        crate::operation::update_share_invitation::UpdateShareInvitationOutput {
            share_invitation: self.share_invitation,
            _request_id: self._request_id,
        }
    }
}