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

commonMain.aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * Information about the result of a deployment on an edge device that is registered with SageMaker Edge Manager.
 */
public class DeploymentResult private constructor(builder: Builder) {
    /**
     * The timestamp of when the deployment was ended, and the agent got the deployment results.
     */
    public val deploymentEndTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deploymentEndTime
    /**
     * Returns a list of models deployed on the agent.
     */
    public val deploymentModels: List? = builder.deploymentModels
    /**
     * The name and unique ID of the deployment.
     */
    public val deploymentName: kotlin.String? = builder.deploymentName
    /**
     * The timestamp of when the deployment was started on the agent.
     */
    public val deploymentStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.deploymentStartTime
    /**
     * Returns the bucket error code.
     */
    public val deploymentStatus: kotlin.String? = builder.deploymentStatus
    /**
     * Returns the detailed error message.
     */
    public val deploymentStatusMessage: kotlin.String? = builder.deploymentStatusMessage

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

    override fun toString(): kotlin.String = buildString {
        append("DeploymentResult(")
        append("deploymentEndTime=$deploymentEndTime,")
        append("deploymentModels=$deploymentModels,")
        append("deploymentName=$deploymentName,")
        append("deploymentStartTime=$deploymentStartTime,")
        append("deploymentStatus=$deploymentStatus,")
        append("deploymentStatusMessage=$deploymentStatusMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = deploymentEndTime?.hashCode() ?: 0
        result = 31 * result + (deploymentModels?.hashCode() ?: 0)
        result = 31 * result + (deploymentName?.hashCode() ?: 0)
        result = 31 * result + (deploymentStartTime?.hashCode() ?: 0)
        result = 31 * result + (deploymentStatus?.hashCode() ?: 0)
        result = 31 * result + (deploymentStatusMessage?.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 DeploymentResult

        if (deploymentEndTime != other.deploymentEndTime) return false
        if (deploymentModels != other.deploymentModels) return false
        if (deploymentName != other.deploymentName) return false
        if (deploymentStartTime != other.deploymentStartTime) return false
        if (deploymentStatus != other.deploymentStatus) return false
        if (deploymentStatusMessage != other.deploymentStatusMessage) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp of when the deployment was ended, and the agent got the deployment results.
         */
        public var deploymentEndTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Returns a list of models deployed on the agent.
         */
        public var deploymentModels: List? = null
        /**
         * The name and unique ID of the deployment.
         */
        public var deploymentName: kotlin.String? = null
        /**
         * The timestamp of when the deployment was started on the agent.
         */
        public var deploymentStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Returns the bucket error code.
         */
        public var deploymentStatus: kotlin.String? = null
        /**
         * Returns the detailed error message.
         */
        public var deploymentStatusMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.DeploymentResult) : this() {
            this.deploymentEndTime = x.deploymentEndTime
            this.deploymentModels = x.deploymentModels
            this.deploymentName = x.deploymentName
            this.deploymentStartTime = x.deploymentStartTime
            this.deploymentStatus = x.deploymentStatus
            this.deploymentStatusMessage = x.deploymentStatusMessage
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy