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

commonMain.aws.sdk.kotlin.services.finspace.model.DeleteKxVolumeRequest.kt Maven / Gradle / Ivy

There is a newer version: 1.3.77
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.finspace.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DeleteKxVolumeRequest private constructor(builder: Builder) {
    /**
     * A token that ensures idempotency. This token expires in 10 minutes.
     */
    public val clientToken: kotlin.String? = builder.clientToken
    /**
     * A unique identifier for the kdb environment, whose clusters can attach to the volume.
     */
    public val environmentId: kotlin.String? = builder.environmentId
    /**
     * The name of the volume that you want to delete.
     */
    public val volumeName: kotlin.String? = builder.volumeName

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteKxVolumeRequest(")
        append("clientToken=$clientToken,")
        append("environmentId=$environmentId,")
        append("volumeName=$volumeName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clientToken?.hashCode() ?: 0
        result = 31 * result + (environmentId?.hashCode() ?: 0)
        result = 31 * result + (volumeName?.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 DeleteKxVolumeRequest

        if (clientToken != other.clientToken) return false
        if (environmentId != other.environmentId) return false
        if (volumeName != other.volumeName) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A token that ensures idempotency. This token expires in 10 minutes.
         */
        public var clientToken: kotlin.String? = null
        /**
         * A unique identifier for the kdb environment, whose clusters can attach to the volume.
         */
        public var environmentId: kotlin.String? = null
        /**
         * The name of the volume that you want to delete.
         */
        public var volumeName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.finspace.model.DeleteKxVolumeRequest) : this() {
            this.clientToken = x.clientToken
            this.environmentId = x.environmentId
            this.volumeName = x.volumeName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy