All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.UserProfileDetails.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// 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