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

commonMain.aws.sdk.kotlin.services.datazone.model.CreateAssetRevisionRequest.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 CreateAssetRevisionRequest private constructor(builder: Builder) {
    /**
     * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * The revised description of the asset.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The unique identifier of the domain where the asset is being revised.
     */
    public val domainIdentifier: kotlin.String? = builder.domainIdentifier
    /**
     * The metadata forms to be attached to the asset as part of asset revision.
     */
    public val formsInput: List? = builder.formsInput
    /**
     * The glossary terms to be attached to the asset as part of asset revision.
     */
    public val glossaryTerms: List? = builder.glossaryTerms
    /**
     * The identifier of the asset.
     */
    public val identifier: kotlin.String? = builder.identifier
    /**
     * Te revised name of the asset.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The configuration of the automatically generated business-friendly metadata for the asset.
     */
    public val predictionConfiguration: aws.sdk.kotlin.services.datazone.model.PredictionConfiguration? = builder.predictionConfiguration
    /**
     * The revision type of the asset.
     */
    public val typeRevision: kotlin.String? = builder.typeRevision

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

    override fun toString(): kotlin.String = buildString {
        append("CreateAssetRevisionRequest(")
        append("clientToken=$clientToken,")
        append("description=*** Sensitive Data Redacted ***,")
        append("domainIdentifier=$domainIdentifier,")
        append("formsInput=*** Sensitive Data Redacted ***,")
        append("glossaryTerms=$glossaryTerms,")
        append("identifier=$identifier,")
        append("name=*** Sensitive Data Redacted ***,")
        append("predictionConfiguration=$predictionConfiguration,")
        append("typeRevision=$typeRevision")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
        result = 31 * result + (formsInput?.hashCode() ?: 0)
        result = 31 * result + (glossaryTerms?.hashCode() ?: 0)
        result = 31 * result + (identifier?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (predictionConfiguration?.hashCode() ?: 0)
        result = 31 * result + (typeRevision?.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 CreateAssetRevisionRequest

        if (clientToken != other.clientToken) return false
        if (description != other.description) return false
        if (domainIdentifier != other.domainIdentifier) return false
        if (formsInput != other.formsInput) return false
        if (glossaryTerms != other.glossaryTerms) return false
        if (identifier != other.identifier) return false
        if (name != other.name) return false
        if (predictionConfiguration != other.predictionConfiguration) return false
        if (typeRevision != other.typeRevision) return false

        return true
    }

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

    public class Builder {
        /**
         * A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
         */
        public var clientToken: kotlin.String? = null
        /**
         * The revised description of the asset.
         */
        public var description: kotlin.String? = null
        /**
         * The unique identifier of the domain where the asset is being revised.
         */
        public var domainIdentifier: kotlin.String? = null
        /**
         * The metadata forms to be attached to the asset as part of asset revision.
         */
        public var formsInput: List? = null
        /**
         * The glossary terms to be attached to the asset as part of asset revision.
         */
        public var glossaryTerms: List? = null
        /**
         * The identifier of the asset.
         */
        public var identifier: kotlin.String? = null
        /**
         * Te revised name of the asset.
         */
        public var name: kotlin.String? = null
        /**
         * The configuration of the automatically generated business-friendly metadata for the asset.
         */
        public var predictionConfiguration: aws.sdk.kotlin.services.datazone.model.PredictionConfiguration? = null
        /**
         * The revision type of the asset.
         */
        public var typeRevision: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.CreateAssetRevisionRequest) : this() {
            this.clientToken = x.clientToken
            this.description = x.description
            this.domainIdentifier = x.domainIdentifier
            this.formsInput = x.formsInput
            this.glossaryTerms = x.glossaryTerms
            this.identifier = x.identifier
            this.name = x.name
            this.predictionConfiguration = x.predictionConfiguration
            this.typeRevision = x.typeRevision
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy