commonMain.aws.sdk.kotlin.services.datazone.model.Model.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 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