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

commonMain.aws.sdk.kotlin.services.sagemakeredge.model.DeploymentModel.kt Maven / Gradle / Ivy

There is a newer version: 1.3.79
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.sagemakeredge.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 *
 */
public class DeploymentModel private constructor(builder: Builder) {
    /**
     * The desired state of the model.
     */
    public val desiredState: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = builder.desiredState
    /**
     * The unique handle of the model.
     */
    public val modelHandle: kotlin.String? = builder.modelHandle
    /**
     * The name of the model.
     */
    public val modelName: kotlin.String? = builder.modelName
    /**
     * The version of the model.
     */
    public val modelVersion: kotlin.String? = builder.modelVersion
    /**
     * Returns the error message if there is a rollback.
     */
    public val rollbackFailureReason: kotlin.String? = builder.rollbackFailureReason
    /**
     * Returns the current state of the model.
     */
    public val state: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = builder.state
    /**
     * Returns the deployment status of the model.
     */
    public val status: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentStatus? = builder.status
    /**
     * Returns the error message for the deployment status result.
     */
    public val statusReason: kotlin.String? = builder.statusReason

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

    override fun toString(): kotlin.String = buildString {
        append("DeploymentModel(")
        append("desiredState=$desiredState,")
        append("modelHandle=$modelHandle,")
        append("modelName=$modelName,")
        append("modelVersion=$modelVersion,")
        append("rollbackFailureReason=$rollbackFailureReason,")
        append("state=$state,")
        append("status=$status,")
        append("statusReason=$statusReason")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = desiredState?.hashCode() ?: 0
        result = 31 * result + (modelHandle?.hashCode() ?: 0)
        result = 31 * result + (modelName?.hashCode() ?: 0)
        result = 31 * result + (modelVersion?.hashCode() ?: 0)
        result = 31 * result + (rollbackFailureReason?.hashCode() ?: 0)
        result = 31 * result + (state?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusReason?.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 DeploymentModel

        if (desiredState != other.desiredState) return false
        if (modelHandle != other.modelHandle) return false
        if (modelName != other.modelName) return false
        if (modelVersion != other.modelVersion) return false
        if (rollbackFailureReason != other.rollbackFailureReason) return false
        if (state != other.state) return false
        if (status != other.status) return false
        if (statusReason != other.statusReason) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The desired state of the model.
         */
        public var desiredState: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = null
        /**
         * The unique handle of the model.
         */
        public var modelHandle: kotlin.String? = null
        /**
         * The name of the model.
         */
        public var modelName: kotlin.String? = null
        /**
         * The version of the model.
         */
        public var modelVersion: kotlin.String? = null
        /**
         * Returns the error message if there is a rollback.
         */
        public var rollbackFailureReason: kotlin.String? = null
        /**
         * Returns the current state of the model.
         */
        public var state: aws.sdk.kotlin.services.sagemakeredge.model.ModelState? = null
        /**
         * Returns the deployment status of the model.
         */
        public var status: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentStatus? = null
        /**
         * Returns the error message for the deployment status result.
         */
        public var statusReason: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentModel) : this() {
            this.desiredState = x.desiredState
            this.modelHandle = x.modelHandle
            this.modelName = x.modelName
            this.modelVersion = x.modelVersion
            this.rollbackFailureReason = x.rollbackFailureReason
            this.state = x.state
            this.status = x.status
            this.statusReason = x.statusReason
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy