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

commonMain.aws.sdk.kotlin.services.apptest.model.Batch.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.
 */
public class Batch private constructor(builder: Builder) {
    /**
     * The job name of the batch.
     */
    public val batchJobName: kotlin.String = requireNotNull(builder.batchJobName) { "A non-null value must be provided for batchJobName" }
    /**
     * The batch job parameters of the batch.
     */
    public val batchJobParameters: Map? = builder.batchJobParameters
    /**
     * The export data set names of the batch.
     */
    public val exportDataSetNames: List? = builder.exportDataSetNames

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

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

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

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

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The job name of the batch.
         */
        public var batchJobName: kotlin.String? = null
        /**
         * The batch job parameters of the batch.
         */
        public var batchJobParameters: Map? = null
        /**
         * The export data set names of the batch.
         */
        public var exportDataSetNames: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy