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

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

There is a newer version: 1.3.37
Show newest version
// 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 GetWorkflowResponse private constructor(builder: Builder) {
    /**
     * The computational accelerator specified to run the workflow.
     */
    public val accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = builder.accelerators
    /**
     * The workflow's ARN.
     */
    public val arn: kotlin.String? = builder.arn
    /**
     * When the workflow was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The workflow's definition.
     */
    public val definition: kotlin.String? = builder.definition
    /**
     * The workflow's description.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The workflow's digest.
     */
    public val digest: kotlin.String? = builder.digest
    /**
     * The workflow's engine.
     */
    public val engine: aws.sdk.kotlin.services.omics.model.WorkflowEngine? = builder.engine
    /**
     * The workflow's ID.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The path of the main definition file for the workflow.
     */
    public val main: kotlin.String? = builder.main
    /**
     * Gets metadata for workflow.
     */
    public val metadata: Map? = builder.metadata
    /**
     * The workflow's name.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The workflow's parameter template.
     */
    public val parameterTemplate: Map? = builder.parameterTemplate
    /**
     * The workflow's status.
     */
    public val status: aws.sdk.kotlin.services.omics.model.WorkflowStatus? = builder.status
    /**
     * The workflow's status message.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage
    /**
     * The workflow's storage capacity in gigabytes.
     */
    public val storageCapacity: kotlin.Int? = builder.storageCapacity
    /**
     * The workflow's tags.
     */
    public val tags: Map? = builder.tags
    /**
     * The workflow's type.
     */
    public val type: aws.sdk.kotlin.services.omics.model.WorkflowType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("GetWorkflowResponse(")
        append("accelerators=$accelerators,")
        append("arn=$arn,")
        append("creationTime=$creationTime,")
        append("definition=$definition,")
        append("description=$description,")
        append("digest=$digest,")
        append("engine=$engine,")
        append("id=$id,")
        append("main=$main,")
        append("metadata=$metadata,")
        append("name=$name,")
        append("parameterTemplate=$parameterTemplate,")
        append("status=$status,")
        append("statusMessage=$statusMessage,")
        append("storageCapacity=$storageCapacity,")
        append("tags=$tags,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = accelerators?.hashCode() ?: 0
        result = 31 * result + (arn?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (definition?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (digest?.hashCode() ?: 0)
        result = 31 * result + (engine?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (main?.hashCode() ?: 0)
        result = 31 * result + (metadata?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (parameterTemplate?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.hashCode() ?: 0)
        result = 31 * result + (storageCapacity ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (type?.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 GetWorkflowResponse

        if (accelerators != other.accelerators) return false
        if (arn != other.arn) return false
        if (creationTime != other.creationTime) return false
        if (definition != other.definition) return false
        if (description != other.description) return false
        if (digest != other.digest) return false
        if (engine != other.engine) return false
        if (id != other.id) return false
        if (main != other.main) return false
        if (metadata != other.metadata) return false
        if (name != other.name) return false
        if (parameterTemplate != other.parameterTemplate) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false
        if (storageCapacity != other.storageCapacity) return false
        if (tags != other.tags) return false
        if (type != other.type) return false

        return true
    }

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

    public class Builder {
        /**
         * The computational accelerator specified to run the workflow.
         */
        public var accelerators: aws.sdk.kotlin.services.omics.model.Accelerators? = null
        /**
         * The workflow's ARN.
         */
        public var arn: kotlin.String? = null
        /**
         * When the workflow was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The workflow's definition.
         */
        public var definition: kotlin.String? = null
        /**
         * The workflow's description.
         */
        public var description: kotlin.String? = null
        /**
         * The workflow's digest.
         */
        public var digest: kotlin.String? = null
        /**
         * The workflow's engine.
         */
        public var engine: aws.sdk.kotlin.services.omics.model.WorkflowEngine? = null
        /**
         * The workflow's ID.
         */
        public var id: kotlin.String? = null
        /**
         * The path of the main definition file for the workflow.
         */
        public var main: kotlin.String? = null
        /**
         * Gets metadata for workflow.
         */
        public var metadata: Map? = null
        /**
         * The workflow's name.
         */
        public var name: kotlin.String? = null
        /**
         * The workflow's parameter template.
         */
        public var parameterTemplate: Map? = null
        /**
         * The workflow's status.
         */
        public var status: aws.sdk.kotlin.services.omics.model.WorkflowStatus? = null
        /**
         * The workflow's status message.
         */
        public var statusMessage: kotlin.String? = null
        /**
         * The workflow's storage capacity in gigabytes.
         */
        public var storageCapacity: kotlin.Int? = null
        /**
         * The workflow's tags.
         */
        public var tags: Map? = null
        /**
         * The workflow's type.
         */
        public var type: aws.sdk.kotlin.services.omics.model.WorkflowType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.omics.model.GetWorkflowResponse) : this() {
            this.accelerators = x.accelerators
            this.arn = x.arn
            this.creationTime = x.creationTime
            this.definition = x.definition
            this.description = x.description
            this.digest = x.digest
            this.engine = x.engine
            this.id = x.id
            this.main = x.main
            this.metadata = x.metadata
            this.name = x.name
            this.parameterTemplate = x.parameterTemplate
            this.status = x.status
            this.statusMessage = x.statusMessage
            this.storageCapacity = x.storageCapacity
            this.tags = x.tags
            this.type = x.type
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy