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

commonMain.aws.sdk.kotlin.services.datazone.model.UpdateGlossaryTermRequest.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 UpdateGlossaryTermRequest private constructor(builder: Builder) {
    /**
     * The identifier of the Amazon DataZone domain in which a business glossary term is to be updated.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The identifier of the business glossary in which a term is to be updated.
     */
    public val glossaryIdentifier: kotlin.String? = builder.glossaryIdentifier
    /**
     * The identifier of the business glossary term that is to be updated.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * 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? = builder.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? = builder.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.UpdateGlossaryTermRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("UpdateGlossaryTermRequest(")
        append("domainIdentifier=$domainIdentifier,")
        append("glossaryIdentifier=$glossaryIdentifier,")
        append("identifier=$identifier,")
        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 = domainIdentifier?.hashCode() ?: 0
        result = 31 * result + (glossaryIdentifier?.hashCode() ?: 0)
        result = 31 * result + (identifier?.hashCode() ?: 0)
        result = 31 * result + (longDescription?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (shortDescription?.hashCode() ?: 0)
        result = 31 * result + (status?.hashCode() ?: 0)
        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 UpdateGlossaryTermRequest

        if (domainIdentifier != other.domainIdentifier) return false
        if (glossaryIdentifier != other.glossaryIdentifier) return false
        if (identifier != other.identifier) 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.UpdateGlossaryTermRequest = 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 domainIdentifier: kotlin.String? = null
        /**
         * The identifier of the business glossary in which a term is to be updated.
         */
        public var glossaryIdentifier: kotlin.String? = null
        /**
         * The identifier of the business glossary term that is to be updated.
         */
        public var identifier: 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.UpdateGlossaryTermRequest) : this() {
            this.domainIdentifier = x.domainIdentifier
            this.glossaryIdentifier = x.glossaryIdentifier
            this.identifier = x.identifier
            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.UpdateGlossaryTermRequest = UpdateGlossaryTermRequest(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 {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy