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

commonMain.aws.sdk.kotlin.services.rekognition.model.ProjectDescription.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.rekognition.model

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

/**
 * A description of an Amazon Rekognition Custom Labels project. For more information, see DescribeProjects.
 */
public class ProjectDescription private constructor(builder: Builder) {
    /**
     * Indicates whether automatic retraining will be attempted for the versions of the project. Applies only to adapters.
     */
    public val autoUpdate: aws.sdk.kotlin.services.rekognition.model.ProjectAutoUpdate? = builder.autoUpdate
    /**
     * The Unix timestamp for the date and time that the project was created.
     */
    public val creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTimestamp
    /**
     * Information about the training and test datasets in the project.
     */
    public val datasets: List? = builder.datasets
    /**
     * Specifies the project that is being customized.
     */
    public val feature: aws.sdk.kotlin.services.rekognition.model.CustomizationFeature? = builder.feature
    /**
     * The Amazon Resource Name (ARN) of the project.
     */
    public val projectArn: kotlin.String? = builder.projectArn
    /**
     * The current status of the project.
     */
    public val status: aws.sdk.kotlin.services.rekognition.model.ProjectStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("ProjectDescription(")
        append("autoUpdate=$autoUpdate,")
        append("creationTimestamp=$creationTimestamp,")
        append("datasets=$datasets,")
        append("feature=$feature,")
        append("projectArn=$projectArn,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = autoUpdate?.hashCode() ?: 0
        result = 31 * result + (creationTimestamp?.hashCode() ?: 0)
        result = 31 * result + (datasets?.hashCode() ?: 0)
        result = 31 * result + (feature?.hashCode() ?: 0)
        result = 31 * result + (projectArn?.hashCode() ?: 0)
        result = 31 * result + (status?.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 ProjectDescription

        if (autoUpdate != other.autoUpdate) return false
        if (creationTimestamp != other.creationTimestamp) return false
        if (datasets != other.datasets) return false
        if (feature != other.feature) return false
        if (projectArn != other.projectArn) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * Indicates whether automatic retraining will be attempted for the versions of the project. Applies only to adapters.
         */
        public var autoUpdate: aws.sdk.kotlin.services.rekognition.model.ProjectAutoUpdate? = null
        /**
         * The Unix timestamp for the date and time that the project was created.
         */
        public var creationTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Information about the training and test datasets in the project.
         */
        public var datasets: List? = null
        /**
         * Specifies the project that is being customized.
         */
        public var feature: aws.sdk.kotlin.services.rekognition.model.CustomizationFeature? = null
        /**
         * The Amazon Resource Name (ARN) of the project.
         */
        public var projectArn: kotlin.String? = null
        /**
         * The current status of the project.
         */
        public var status: aws.sdk.kotlin.services.rekognition.model.ProjectStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.ProjectDescription) : this() {
            this.autoUpdate = x.autoUpdate
            this.creationTimestamp = x.creationTimestamp
            this.datasets = x.datasets
            this.feature = x.feature
            this.projectArn = x.projectArn
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy