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

commonMain.aws.sdk.kotlin.services.athena.model.UpdateNotebookMetadataRequest.kt Maven / Gradle / Ivy

The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.athena.model

import aws.smithy.kotlin.runtime.SdkDsl

public class UpdateNotebookMetadataRequest private constructor(builder: Builder) {
    /**
     * A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
     *
     * This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
     */
    public val clientRequestToken: kotlin.String? = builder.clientRequestToken
    /**
     * The name to update the notebook to.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The ID of the notebook to update the metadata for.
     */
    public val notebookId: kotlin.String? = builder.notebookId

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateNotebookMetadataRequest(")
        append("clientRequestToken=$clientRequestToken,")
        append("name=$name,")
        append("notebookId=$notebookId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientRequestToken?.hashCode() ?: 0
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (notebookId?.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 UpdateNotebookMetadataRequest

        if (clientRequestToken != other.clientRequestToken) return false
        if (name != other.name) return false
        if (notebookId != other.notebookId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A unique case-sensitive string used to ensure the request to create the notebook is idempotent (executes only once).
         *
         * This token is listed as not required because Amazon Web Services SDKs (for example the Amazon Web Services SDK for Java) auto-generate the token for you. If you are not using the Amazon Web Services SDK or the Amazon Web Services CLI, you must provide this token or the action will fail.
         */
        public var clientRequestToken: kotlin.String? = null
        /**
         * The name to update the notebook to.
         */
        public var name: kotlin.String? = null
        /**
         * The ID of the notebook to update the metadata for.
         */
        public var notebookId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.athena.model.UpdateNotebookMetadataRequest) : this() {
            this.clientRequestToken = x.clientRequestToken
            this.name = x.name
            this.notebookId = x.notebookId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy