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

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

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

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

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Specifies a TN3270 step output.
 */
public class Tn3270StepOutput private constructor(builder: Builder) {
    /**
     * The data set details of the TN3270 step output.
     */
    public val dataSetDetails: List? = builder.dataSetDetails
    /**
     * The data set export location of the TN3270 step output.
     */
    public val dataSetExportLocation: kotlin.String? = builder.dataSetExportLocation
    /**
     * The output location of the TN3270 step output.
     */
    public val dmsOutputLocation: kotlin.String? = builder.dmsOutputLocation
    /**
     * The script output location of the TN3270 step output.
     */
    public val scriptOutputLocation: kotlin.String = requireNotNull(builder.scriptOutputLocation) { "A non-null value must be provided for scriptOutputLocation" }

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.Tn3270StepOutput = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("Tn3270StepOutput(")
        append("dataSetDetails=$dataSetDetails,")
        append("dataSetExportLocation=$dataSetExportLocation,")
        append("dmsOutputLocation=$dmsOutputLocation,")
        append("scriptOutputLocation=$scriptOutputLocation")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataSetDetails?.hashCode() ?: 0
        result = 31 * result + (dataSetExportLocation?.hashCode() ?: 0)
        result = 31 * result + (dmsOutputLocation?.hashCode() ?: 0)
        result = 31 * result + (scriptOutputLocation.hashCode())
        return result
    }

    override fun equals(other: kotlin.Any?): kotlin.Boolean {
        if (this === other) return true
        if (other == null || this::class != other::class) return false

        other as Tn3270StepOutput

        if (dataSetDetails != other.dataSetDetails) return false
        if (dataSetExportLocation != other.dataSetExportLocation) return false
        if (dmsOutputLocation != other.dmsOutputLocation) return false
        if (scriptOutputLocation != other.scriptOutputLocation) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.Tn3270StepOutput = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The data set details of the TN3270 step output.
         */
        public var dataSetDetails: List? = null
        /**
         * The data set export location of the TN3270 step output.
         */
        public var dataSetExportLocation: kotlin.String? = null
        /**
         * The output location of the TN3270 step output.
         */
        public var dmsOutputLocation: kotlin.String? = null
        /**
         * The script output location of the TN3270 step output.
         */
        public var scriptOutputLocation: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.Tn3270StepOutput) : this() {
            this.dataSetDetails = x.dataSetDetails
            this.dataSetExportLocation = x.dataSetExportLocation
            this.dmsOutputLocation = x.dmsOutputLocation
            this.scriptOutputLocation = x.scriptOutputLocation
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.apptest.model.Tn3270StepOutput = Tn3270StepOutput(this)

        internal fun correctErrors(): Builder {
            if (scriptOutputLocation == null) scriptOutputLocation = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy