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

commonMain.aws.sdk.kotlin.services.datazone.model.RejectPredictionsRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model



public class RejectPredictionsRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The identifier of the Amazon DataZone domain.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The identifier of the prediction.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be rejected.
     */
    public val rejectChoices: List? = builder.rejectChoices
    /**
     * Specifies the rule (or the conditions) under which a prediction can be rejected.
     */
    public val rejectRule: aws.sdk.kotlin.services.datazone.model.RejectRule? = builder.rejectRule
    /**
     * The revision that is to be made to the asset.
     */
    public val revision: kotlin.String? = builder.revision

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

    override fun toString(): kotlin.String = buildString {
        append("RejectPredictionsRequest(")
        append("clientToken=$clientToken,")
        append("domainIdentifier=$domainIdentifier,")
        append("identifier=$identifier,")
        append("rejectChoices=$rejectChoices,")
        append("rejectRule=$rejectRule,")
        append("revision=$revision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (identifier?.hashCode() ?: 0)
        result = 31 * result + (rejectChoices?.hashCode() ?: 0)
        result = 31 * result + (rejectRule?.hashCode() ?: 0)
        result = 31 * result + (revision?.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 RejectPredictionsRequest

        if (clientToken != other.clientToken) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (identifier != other.identifier) return false
        if (rejectChoices != other.rejectChoices) return false
        if (rejectRule != other.rejectRule) return false
        if (revision != other.revision) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The identifier of the Amazon DataZone domain.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The identifier of the prediction.
         */
        public var identifier: kotlin.String? = null
        /**
         * Specifies the prediction (aka, the automatically generated piece of metadata) and the target (for example, a column name) that can be rejected.
         */
        public var rejectChoices: List? = null
        /**
         * Specifies the rule (or the conditions) under which a prediction can be rejected.
         */
        public var rejectRule: aws.sdk.kotlin.services.datazone.model.RejectRule? = null
        /**
         * The revision that is to be made to the asset.
         */
        public var revision: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.RejectPredictionsRequest) : this() {
            this.clientToken = x.clientToken
            this.domainIdentifier = x.domainIdentifier
            this.identifier = x.identifier
            this.rejectChoices = x.rejectChoices
            this.rejectRule = x.rejectRule
            this.revision = x.revision
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.datazone.model.RejectRule] inside the given [block]
         */
        public fun rejectRule(block: aws.sdk.kotlin.services.datazone.model.RejectRule.Builder.() -> kotlin.Unit) {
            this.rejectRule = aws.sdk.kotlin.services.datazone.model.RejectRule.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy