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

commonMain.aws.sdk.kotlin.services.lookoutvision.model.ModelPackagingJobMetadata.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.lookoutvision.model

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

/**
 * Metadata for a model packaging job. For more information, see ListModelPackagingJobs.
 */
public class ModelPackagingJobMetadata private constructor(builder: Builder) {
    /**
     * The Unix timestamp for the time and date that the model packaging job was created.
     */
    public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
    /**
     * The name of the model packaging job.
     */
    public val jobName: kotlin.String? = builder.jobName
    /**
     * The Unix timestamp for the time and date that the model packaging job was last updated.
     */
    public val lastUpdatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTimestamp
    /**
     * The description for the model packaging job.
     */
    public val modelPackagingJobDescription: kotlin.String? = builder.modelPackagingJobDescription
    /**
     * The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass.
     */
    public val modelPackagingMethod: kotlin.String? = builder.modelPackagingMethod
    /**
     * The version of the model that is in the model package.
     */
    public val modelVersion: kotlin.String? = builder.modelVersion
    /**
     * The project that contains the model that is in the model package.
     */
    public val projectName: kotlin.String? = builder.projectName
    /**
     * The status of the model packaging job.
     */
    public val status: aws.sdk.kotlin.services.lookoutvision.model.ModelPackagingJobStatus? = builder.status
    /**
     * The status message for the model packaging job.
     */
    public val statusMessage: kotlin.String? = builder.statusMessage

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

    override fun toString(): kotlin.String = buildString {
        append("ModelPackagingJobMetadata(")
        append("creationTimestamp=$creationTimestamp,")
        append("jobName=$jobName,")
        append("lastUpdatedTimestamp=$lastUpdatedTimestamp,")
        append("modelPackagingJobDescription=$modelPackagingJobDescription,")
        append("modelPackagingMethod=$modelPackagingMethod,")
        append("modelVersion=$modelVersion,")
        append("projectName=$projectName,")
        append("status=$status,")
        append("statusMessage=$statusMessage")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = creationTimestamp?.hashCode() ?: 0
        result = 31 * result + (jobName?.hashCode() ?: 0)
        result = 31 * result + (lastUpdatedTimestamp?.hashCode() ?: 0)
        result = 31 * result + (modelPackagingJobDescription?.hashCode() ?: 0)
        result = 31 * result + (modelPackagingMethod?.hashCode() ?: 0)
        result = 31 * result + (modelVersion?.hashCode() ?: 0)
        result = 31 * result + (projectName?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        result = 31 * result + (statusMessage?.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 ModelPackagingJobMetadata

        if (creationTimestamp != other.creationTimestamp) return false
        if (jobName != other.jobName) return false
        if (lastUpdatedTimestamp != other.lastUpdatedTimestamp) return false
        if (modelPackagingJobDescription != other.modelPackagingJobDescription) return false
        if (modelPackagingMethod != other.modelPackagingMethod) return false
        if (modelVersion != other.modelVersion) return false
        if (projectName != other.projectName) return false
        if (status != other.status) return false
        if (statusMessage != other.statusMessage) return false

        return true
    }

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

    public class Builder {
        /**
         * The Unix timestamp for the time and date that the model packaging job was created.
         */
        public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the model packaging job.
         */
        public var jobName: kotlin.String? = null
        /**
         * The Unix timestamp for the time and date that the model packaging job was last updated.
         */
        public var lastUpdatedTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The description for the model packaging job.
         */
        public var modelPackagingJobDescription: kotlin.String? = null
        /**
         * The AWS service used to package the job. Currently Lookout for Vision can package jobs with AWS IoT Greengrass.
         */
        public var modelPackagingMethod: kotlin.String? = null
        /**
         * The version of the model that is in the model package.
         */
        public var modelVersion: kotlin.String? = null
        /**
         * The project that contains the model that is in the model package.
         */
        public var projectName: kotlin.String? = null
        /**
         * The status of the model packaging job.
         */
        public var status: aws.sdk.kotlin.services.lookoutvision.model.ModelPackagingJobStatus? = null
        /**
         * The status message for the model packaging job.
         */
        public var statusMessage: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.lookoutvision.model.ModelPackagingJobMetadata) : this() {
            this.creationTimestamp = x.creationTimestamp
            this.jobName = x.jobName
            this.lastUpdatedTimestamp = x.lastUpdatedTimestamp
            this.modelPackagingJobDescription = x.modelPackagingJobDescription
            this.modelPackagingMethod = x.modelPackagingMethod
            this.modelVersion = x.modelVersion
            this.projectName = x.projectName
            this.status = x.status
            this.statusMessage = x.statusMessage
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy