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

commonMain.aws.sdk.kotlin.services.apptest.model.BatchStepInput.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

/**
 * Defines a batch step input.
 */
public class BatchStepInput private constructor(builder: Builder) {
    /**
     * The batch job name of the batch step input.
     */
    public val batchJobName: kotlin.String = requireNotNull(builder.batchJobName) { "A non-null value must be provided for batchJobName" }
    /**
     * The batch job parameters of the batch step input.
     */
    public val batchJobParameters: Map? = builder.batchJobParameters
    /**
     * The export data set names of the batch step input.
     */
    public val exportDataSetNames: List? = builder.exportDataSetNames
    /**
     * The properties of the batch step input.
     */
    public val properties: aws.sdk.kotlin.services.apptest.model.MainframeActionProperties? = builder.properties
    /**
     * The resource of the batch step input.
     */
    public val resource: aws.sdk.kotlin.services.apptest.model.MainframeResourceSummary? = builder.resource

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

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

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The batch job name of the batch step input.
         */
        public var batchJobName: kotlin.String? = null
        /**
         * The batch job parameters of the batch step input.
         */
        public var batchJobParameters: Map? = null
        /**
         * The export data set names of the batch step input.
         */
        public var exportDataSetNames: List? = null
        /**
         * The properties of the batch step input.
         */
        public var properties: aws.sdk.kotlin.services.apptest.model.MainframeActionProperties? = null
        /**
         * The resource of the batch step input.
         */
        public var resource: aws.sdk.kotlin.services.apptest.model.MainframeResourceSummary? = null

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

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.apptest.model.BatchStepInput = BatchStepInput(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)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy