commonMain.aws.sdk.kotlin.services.datazone.model.UserProfileDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
/**
* The details of the user profile in Amazon DataZone.
*/
public sealed class UserProfileDetails {
/**
* The IAM details included in the user profile details.
*/
public data class Iam(val value: aws.sdk.kotlin.services.datazone.model.IamUserProfileDetails) : aws.sdk.kotlin.services.datazone.model.UserProfileDetails() {
}
/**
* The single sign-on details included in the user profile details.
*/
public data class Sso(val value: aws.sdk.kotlin.services.datazone.model.SsoUserProfileDetails) : aws.sdk.kotlin.services.datazone.model.UserProfileDetails() {
}
public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.UserProfileDetails() {
}
/**
* Casts this [UserProfileDetails] as a [Iam] and retrieves its [aws.sdk.kotlin.services.datazone.model.IamUserProfileDetails] value. Throws an exception if the [UserProfileDetails] is not a
* [Iam].
*/
public fun asIam(): aws.sdk.kotlin.services.datazone.model.IamUserProfileDetails = (this as UserProfileDetails.Iam).value
/**
* Casts this [UserProfileDetails] as a [Iam] and retrieves its [aws.sdk.kotlin.services.datazone.model.IamUserProfileDetails] value. Returns null if the [UserProfileDetails] is not a [Iam].
*/
public fun asIamOrNull(): aws.sdk.kotlin.services.datazone.model.IamUserProfileDetails? = (this as? UserProfileDetails.Iam)?.value
/**
* Casts this [UserProfileDetails] as a [Sso] and retrieves its [aws.sdk.kotlin.services.datazone.model.SsoUserProfileDetails] value. Throws an exception if the [UserProfileDetails] is not a
* [Sso].
*/
public fun asSso(): aws.sdk.kotlin.services.datazone.model.SsoUserProfileDetails = (this as UserProfileDetails.Sso).value
/**
* Casts this [UserProfileDetails] as a [Sso] and retrieves its [aws.sdk.kotlin.services.datazone.model.SsoUserProfileDetails] value. Returns null if the [UserProfileDetails] is not a [Sso].
*/
public fun asSsoOrNull(): aws.sdk.kotlin.services.datazone.model.SsoUserProfileDetails? = (this as? UserProfileDetails.Sso)?.value
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy