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

commonMain.aws.sdk.kotlin.services.cloudhsmv2.model.DeleteHsmRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.cloudhsmv2.model



public class DeleteHsmRequest private constructor(builder: Builder) {
    /**
     * The identifier (ID) of the cluster that contains the HSM that you are deleting.
     */
    public val clusterId: kotlin.String? = builder.clusterId
    /**
     * The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.
     */
    public val eniId: kotlin.String? = builder.eniId
    /**
     * The IP address of the elastic network interface (ENI) of the HSM that you are deleting.
     */
    public val eniIp: kotlin.String? = builder.eniIp
    /**
     * The identifier (ID) of the HSM that you are deleting.
     */
    public val hsmId: kotlin.String? = builder.hsmId

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

    override fun toString(): kotlin.String = buildString {
        append("DeleteHsmRequest(")
        append("clusterId=$clusterId,")
        append("eniId=$eniId,")
        append("eniIp=$eniIp,")
        append("hsmId=$hsmId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = clusterId?.hashCode() ?: 0
        result = 31 * result + (eniId?.hashCode() ?: 0)
        result = 31 * result + (eniIp?.hashCode() ?: 0)
        result = 31 * result + (hsmId?.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 DeleteHsmRequest

        if (clusterId != other.clusterId) return false
        if (eniId != other.eniId) return false
        if (eniIp != other.eniIp) return false
        if (hsmId != other.hsmId) return false

        return true
    }

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

    public class Builder {
        /**
         * The identifier (ID) of the cluster that contains the HSM that you are deleting.
         */
        public var clusterId: kotlin.String? = null
        /**
         * The identifier (ID) of the elastic network interface (ENI) of the HSM that you are deleting.
         */
        public var eniId: kotlin.String? = null
        /**
         * The IP address of the elastic network interface (ENI) of the HSM that you are deleting.
         */
        public var eniIp: kotlin.String? = null
        /**
         * The identifier (ID) of the HSM that you are deleting.
         */
        public var hsmId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.cloudhsmv2.model.DeleteHsmRequest) : this() {
            this.clusterId = x.clusterId
            this.eniId = x.eniId
            this.eniIp = x.eniIp
            this.hsmId = x.hsmId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.cloudhsmv2.model.DeleteHsmRequest = DeleteHsmRequest(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy