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

commonMain.aws.sdk.kotlin.services.omics.model.UpdateRunGroupRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.omics.model



public class UpdateRunGroupRequest private constructor(builder: Builder) {
    /**
     * The group's ID.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The maximum number of CPUs to use.
     */
    public val maxCpus: kotlin.Int? = builder.maxCpus
    /**
     * A maximum run time for the group in minutes.
     */
    public val maxDuration: kotlin.Int? = builder.maxDuration
    /**
     * The maximum GPUs that can be used by a run group.
     */
    public val maxGpus: kotlin.Int? = builder.maxGpus
    /**
     * The maximum number of concurrent runs for the group.
     */
    public val maxRuns: kotlin.Int? = builder.maxRuns
    /**
     * A name for the group.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateRunGroupRequest(")
        append("id=$id,")
        append("maxCpus=$maxCpus,")
        append("maxDuration=$maxDuration,")
        append("maxGpus=$maxGpus,")
        append("maxRuns=$maxRuns,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = id?.hashCode() ?: 0
        result = 31 * result + (maxCpus ?: 0)
        result = 31 * result + (maxDuration ?: 0)
        result = 31 * result + (maxGpus ?: 0)
        result = 31 * result + (maxRuns ?: 0)
        result = 31 * result + (name?.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 UpdateRunGroupRequest

        if (id != other.id) return false
        if (maxCpus != other.maxCpus) return false
        if (maxDuration != other.maxDuration) return false
        if (maxGpus != other.maxGpus) return false
        if (maxRuns != other.maxRuns) return false
        if (name != other.name) return false

        return true
    }

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

    public class Builder {
        /**
         * The group's ID.
         */
        public var id: kotlin.String? = null
        /**
         * The maximum number of CPUs to use.
         */
        public var maxCpus: kotlin.Int? = null
        /**
         * A maximum run time for the group in minutes.
         */
        public var maxDuration: kotlin.Int? = null
        /**
         * The maximum GPUs that can be used by a run group.
         */
        public var maxGpus: kotlin.Int? = null
        /**
         * The maximum number of concurrent runs for the group.
         */
        public var maxRuns: kotlin.Int? = null
        /**
         * A name for the group.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.UpdateRunGroupRequest) : this() {
            this.id = x.id
            this.maxCpus = x.maxCpus
            this.maxDuration = x.maxDuration
            this.maxGpus = x.maxGpus
            this.maxRuns = x.maxRuns
            this.name = x.name
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy