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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.ErrorDetails.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model



/**
 * Provides error information about a project.
 */
public sealed class ErrorDetails {
    /**
     * Error information about a project.
     */
    public data class DefaultErrorDetails(val value: aws.sdk.kotlin.services.databasemigrationservice.model.DefaultErrorDetails) : aws.sdk.kotlin.services.databasemigrationservice.model.ErrorDetails() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.databasemigrationservice.model.ErrorDetails() {
    }

    /**
     * Casts this [ErrorDetails] as a [DefaultErrorDetails] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.DefaultErrorDetails] value. Throws an exception if the [ErrorDetails] is not a
     * [DefaultErrorDetails].
     */
    public fun asDefaultErrorDetails(): aws.sdk.kotlin.services.databasemigrationservice.model.DefaultErrorDetails = (this as ErrorDetails.DefaultErrorDetails).value

    /**
     * Casts this [ErrorDetails] as a [DefaultErrorDetails] and retrieves its [aws.sdk.kotlin.services.databasemigrationservice.model.DefaultErrorDetails] value. Returns null if the [ErrorDetails] is not a [DefaultErrorDetails].
     */
    public fun asDefaultErrorDetailsOrNull(): aws.sdk.kotlin.services.databasemigrationservice.model.DefaultErrorDetails? = (this as? ErrorDetails.DefaultErrorDetails)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy