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

commonMain.aws.sdk.kotlin.services.deadline.model.SessionActionDefinitionSummary.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 session action definition.
 */
public sealed class SessionActionDefinitionSummary {
    /**
     * The environment to enter into.
     */
    public data class EnvEnter(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentEnterSessionActionDefinitionSummary) : aws.sdk.kotlin.services.deadline.model.SessionActionDefinitionSummary() {
    }

    /**
     * The environment to exit from.
     */
    public data class EnvExit(val value: aws.sdk.kotlin.services.deadline.model.EnvironmentExitSessionActionDefinitionSummary) : aws.sdk.kotlin.services.deadline.model.SessionActionDefinitionSummary() {
    }

    /**
     * The job attachments to sync with the session action definition.
     */
    public data class SyncInputJobAttachments(val value: aws.sdk.kotlin.services.deadline.model.SyncInputJobAttachmentsSessionActionDefinitionSummary) : aws.sdk.kotlin.services.deadline.model.SessionActionDefinitionSummary() {
    }

    /**
     * The task run.
     */
    public data class TaskRun(val value: aws.sdk.kotlin.services.deadline.model.TaskRunSessionActionDefinitionSummary) : aws.sdk.kotlin.services.deadline.model.SessionActionDefinitionSummary() {
    }

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

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

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

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

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

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

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy