#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DescribeUserProfileOutput {
pub domain_id: ::std::option::Option<::std::string::String>,
pub user_profile_arn: ::std::option::Option<::std::string::String>,
pub user_profile_name: ::std::option::Option<::std::string::String>,
pub home_efs_file_system_uid: ::std::option::Option<::std::string::String>,
pub status: ::std::option::Option<crate::types::UserProfileStatus>,
pub last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub failure_reason: ::std::option::Option<::std::string::String>,
pub single_sign_on_user_identifier: ::std::option::Option<::std::string::String>,
pub single_sign_on_user_value: ::std::option::Option<::std::string::String>,
pub user_settings: ::std::option::Option<crate::types::UserSettings>,
_request_id: Option<String>,
}
impl DescribeUserProfileOutput {
pub fn domain_id(&self) -> ::std::option::Option<&str> {
self.domain_id.as_deref()
}
pub fn user_profile_arn(&self) -> ::std::option::Option<&str> {
self.user_profile_arn.as_deref()
}
pub fn user_profile_name(&self) -> ::std::option::Option<&str> {
self.user_profile_name.as_deref()
}
pub fn home_efs_file_system_uid(&self) -> ::std::option::Option<&str> {
self.home_efs_file_system_uid.as_deref()
}
pub fn status(&self) -> ::std::option::Option<&crate::types::UserProfileStatus> {
self.status.as_ref()
}
pub fn last_modified_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.last_modified_time.as_ref()
}
pub fn creation_time(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.creation_time.as_ref()
}
pub fn failure_reason(&self) -> ::std::option::Option<&str> {
self.failure_reason.as_deref()
}
pub fn single_sign_on_user_identifier(&self) -> ::std::option::Option<&str> {
self.single_sign_on_user_identifier.as_deref()
}
pub fn single_sign_on_user_value(&self) -> ::std::option::Option<&str> {
self.single_sign_on_user_value.as_deref()
}
pub fn user_settings(&self) -> ::std::option::Option<&crate::types::UserSettings> {
self.user_settings.as_ref()
}
}
impl ::aws_types::request_id::RequestId for DescribeUserProfileOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl DescribeUserProfileOutput {
pub fn builder() -> crate::operation::describe_user_profile::builders::DescribeUserProfileOutputBuilder {
crate::operation::describe_user_profile::builders::DescribeUserProfileOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DescribeUserProfileOutputBuilder {
pub(crate) domain_id: ::std::option::Option<::std::string::String>,
pub(crate) user_profile_arn: ::std::option::Option<::std::string::String>,
pub(crate) user_profile_name: ::std::option::Option<::std::string::String>,
pub(crate) home_efs_file_system_uid: ::std::option::Option<::std::string::String>,
pub(crate) status: ::std::option::Option<crate::types::UserProfileStatus>,
pub(crate) last_modified_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) creation_time: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) failure_reason: ::std::option::Option<::std::string::String>,
pub(crate) single_sign_on_user_identifier: ::std::option::Option<::std::string::String>,
pub(crate) single_sign_on_user_value: ::std::option::Option<::std::string::String>,
pub(crate) user_settings: ::std::option::Option<crate::types::UserSettings>,
_request_id: Option<String>,
}
impl DescribeUserProfileOutputBuilder {
pub fn domain_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_id = input;
self
}
pub fn get_domain_id(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_id
}
pub fn user_profile_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_profile_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_user_profile_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_profile_arn = input;
self
}
pub fn get_user_profile_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.user_profile_arn
}
pub fn user_profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.user_profile_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_user_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.user_profile_name = input;
self
}
pub fn get_user_profile_name(&self) -> &::std::option::Option<::std::string::String> {
&self.user_profile_name
}
pub fn home_efs_file_system_uid(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.home_efs_file_system_uid = ::std::option::Option::Some(input.into());
self
}
pub fn set_home_efs_file_system_uid(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.home_efs_file_system_uid = input;
self
}
pub fn get_home_efs_file_system_uid(&self) -> &::std::option::Option<::std::string::String> {
&self.home_efs_file_system_uid
}
pub fn status(mut self, input: crate::types::UserProfileStatus) -> Self {
self.status = ::std::option::Option::Some(input);
self
}
pub fn set_status(mut self, input: ::std::option::Option<crate::types::UserProfileStatus>) -> Self {
self.status = input;
self
}
pub fn get_status(&self) -> &::std::option::Option<crate::types::UserProfileStatus> {
&self.status
}
pub fn last_modified_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.last_modified_time = ::std::option::Option::Some(input);
self
}
pub fn set_last_modified_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.last_modified_time = input;
self
}
pub fn get_last_modified_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.last_modified_time
}
pub fn creation_time(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.creation_time = ::std::option::Option::Some(input);
self
}
pub fn set_creation_time(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.creation_time = input;
self
}
pub fn get_creation_time(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.creation_time
}
pub fn failure_reason(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.failure_reason = ::std::option::Option::Some(input.into());
self
}
pub fn set_failure_reason(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.failure_reason = input;
self
}
pub fn get_failure_reason(&self) -> &::std::option::Option<::std::string::String> {
&self.failure_reason
}
pub fn single_sign_on_user_identifier(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.single_sign_on_user_identifier = ::std::option::Option::Some(input.into());
self
}
pub fn set_single_sign_on_user_identifier(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.single_sign_on_user_identifier = input;
self
}
pub fn get_single_sign_on_user_identifier(&self) -> &::std::option::Option<::std::string::String> {
&self.single_sign_on_user_identifier
}
pub fn single_sign_on_user_value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.single_sign_on_user_value = ::std::option::Option::Some(input.into());
self
}
pub fn set_single_sign_on_user_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.single_sign_on_user_value = input;
self
}
pub fn get_single_sign_on_user_value(&self) -> &::std::option::Option<::std::string::String> {
&self.single_sign_on_user_value
}
pub fn user_settings(mut self, input: crate::types::UserSettings) -> Self {
self.user_settings = ::std::option::Option::Some(input);
self
}
pub fn set_user_settings(mut self, input: ::std::option::Option<crate::types::UserSettings>) -> Self {
self.user_settings = input;
self
}
pub fn get_user_settings(&self) -> &::std::option::Option<crate::types::UserSettings> {
&self.user_settings
}
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
}
pub fn build(self) -> crate::operation::describe_user_profile::DescribeUserProfileOutput {
crate::operation::describe_user_profile::DescribeUserProfileOutput {
domain_id: self.domain_id,
user_profile_arn: self.user_profile_arn,
user_profile_name: self.user_profile_name,
home_efs_file_system_uid: self.home_efs_file_system_uid,
status: self.status,
last_modified_time: self.last_modified_time,
creation_time: self.creation_time,
failure_reason: self.failure_reason,
single_sign_on_user_identifier: self.single_sign_on_user_identifier,
single_sign_on_user_value: self.single_sign_on_user_value,
user_settings: self.user_settings,
_request_id: self._request_id,
}
}
}