aws-sdk-datazone 1.136.0

AWS SDK for Amazon DataZone
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 UpdateUserProfileInput {
    /// <p>The identifier of the Amazon DataZone domain in which a user profile is updated.</p>
    pub domain_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The identifier of the user whose user profile is to be updated.</p>
    pub user_identifier: ::std::option::Option<::std::string::String>,
    /// <p>The type of the user profile that are to be updated.</p>
    pub r#type: ::std::option::Option<crate::types::UserProfileType>,
    /// <p>The status of the user profile that are to be updated.</p>
    pub status: ::std::option::Option<crate::types::UserProfileStatus>,
    /// <p>The session name for IAM role sessions.</p>
    pub session_name: ::std::option::Option<::std::string::String>,
}
impl UpdateUserProfileInput {
    /// <p>The identifier of the Amazon DataZone domain in which a user profile is updated.</p>
    pub fn domain_identifier(&self) -> ::std::option::Option<&str> {
        self.domain_identifier.as_deref()
    }
    /// <p>The identifier of the user whose user profile is to be updated.</p>
    pub fn user_identifier(&self) -> ::std::option::Option<&str> {
        self.user_identifier.as_deref()
    }
    /// <p>The type of the user profile that are to be updated.</p>
    pub fn r#type(&self) -> ::std::option::Option<&crate::types::UserProfileType> {
        self.r#type.as_ref()
    }
    /// <p>The status of the user profile that are to be updated.</p>
    pub fn status(&self) -> ::std::option::Option<&crate::types::UserProfileStatus> {
        self.status.as_ref()
    }
    /// <p>The session name for IAM role sessions.</p>
    pub fn session_name(&self) -> ::std::option::Option<&str> {
        self.session_name.as_deref()
    }
}
impl UpdateUserProfileInput {
    /// Creates a new builder-style object to manufacture [`UpdateUserProfileInput`](crate::operation::update_user_profile::UpdateUserProfileInput).
    pub fn builder() -> crate::operation::update_user_profile::builders::UpdateUserProfileInputBuilder {
        crate::operation::update_user_profile::builders::UpdateUserProfileInputBuilder::default()
    }
}

/// A builder for [`UpdateUserProfileInput`](crate::operation::update_user_profile::UpdateUserProfileInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateUserProfileInputBuilder {
    pub(crate) domain_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) user_identifier: ::std::option::Option<::std::string::String>,
    pub(crate) r#type: ::std::option::Option<crate::types::UserProfileType>,
    pub(crate) status: ::std::option::Option<crate::types::UserProfileStatus>,
    pub(crate) session_name: ::std::option::Option<::std::string::String>,
}
impl UpdateUserProfileInputBuilder {
    /// <p>The identifier of the Amazon DataZone domain in which a user profile is updated.</p>
    /// This field is required.
    pub fn domain_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.domain_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which a user profile is updated.</p>
    pub fn set_domain_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.domain_identifier = input;
        self
    }
    /// <p>The identifier of the Amazon DataZone domain in which a user profile is updated.</p>
    pub fn get_domain_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.domain_identifier
    }
    /// <p>The identifier of the user whose user profile is to be updated.</p>
    /// This field is required.
    pub fn user_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.user_identifier = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The identifier of the user whose user profile is to be updated.</p>
    pub fn set_user_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.user_identifier = input;
        self
    }
    /// <p>The identifier of the user whose user profile is to be updated.</p>
    pub fn get_user_identifier(&self) -> &::std::option::Option<::std::string::String> {
        &self.user_identifier
    }
    /// <p>The type of the user profile that are to be updated.</p>
    pub fn r#type(mut self, input: crate::types::UserProfileType) -> Self {
        self.r#type = ::std::option::Option::Some(input);
        self
    }
    /// <p>The type of the user profile that are to be updated.</p>
    pub fn set_type(mut self, input: ::std::option::Option<crate::types::UserProfileType>) -> Self {
        self.r#type = input;
        self
    }
    /// <p>The type of the user profile that are to be updated.</p>
    pub fn get_type(&self) -> &::std::option::Option<crate::types::UserProfileType> {
        &self.r#type
    }
    /// <p>The status of the user profile that are to be updated.</p>
    /// This field is required.
    pub fn status(mut self, input: crate::types::UserProfileStatus) -> Self {
        self.status = ::std::option::Option::Some(input);
        self
    }
    /// <p>The status of the user profile that are to be updated.</p>
    pub fn set_status(mut self, input: ::std::option::Option<crate::types::UserProfileStatus>) -> Self {
        self.status = input;
        self
    }
    /// <p>The status of the user profile that are to be updated.</p>
    pub fn get_status(&self) -> &::std::option::Option<crate::types::UserProfileStatus> {
        &self.status
    }
    /// <p>The session name for IAM role sessions.</p>
    pub fn session_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.session_name = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The session name for IAM role sessions.</p>
    pub fn set_session_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.session_name = input;
        self
    }
    /// <p>The session name for IAM role sessions.</p>
    pub fn get_session_name(&self) -> &::std::option::Option<::std::string::String> {
        &self.session_name
    }
    /// Consumes the builder and constructs a [`UpdateUserProfileInput`](crate::operation::update_user_profile::UpdateUserProfileInput).
    pub fn build(
        self,
    ) -> ::std::result::Result<crate::operation::update_user_profile::UpdateUserProfileInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::update_user_profile::UpdateUserProfileInput {
            domain_identifier: self.domain_identifier,
            user_identifier: self.user_identifier,
            r#type: self.r#type,
            status: self.status,
            session_name: self.session_name,
        })
    }
}