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

commonMain.aws.sdk.kotlin.services.apptest.model.Tn3270StepInput.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 input.
 */
public class Tn3270StepInput private constructor(builder: Builder) {
    /**
     * The export data set names of the TN3270 step input.
     */
    public val exportDataSetNames: List? = builder.exportDataSetNames
    /**
     * The properties of the TN3270 step input.
     */
    public val properties: aws.sdk.kotlin.services.apptest.model.MainframeActionProperties? = builder.properties
    /**
     * The resource of the TN3270 step input.
     */
    public val resource: aws.sdk.kotlin.services.apptest.model.MainframeResourceSummary? = builder.resource
    /**
     * The script of the TN3270 step input.
     */
    public val script: aws.sdk.kotlin.services.apptest.model.ScriptSummary? = builder.script

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

    override fun toString(): kotlin.String = buildString {
        append("Tn3270StepInput(")
        append("exportDataSetNames=$exportDataSetNames,")
        append("properties=$properties,")
        append("resource=$resource,")
        append("script=$script")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = exportDataSetNames?.hashCode() ?: 0
        result = 31 * result + (properties?.hashCode() ?: 0)
        result = 31 * result + (resource?.hashCode() ?: 0)
        result = 31 * result + (script?.hashCode() ?: 0)
        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 Tn3270StepInput

        if (exportDataSetNames != other.exportDataSetNames) return false
        if (properties != other.properties) return false
        if (resource != other.resource) return false
        if (script != other.script) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The export data set names of the TN3270 step input.
         */
        public var exportDataSetNames: List? = null
        /**
         * The properties of the TN3270 step input.
         */
        public var properties: aws.sdk.kotlin.services.apptest.model.MainframeActionProperties? = null
        /**
         * The resource of the TN3270 step input.
         */
        public var resource: aws.sdk.kotlin.services.apptest.model.MainframeResourceSummary? = null
        /**
         * The script of the TN3270 step input.
         */
        public var script: aws.sdk.kotlin.services.apptest.model.ScriptSummary? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.apptest.model.Tn3270StepInput) : this() {
            this.exportDataSetNames = x.exportDataSetNames
            this.properties = x.properties
            this.resource = x.resource
            this.script = x.script
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.apptest.model.MainframeActionProperties] inside the given [block]
         */
        public fun properties(block: aws.sdk.kotlin.services.apptest.model.MainframeActionProperties.Builder.() -> kotlin.Unit) {
            this.properties = aws.sdk.kotlin.services.apptest.model.MainframeActionProperties.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.apptest.model.ScriptSummary] inside the given [block]
         */
        public fun script(block: aws.sdk.kotlin.services.apptest.model.ScriptSummary.Builder.() -> kotlin.Unit) {
            this.script = aws.sdk.kotlin.services.apptest.model.ScriptSummary.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy