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

commonMain.aws.sdk.kotlin.services.emrcontainers.model.Credentials.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.emrcontainers.model



/**
 * The structure containing the session token being returned.
 */
public sealed class Credentials {
    /**
     * The actual session token being returned.
     */
    public data class Token(val value: kotlin.String) : aws.sdk.kotlin.services.emrcontainers.model.Credentials() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.emrcontainers.model.Credentials() {
    }

    /**
     * Casts this [Credentials] as a [Token] and retrieves its [kotlin.String] value. Throws an exception if the [Credentials] is not a
     * [Token].
     */
    public fun asToken(): kotlin.String = (this as Credentials.Token).value

    /**
     * Casts this [Credentials] as a [Token] and retrieves its [kotlin.String] value. Returns null if the [Credentials] is not a [Token].
     */
    public fun asTokenOrNull(): kotlin.String? = (this as? Credentials.Token)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy