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

commonMain.aws.sdk.kotlin.services.textract.model.UpdateAdapterResponse.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.textract.model

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

public class UpdateAdapterResponse private constructor(builder: Builder) {
    /**
     * A string containing a unique ID for the adapter that has been updated.
     */
    public val adapterId: kotlin.String? = builder.adapterId
    /**
     * A string containing the name of the adapter that has been updated.
     */
    public val adapterName: kotlin.String? = builder.adapterName
    /**
     * The auto-update status of the adapter that has been updated.
     */
    public val autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = builder.autoUpdate
    /**
     * An object specifying the creation time of the the adapter that has been updated.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * A string containing the description of the adapter that has been updated.
     */
    public val description: kotlin.String? = builder.description
    /**
     * List of the targeted feature types for the updated adapter.
     */
    public val featureTypes: List? = builder.featureTypes

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAdapterResponse(")
        append("adapterId=$adapterId,")
        append("adapterName=$adapterName,")
        append("autoUpdate=$autoUpdate,")
        append("creationTime=$creationTime,")
        append("description=$description,")
        append("featureTypes=$featureTypes")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = adapterId?.hashCode() ?: 0
        result = 31 * result + (adapterName?.hashCode() ?: 0)
        result = 31 * result + (autoUpdate?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (featureTypes?.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 UpdateAdapterResponse

        if (adapterId != other.adapterId) return false
        if (adapterName != other.adapterName) return false
        if (autoUpdate != other.autoUpdate) return false
        if (creationTime != other.creationTime) return false
        if (description != other.description) return false
        if (featureTypes != other.featureTypes) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A string containing a unique ID for the adapter that has been updated.
         */
        public var adapterId: kotlin.String? = null
        /**
         * A string containing the name of the adapter that has been updated.
         */
        public var adapterName: kotlin.String? = null
        /**
         * The auto-update status of the adapter that has been updated.
         */
        public var autoUpdate: aws.sdk.kotlin.services.textract.model.AutoUpdate? = null
        /**
         * An object specifying the creation time of the the adapter that has been updated.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * A string containing the description of the adapter that has been updated.
         */
        public var description: kotlin.String? = null
        /**
         * List of the targeted feature types for the updated adapter.
         */
        public var featureTypes: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.textract.model.UpdateAdapterResponse) : this() {
            this.adapterId = x.adapterId
            this.adapterName = x.adapterName
            this.autoUpdate = x.autoUpdate
            this.creationTime = x.creationTime
            this.description = x.description
            this.featureTypes = x.featureTypes
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy