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

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateGlossaryTermResponse.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 UpdateGlossaryTermResponse private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon DataZone domain in which a business glossary term 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 in which a term is to be updated.
     */
    public val glossaryId: kotlin.String = requireNotNull(builder.glossaryId) { "A non-null value must be provided for glossaryId" }
    /**
     * The identifier of the business glossary term that is to be updated.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The long description to be updated as part of the `UpdateGlossaryTerm` action.
     */
    public val longDescription: kotlin.String? = builder.longDescription
    /**
     * The name to be updated as part of the `UpdateGlossaryTerm` action.
     */
    public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
    /**
     * The short description to be updated as part of the `UpdateGlossaryTerm` action.
     */
    public val shortDescription: kotlin.String? = builder.shortDescription
    /**
     * The status to be updated as part of the `UpdateGlossaryTerm` action.
     */
    public val status: aws.sdk.kotlin.services.datazone.model.GlossaryTermStatus = requireNotNull(builder.status) { "A non-null value must be provided for status" }
    /**
     * The term relations to be updated as part of the `UpdateGlossaryTerm` action.
     */
    public val termRelations: aws.sdk.kotlin.services.datazone.model.TermRelations? = builder.termRelations

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateGlossaryTermResponse(")
        append("domainId=$domainId,")
        append("glossaryId=$glossaryId,")
        append("id=$id,")
        append("longDescription=*** Sensitive Data Redacted ***,")
        append("name=*** Sensitive Data Redacted ***,")
        append("shortDescription=*** Sensitive Data Redacted ***,")
        append("status=$status,")
        append("termRelations=$termRelations")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = domainId.hashCode()
        result = 31 * result + (glossaryId.hashCode())
        result = 31 * result + (id.hashCode())
        result = 31 * result + (longDescription?.hashCode() ?: 0)
        result = 31 * result + (name.hashCode())
        result = 31 * result + (shortDescription?.hashCode() ?: 0)
        result = 31 * result + (status.hashCode())
        result = 31 * result + (termRelations?.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 UpdateGlossaryTermResponse

        if (domainId != other.domainId) return false
        if (glossaryId != other.glossaryId) return false
        if (id != other.id) return false
        if (longDescription != other.longDescription) return false
        if (name != other.name) return false
        if (shortDescription != other.shortDescription) return false
        if (status != other.status) return false
        if (termRelations != other.termRelations) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.
         */
        public var domainId: kotlin.String? = null
        /**
         * The identifier of the business glossary in which a term is to be updated.
         */
        public var glossaryId: kotlin.String? = null
        /**
         * The identifier of the business glossary term that is to be updated.
         */
        public var id: kotlin.String? = null
        /**
         * The long description to be updated as part of the `UpdateGlossaryTerm` action.
         */
        public var longDescription: kotlin.String? = null
        /**
         * The name to be updated as part of the `UpdateGlossaryTerm` action.
         */
        public var name: kotlin.String? = null
        /**
         * The short description to be updated as part of the `UpdateGlossaryTerm` action.
         */
        public var shortDescription: kotlin.String? = null
        /**
         * The status to be updated as part of the `UpdateGlossaryTerm` action.
         */
        public var status: aws.sdk.kotlin.services.datazone.model.GlossaryTermStatus? = null
        /**
         * The term relations to be updated as part of the `UpdateGlossaryTerm` action.
         */
        public var termRelations: aws.sdk.kotlin.services.datazone.model.TermRelations? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.UpdateGlossaryTermResponse) : this() {
            this.domainId = x.domainId
            this.glossaryId = x.glossaryId
            this.id = x.id
            this.longDescription = x.longDescription
            this.name = x.name
            this.shortDescription = x.shortDescription
            this.status = x.status
            this.termRelations = x.termRelations
        }

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

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

        internal fun correctErrors(): Builder {
            if (domainId == null) domainId = ""
            if (glossaryId == null) glossaryId = ""
            if (id == null) id = ""
            if (name == null) name = ""
            if (status == null) status = GlossaryTermStatus.SdkUnknown("no value provided")
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy