aws-sdk-codestar 1.39.0

AWS SDK for AWS CodeStar
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 DescribeUserProfileInput {
    /// <p>The Amazon Resource Name (ARN) of the user.</p>
    pub user_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeUserProfileInput {
    /// <p>The Amazon Resource Name (ARN) of the user.</p>
    pub fn user_arn(&self) -> ::std::option::Option<&str> {
        self.user_arn.as_deref()
    }
}
impl DescribeUserProfileInput {
    /// Creates a new builder-style object to manufacture [`DescribeUserProfileInput`](crate::operation::describe_user_profile::DescribeUserProfileInput).
    pub fn builder() -> crate::operation::describe_user_profile::builders::DescribeUserProfileInputBuilder {
        crate::operation::describe_user_profile::builders::DescribeUserProfileInputBuilder::default()
    }
}

/// A builder for [`DescribeUserProfileInput`](crate::operation::describe_user_profile::DescribeUserProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeUserProfileInputBuilder {
    pub(crate) user_arn: ::std::option::Option<::std::string::String>,
}
impl DescribeUserProfileInputBuilder {
    /// <p>The Amazon Resource Name (ARN) of the user.</p>
    /// This field is required.
    pub fn user_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.user_arn = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the user.</p>
    pub fn set_user_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.user_arn = input;
        self
    }
    /// <p>The Amazon Resource Name (ARN) of the user.</p>
    pub fn get_user_arn(&self) -> &::std::option::Option<::std::string::String> {
        &self.user_arn
    }
    /// Consumes the builder and constructs a [`DescribeUserProfileInput`](crate::operation::describe_user_profile::DescribeUserProfileInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::describe_user_profile::DescribeUserProfileInput, ::aws_smithy_types::error::operation::BuildError>
    {
        ::std::result::Result::Ok(crate::operation::describe_user_profile::DescribeUserProfileInput { user_arn: self.user_arn })
    }
}