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

commonMain.aws.sdk.kotlin.services.kms.model.DisconnectCustomKeyStoreRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.kms.model



public class DisconnectCustomKeyStoreRequest private constructor(builder: Builder) {
    /**
     * Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.
     */
    public val customKeyStoreId: kotlin.String? = builder.customKeyStoreId

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

    override fun toString(): kotlin.String = buildString {
        append("DisconnectCustomKeyStoreRequest(")
        append("customKeyStoreId=$customKeyStoreId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = customKeyStoreId?.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 DisconnectCustomKeyStoreRequest

        if (customKeyStoreId != other.customKeyStoreId) return false

        return true
    }

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

    public class Builder {
        /**
         * Enter the ID of the custom key store you want to disconnect. To find the ID of a custom key store, use the DescribeCustomKeyStores operation.
         */
        public var customKeyStoreId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.kms.model.DisconnectCustomKeyStoreRequest) : this() {
            this.customKeyStoreId = x.customKeyStoreId
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy