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

commonMain.aws.sdk.kotlin.services.deadline.model.JobEntity.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 details of a job entity.
 */
public sealed class JobEntity {
    /**
     * The environment details for the job entity.
     */
    public data class EnvironmentDetails(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentDetailsEntity) : aws.sdk.kotlin.services.deadline.model.JobEntity() {
    }

    /**
     * The job attachment details.
     */
    public data class JobAttachmentDetails(val value: aws.sdk.kotlin.services.deadline.model.JobAttachmentDetailsEntity) : aws.sdk.kotlin.services.deadline.model.JobEntity() {
    }

    /**
     * The job details.
     */
    public data class JobDetails(val value: aws.sdk.kotlin.services.deadline.model.JobDetailsEntity) : aws.sdk.kotlin.services.deadline.model.JobEntity() {
    }

    /**
     * The step details.
     */
    public data class StepDetails(val value: aws.sdk.kotlin.services.deadline.model.StepDetailsEntity) : aws.sdk.kotlin.services.deadline.model.JobEntity() {
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy