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

commonMain.aws.sdk.kotlin.services.datazone.model.AcceptPredictionsResponse.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 AcceptPredictionsResponse private constructor(builder: Builder) {
    /**
     * The ID of the asset.
     */
    public val assetId: kotlin.String = requireNotNull(builder.assetId) { "A non-null value must be provided for assetId" }
    /**
     * The identifier of the Amazon DataZone domain.
     */
    public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
    /**
     * The revision that is to be made to the asset.
     */
    public val revision: kotlin.String = requireNotNull(builder.revision) { "A non-null value must be provided for revision" }

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

    override fun toString(): kotlin.String = buildString {
        append("AcceptPredictionsResponse(")
        append("assetId=$assetId,")
        append("domainId=$domainId,")
        append("revision=$revision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = assetId.hashCode()
        result = 31 * result + (domainId.hashCode())
        result = 31 * result + (revision.hashCode())
        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 AcceptPredictionsResponse

        if (assetId != other.assetId) return false
        if (domainId != other.domainId) return false
        if (revision != other.revision) return false

        return true
    }

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

    public class Builder {
        /**
         * The ID of the asset.
         */
        public var assetId: kotlin.String? = null
        /**
         * The identifier of the Amazon DataZone domain.
         */
        public var domainId: kotlin.String? = 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.AcceptPredictionsResponse) : this() {
            this.assetId = x.assetId
            this.domainId = x.domainId
            this.revision = x.revision
        }

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

        internal fun correctErrors(): Builder {
            if (assetId == null) assetId = ""
            if (domainId == null) domainId = ""
            if (revision == null) revision = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy