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

commonMain.aws.sdk.kotlin.services.batch.model.ArrayPropertiesDetail.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.batch.model



/**
 * An object that represents the array properties of a job.
 */
public class ArrayPropertiesDetail private constructor(builder: Builder) {
    /**
     * The job index within the array that's associated with this job. This parameter is returned for array job children.
     */
    public val index: kotlin.Int? = builder.index
    /**
     * The size of the array job. This parameter is returned for parent array jobs.
     */
    public val size: kotlin.Int? = builder.size
    /**
     * A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs.
     */
    public val statusSummary: Map? = builder.statusSummary

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

    override fun toString(): kotlin.String = buildString {
        append("ArrayPropertiesDetail(")
        append("index=$index,")
        append("size=$size,")
        append("statusSummary=$statusSummary")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = index ?: 0
        result = 31 * result + (size ?: 0)
        result = 31 * result + (statusSummary?.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 ArrayPropertiesDetail

        if (index != other.index) return false
        if (size != other.size) return false
        if (statusSummary != other.statusSummary) return false

        return true
    }

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

    public class Builder {
        /**
         * The job index within the array that's associated with this job. This parameter is returned for array job children.
         */
        public var index: kotlin.Int? = null
        /**
         * The size of the array job. This parameter is returned for parent array jobs.
         */
        public var size: kotlin.Int? = null
        /**
         * A summary of the number of array job children in each available job status. This parameter is returned for parent array jobs.
         */
        public var statusSummary: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.batch.model.ArrayPropertiesDetail) : this() {
            this.index = x.index
            this.size = x.size
            this.statusSummary = x.statusSummary
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy