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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

public class GetRunGroupResponse private constructor(builder: Builder) {
    /**
     * The group's ARN.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * When the group was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The group's ID.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The group's maximum number of CPUs to use.
     */
    public val maxCpus: kotlin.Int? = builder.maxCpus
    /**
     * The group's maximum run time 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
    /**
     * The group's name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The group's tags.
     */
    public val tags: Map? = builder.tags

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

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

    override fun hashCode(): kotlin.Int {
        var result = arn?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * 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)
        result = 31 * result + (tags?.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 GetRunGroupResponse

        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        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
        if (tags != other.tags) return false

        return true
    }

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

    public class Builder {
        /**
         * The group's ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * When the group was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The group's ID.
         */
        public var id: kotlin.String? = null
        /**
         * The group's maximum number of CPUs to use.
         */
        public var maxCpus: kotlin.Int? = null
        /**
         * The group's maximum run time 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
        /**
         * The group's name.
         */
        public var name: kotlin.String? = null
        /**
         * The group's tags.
         */
        public var tags: Map? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy