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

commonMain.aws.sdk.kotlin.services.deadline.model.GetJobEntityError.kt Maven / Gradle / Ivy

There is a newer version: 1.3.34
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.deadline.model



/**
 * The error for the job entity.
 */
public sealed class GetJobEntityError {
    /**
     * The environment details for the failed job entity.
     */
    public data class EnvironmentDetails(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
    }

    /**
     * The job attachment details for the failed job entity.
     */
    public data class JobAttachmentDetails(val value: aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
    }

    /**
     * The job details for the failed job entity.
     */
    public data class JobDetails(val value: aws.sdk.kotlin.services.deadline.model.JobDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
    }

    /**
     * The step details for the failed job entity.
     */
    public data class StepDetails(val value: aws.sdk.kotlin.services.deadline.model.StepDetailsError) : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.deadline.model.GetJobEntityError() {
    }

    /**
     * Casts this [GetJobEntityError] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
     * [EnvironmentDetails].
     */
    public fun asEnvironmentDetails(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError = (this as GetJobEntityError.EnvironmentDetails).value

    /**
     * Casts this [GetJobEntityError] as a [EnvironmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError] value. Returns null if the [GetJobEntityError] is not a [EnvironmentDetails].
     */
    public fun asEnvironmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsError? = (this as? GetJobEntityError.EnvironmentDetails)?.value

    /**
     * Casts this [GetJobEntityError] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
     * [JobAttachmentDetails].
     */
    public fun asJobAttachmentDetails(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError = (this as GetJobEntityError.JobAttachmentDetails).value

    /**
     * Casts this [GetJobEntityError] as a [JobAttachmentDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError] value. Returns null if the [GetJobEntityError] is not a [JobAttachmentDetails].
     */
    public fun asJobAttachmentDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsError? = (this as? GetJobEntityError.JobAttachmentDetails)?.value

    /**
     * Casts this [GetJobEntityError] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
     * [JobDetails].
     */
    public fun asJobDetails(): aws.sdk.kotlin.services.deadline.model.JobDetailsError = (this as GetJobEntityError.JobDetails).value

    /**
     * Casts this [GetJobEntityError] as a [JobDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.JobDetailsError] value. Returns null if the [GetJobEntityError] is not a [JobDetails].
     */
    public fun asJobDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.JobDetailsError? = (this as? GetJobEntityError.JobDetails)?.value

    /**
     * Casts this [GetJobEntityError] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsError] value. Throws an exception if the [GetJobEntityError] is not a
     * [StepDetails].
     */
    public fun asStepDetails(): aws.sdk.kotlin.services.deadline.model.StepDetailsError = (this as GetJobEntityError.StepDetails).value

    /**
     * Casts this [GetJobEntityError] as a [StepDetails] and retrieves its [aws.sdk.kotlin.services.deadline.model.StepDetailsError] value. Returns null if the [GetJobEntityError] is not a [StepDetails].
     */
    public fun asStepDetailsOrNull(): aws.sdk.kotlin.services.deadline.model.StepDetailsError? = (this as? GetJobEntityError.StepDetails)?.value
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy