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

commonMain.aws.sdk.kotlin.services.apptest.model.StepRunSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.apptest.model



/**
 * Defines the step run summary.
 */
public sealed class StepRunSummary {
    /**
     * The compare action of the step run summary.
     */
    public data class CompareAction(val value: aws.sdk.kotlin.services.apptest.model.CompareActionSummary) : aws.sdk.kotlin.services.apptest.model.StepRunSummary() {
    }

    /**
     * The mainframe action of the step run summary.
     */
    public data class MainframeAction(val value: aws.sdk.kotlin.services.apptest.model.MainframeActionSummary) : aws.sdk.kotlin.services.apptest.model.StepRunSummary() {
    }

    /**
     * The resource action of the step run summary.
     */
    public data class ResourceAction(val value: aws.sdk.kotlin.services.apptest.model.ResourceActionSummary) : aws.sdk.kotlin.services.apptest.model.StepRunSummary() {
    }

    public object SdkUnknown : aws.sdk.kotlin.services.apptest.model.StepRunSummary() {
    }

    /**
     * Casts this [StepRunSummary] as a [CompareAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.CompareActionSummary] value. Throws an exception if the [StepRunSummary] is not a
     * [CompareAction].
     */
    public fun asCompareAction(): aws.sdk.kotlin.services.apptest.model.CompareActionSummary = (this as StepRunSummary.CompareAction).value

    /**
     * Casts this [StepRunSummary] as a [CompareAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.CompareActionSummary] value. Returns null if the [StepRunSummary] is not a [CompareAction].
     */
    public fun asCompareActionOrNull(): aws.sdk.kotlin.services.apptest.model.CompareActionSummary? = (this as? StepRunSummary.CompareAction)?.value

    /**
     * Casts this [StepRunSummary] as a [MainframeAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.MainframeActionSummary] value. Throws an exception if the [StepRunSummary] is not a
     * [MainframeAction].
     */
    public fun asMainframeAction(): aws.sdk.kotlin.services.apptest.model.MainframeActionSummary = (this as StepRunSummary.MainframeAction).value

    /**
     * Casts this [StepRunSummary] as a [MainframeAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.MainframeActionSummary] value. Returns null if the [StepRunSummary] is not a [MainframeAction].
     */
    public fun asMainframeActionOrNull(): aws.sdk.kotlin.services.apptest.model.MainframeActionSummary? = (this as? StepRunSummary.MainframeAction)?.value

    /**
     * Casts this [StepRunSummary] as a [ResourceAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.ResourceActionSummary] value. Throws an exception if the [StepRunSummary] is not a
     * [ResourceAction].
     */
    public fun asResourceAction(): aws.sdk.kotlin.services.apptest.model.ResourceActionSummary = (this as StepRunSummary.ResourceAction).value

    /**
     * Casts this [StepRunSummary] as a [ResourceAction] and retrieves its [aws.sdk.kotlin.services.apptest.model.ResourceActionSummary] value. Returns null if the [StepRunSummary] is not a [ResourceAction].
     */
    public fun asResourceActionOrNull(): aws.sdk.kotlin.services.apptest.model.ResourceActionSummary? = (this as? StepRunSummary.ResourceAction)?.value
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy