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

commonMain.aws.sdk.kotlin.services.datazone.model.Model.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 model of the API.
 */
public sealed class Model {
    /**
     * Indicates the smithy model of the API.
     */
    public data class Smithy(val value: kotlin.String) : aws.sdk.kotlin.services.datazone.model.Model() {
        override fun toString(): kotlin.String = "Model(*** Sensitive Data Redacted ***)"
    }

    public object SdkUnknown : aws.sdk.kotlin.services.datazone.model.Model() {
        override fun toString(): kotlin.String = "Model(*** Sensitive Data Redacted ***)"
    }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy