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

commonMain.aws.sdk.kotlin.services.redshift.model.CreateHsmConfigurationRequest.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.redshift.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 *
 */
public class CreateHsmConfigurationRequest private constructor(builder: Builder) {
    /**
     * A text description of the HSM configuration to be created.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The identifier to be assigned to the new Amazon Redshift HSM configuration.
     */
    public val hsmConfigurationIdentifier: kotlin.String? = builder.hsmConfigurationIdentifier
    /**
     * The IP address that the Amazon Redshift cluster must use to access the HSM.
     */
    public val hsmIpAddress: kotlin.String? = builder.hsmIpAddress
    /**
     * The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
     */
    public val hsmPartitionName: kotlin.String? = builder.hsmPartitionName
    /**
     * The password required to access the HSM partition.
     */
    public val hsmPartitionPassword: kotlin.String? = builder.hsmPartitionPassword
    /**
     * The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
     */
    public val hsmServerPublicCertificate: kotlin.String? = builder.hsmServerPublicCertificate
    /**
     * A list of tag instances.
     */
    public val tags: List? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateHsmConfigurationRequest(")
        append("description=$description,")
        append("hsmConfigurationIdentifier=$hsmConfigurationIdentifier,")
        append("hsmIpAddress=$hsmIpAddress,")
        append("hsmPartitionName=$hsmPartitionName,")
        append("hsmPartitionPassword=$hsmPartitionPassword,")
        append("hsmServerPublicCertificate=$hsmServerPublicCertificate,")
        append("tags=$tags")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = description?.hashCode() ?: 0
        result = 31 * result + (hsmConfigurationIdentifier?.hashCode() ?: 0)
        result = 31 * result + (hsmIpAddress?.hashCode() ?: 0)
        result = 31 * result + (hsmPartitionName?.hashCode() ?: 0)
        result = 31 * result + (hsmPartitionPassword?.hashCode() ?: 0)
        result = 31 * result + (hsmServerPublicCertificate?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateHsmConfigurationRequest

        if (description != other.description) return false
        if (hsmConfigurationIdentifier != other.hsmConfigurationIdentifier) return false
        if (hsmIpAddress != other.hsmIpAddress) return false
        if (hsmPartitionName != other.hsmPartitionName) return false
        if (hsmPartitionPassword != other.hsmPartitionPassword) return false
        if (hsmServerPublicCertificate != other.hsmServerPublicCertificate) return false
        if (tags != other.tags) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * A text description of the HSM configuration to be created.
         */
        public var description: kotlin.String? = null
        /**
         * The identifier to be assigned to the new Amazon Redshift HSM configuration.
         */
        public var hsmConfigurationIdentifier: kotlin.String? = null
        /**
         * The IP address that the Amazon Redshift cluster must use to access the HSM.
         */
        public var hsmIpAddress: kotlin.String? = null
        /**
         * The name of the partition in the HSM where the Amazon Redshift clusters will store their database encryption keys.
         */
        public var hsmPartitionName: kotlin.String? = null
        /**
         * The password required to access the HSM partition.
         */
        public var hsmPartitionPassword: kotlin.String? = null
        /**
         * The HSMs public certificate file. When using Cloud HSM, the file name is server.pem.
         */
        public var hsmServerPublicCertificate: kotlin.String? = null
        /**
         * A list of tag instances.
         */
        public var tags: List? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.redshift.model.CreateHsmConfigurationRequest) : this() {
            this.description = x.description
            this.hsmConfigurationIdentifier = x.hsmConfigurationIdentifier
            this.hsmIpAddress = x.hsmIpAddress
            this.hsmPartitionName = x.hsmPartitionName
            this.hsmPartitionPassword = x.hsmPartitionPassword
            this.hsmServerPublicCertificate = x.hsmServerPublicCertificate
            this.tags = x.tags
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy