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

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

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

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



public class CreateProjectRequest private constructor(builder: Builder) {
    /**
     * Specifies whether automatic retraining should be attempted for the versions of the project. Automatic retraining is done as a best effort. Required argument for Content Moderation. Applicable only to adapters.
     */
    public val autoUpdate: aws.sdk.kotlin.services.rekognition.model.ProjectAutoUpdate? = builder.autoUpdate
    /**
     * Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.
     */
    public val feature: aws.sdk.kotlin.services.rekognition.model.CustomizationFeature? = builder.feature
    /**
     * The name of the project to create.
     */
    public val projectName: kotlin.String? = builder.projectName

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

    override fun toString(): kotlin.String = buildString {
        append("CreateProjectRequest(")
        append("autoUpdate=$autoUpdate,")
        append("feature=$feature,")
        append("projectName=$projectName")
        append(")")
    }

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

        if (autoUpdate != other.autoUpdate) return false
        if (feature != other.feature) return false
        if (projectName != other.projectName) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifies whether automatic retraining should be attempted for the versions of the project. Automatic retraining is done as a best effort. Required argument for Content Moderation. Applicable only to adapters.
         */
        public var autoUpdate: aws.sdk.kotlin.services.rekognition.model.ProjectAutoUpdate? = null
        /**
         * Specifies feature that is being customized. If no value is provided CUSTOM_LABELS is used as a default.
         */
        public var feature: aws.sdk.kotlin.services.rekognition.model.CustomizationFeature? = null
        /**
         * The name of the project to create.
         */
        public var projectName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.rekognition.model.CreateProjectRequest) : this() {
            this.autoUpdate = x.autoUpdate
            this.feature = x.feature
            this.projectName = x.projectName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy