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

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

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

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



/**
 * Specifies the mainframe action summary.
 */
public sealed class MainframeActionSummary {
    /**
     * The batch of the mainframe action summary.
     */
    public data class Batch(val value: aws.sdk.kotlin.services.apptest.model.BatchSummary) : aws.sdk.kotlin.services.apptest.model.MainframeActionSummary() {
    }

    /**
     * The tn3270 port of the mainframe action summary.
     */
    public data class Tn3270(val value: aws.sdk.kotlin.services.apptest.model.Tn3270Summary) : aws.sdk.kotlin.services.apptest.model.MainframeActionSummary() {
    }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy