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 CreateProfileShareOutput {
    /// <p>The ID associated with the share.</p>
    pub share_id: ::std::option::Option<::std::string::String>,
    /// <p>The profile ARN.</p>
    pub profile_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateProfileShareOutput {
    /// <p>The ID associated with the share.</p>
    pub fn share_id(&self) -> ::std::option::Option<&str> {
        self.share_id.as_deref()
    }
    /// <p>The profile ARN.</p>
    pub fn profile_arn(&self) -> ::std::option::Option<&str> {
        self.profile_arn.as_deref()
    }
}
impl ::aws_types::request_id::RequestId for CreateProfileShareOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateProfileShareOutput {
    /// Creates a new builder-style object to manufacture [`CreateProfileShareOutput`](crate::operation::create_profile_share::CreateProfileShareOutput).
    pub fn builder() -> crate::operation::create_profile_share::builders::CreateProfileShareOutputBuilder {
        crate::operation::create_profile_share::builders::CreateProfileShareOutputBuilder::default()
    }
}

/// A builder for [`CreateProfileShareOutput`](crate::operation::create_profile_share::CreateProfileShareOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateProfileShareOutputBuilder {
    pub(crate) share_id: ::std::option::Option<::std::string::String>,
    pub(crate) profile_arn: ::std::option::Option<::std::string::String>,
    _request_id: Option<String>,
}
impl CreateProfileShareOutputBuilder {
    /// <p>The ID associated with the share.</p>
    pub fn share_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.share_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The ID associated with the share.</p>
    pub fn set_share_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.share_id = input;
        self
    }
    /// <p>The ID associated with the share.</p>
    pub fn get_share_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.share_id
    }
    /// <p>The profile ARN.</p>
    pub fn profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.profile_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The profile ARN.</p>
    pub fn set_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.profile_arn = input;
        self
    }
    /// <p>The profile ARN.</p>
    pub fn get_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.profile_arn
    }
    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 [`CreateProfileShareOutput`](crate::operation::create_profile_share::CreateProfileShareOutput).
    pub fn build(self) -> crate::operation::create_profile_share::CreateProfileShareOutput {
        crate::operation::create_profile_share::CreateProfileShareOutput {
            share_id: self.share_id,
            profile_arn: self.profile_arn,
            _request_id: self._request_id,
        }
    }
}