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

commonMain.aws.sdk.kotlin.services.iam.model.UpdateServerCertificateRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.iam.model



public class UpdateServerCertificateRequest private constructor(builder: Builder) {
    /**
     * The new path for the server certificate. Include this only if you are updating the server certificate's path.
     *
     * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (`\u0021`) through the DEL character (`\u007F`), including most punctuation characters, digits, and upper and lowercased letters.
     */
    public val newPath: kotlin.String? = builder.newPath
    /**
     * The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
     *
     * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
     */
    public val newServerCertificateName: kotlin.String? = builder.newServerCertificateName
    /**
     * The name of the server certificate that you want to update.
     *
     * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
     */
    public val serverCertificateName: kotlin.String? = builder.serverCertificateName

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateServerCertificateRequest(")
        append("newPath=$newPath,")
        append("newServerCertificateName=$newServerCertificateName,")
        append("serverCertificateName=$serverCertificateName")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = newPath?.hashCode() ?: 0
        result = 31 * result + (newServerCertificateName?.hashCode() ?: 0)
        result = 31 * result + (serverCertificateName?.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 UpdateServerCertificateRequest

        if (newPath != other.newPath) return false
        if (newServerCertificateName != other.newServerCertificateName) return false
        if (serverCertificateName != other.serverCertificateName) return false

        return true
    }

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

    public class Builder {
        /**
         * The new path for the server certificate. Include this only if you are updating the server certificate's path.
         *
         * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of either a forward slash (/) by itself or a string that must begin and end with forward slashes. In addition, it can contain any ASCII character from the ! (`\u0021`) through the DEL character (`\u007F`), including most punctuation characters, digits, and upper and lowercased letters.
         */
        public var newPath: kotlin.String? = null
        /**
         * The new name for the server certificate. Include this only if you are updating the server certificate's name. The name of the certificate cannot contain any spaces.
         *
         * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
         */
        public var newServerCertificateName: kotlin.String? = null
        /**
         * The name of the server certificate that you want to update.
         *
         * This parameter allows (through its [regex pattern](http://wikipedia.org/wiki/regex)) a string of characters consisting of upper and lowercase alphanumeric characters with no spaces. You can also include any of the following characters: _+=,.@-
         */
        public var serverCertificateName: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iam.model.UpdateServerCertificateRequest) : this() {
            this.newPath = x.newPath
            this.newServerCertificateName = x.newServerCertificateName
            this.serverCertificateName = x.serverCertificateName
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy