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

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateGlossaryResponse.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 UpdateGlossaryResponse private constructor(builder: Builder) {
    /**
     * The description to be updated as part of the `UpdateGlossary` action.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The identifier of the Amazon DataZone domain in which a business glossary is to be updated.
     */
    public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
    /**
     * The identifier of the business glossary that is to be updated.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The name to be updated as part of the `UpdateGlossary` action.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The identifier of the project in which to update a business glossary.
     */
    public val owningProjectId: kotlin.String = requireNotNull(builder.owningProjectId) { "A non-null value must be provided for owningProjectId" }
    /**
     * The status to be updated as part of the `UpdateGlossary` action.
     */
    public val status: aws.sdk.kotlin.services.datazone.model.GlossaryStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateGlossaryResponse(")
        append("description=*** Sensitive Data Redacted ***,")
        append("domainId=$domainId,")
        append("id=$id,")
        append("name=*** Sensitive Data Redacted ***,")
        append("owningProjectId=$owningProjectId,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (domainId.hashCode())
        result = 31 * result + (id.hashCode())
        result = 31 * result + (name.hashCode())
        result = 31 * result + (owningProjectId.hashCode())
        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 UpdateGlossaryResponse

        if (description != other.description) return false
        if (domainId != other.domainId) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (owningProjectId != other.owningProjectId) return false
        if (status != other.status) return false

        return true
    }

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

    public class Builder {
        /**
         * The description to be updated as part of the `UpdateGlossary` action.
         */
        public var description: kotlin.String? = null
        /**
         * The identifier of the Amazon DataZone domain in which a business glossary is to be updated.
         */
        public var domainId: kotlin.String? = null
        /**
         * The identifier of the business glossary that is to be updated.
         */
        public var id: kotlin.String? = null
        /**
         * The name to be updated as part of the `UpdateGlossary` action.
         */
        public var name: kotlin.String? = null
        /**
         * The identifier of the project in which to update a business glossary.
         */
        public var owningProjectId: kotlin.String? = null
        /**
         * The status to be updated as part of the `UpdateGlossary` action.
         */
        public var status: aws.sdk.kotlin.services.datazone.model.GlossaryStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateGlossaryResponse) : this() {
            this.description = x.description
            this.domainId = x.domainId
            this.id = x.id
            this.name = x.name
            this.owningProjectId = x.owningProjectId
            this.status = x.status
        }

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

        internal fun correctErrors(): Builder {
            if (domainId == null) domainId = ""
            if (id == null) id = ""
            if (name == null) name = ""
            if (owningProjectId == null) owningProjectId = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy