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

commonMain.aws.sdk.kotlin.services.sagemakeredge.model.Model.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 a model deployed on an edge device that is registered with SageMaker Edge Manager.
 */
public class Model private constructor(builder: Builder) {
    /**
     * The timestamp of the last inference that was made.
     */
    public val latestInference: aws.smithy.kotlin.runtime.time.Instant? = builder.latestInference
    /**
     * The timestamp of the last data sample taken.
     */
    public val latestSampleTime: aws.smithy.kotlin.runtime.time.Instant? = builder.latestSampleTime
    /**
     * Information required for model metrics.
     */
    public val modelMetrics: List? = builder.modelMetrics
    /**
     * The name of the model.
     */
    public val modelName: kotlin.String? = builder.modelName
    /**
     * The version of the model.
     */
    public val modelVersion: kotlin.String? = builder.modelVersion

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

    override fun toString(): kotlin.String = buildString {
        append("Model(")
        append("latestInference=$latestInference,")
        append("latestSampleTime=$latestSampleTime,")
        append("modelMetrics=$modelMetrics,")
        append("modelName=$modelName,")
        append("modelVersion=$modelVersion")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = latestInference?.hashCode() ?: 0
        result = 31 * result + (latestSampleTime?.hashCode() ?: 0)
        result = 31 * result + (modelMetrics?.hashCode() ?: 0)
        result = 31 * result + (modelName?.hashCode() ?: 0)
        result = 31 * result + (modelVersion?.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 Model

        if (latestInference != other.latestInference) return false
        if (latestSampleTime != other.latestSampleTime) return false
        if (modelMetrics != other.modelMetrics) return false
        if (modelName != other.modelName) return false
        if (modelVersion != other.modelVersion) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The timestamp of the last inference that was made.
         */
        public var latestInference: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The timestamp of the last data sample taken.
         */
        public var latestSampleTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Information required for model metrics.
         */
        public var modelMetrics: List? = null
        /**
         * The name of the model.
         */
        public var modelName: kotlin.String? = null
        /**
         * The version of the model.
         */
        public var modelVersion: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.sagemakeredge.model.Model) : this() {
            this.latestInference = x.latestInference
            this.latestSampleTime = x.latestSampleTime
            this.modelMetrics = x.modelMetrics
            this.modelName = x.modelName
            this.modelVersion = x.modelVersion
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy