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

commonMain.aws.sdk.kotlin.services.elasticloadbalancingv2.model.ModifyTrustStoreRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.elasticloadbalancingv2.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ModifyTrustStoreRequest private constructor(builder: Builder) {
    /**
     * The Amazon S3 bucket for the ca certificates bundle.
     */
    public val caCertificatesBundleS3Bucket: kotlin.String? = builder.caCertificatesBundleS3Bucket
    /**
     * The Amazon S3 path for the ca certificates bundle.
     */
    public val caCertificatesBundleS3Key: kotlin.String? = builder.caCertificatesBundleS3Key
    /**
     * The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.
     */
    public val caCertificatesBundleS3ObjectVersion: kotlin.String? = builder.caCertificatesBundleS3ObjectVersion
    /**
     * The Amazon Resource Name (ARN) of the trust store.
     */
    public val trustStoreArn: kotlin.String? = builder.trustStoreArn

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

    override fun toString(): kotlin.String = buildString {
        append("ModifyTrustStoreRequest(")
        append("caCertificatesBundleS3Bucket=$caCertificatesBundleS3Bucket,")
        append("caCertificatesBundleS3Key=$caCertificatesBundleS3Key,")
        append("caCertificatesBundleS3ObjectVersion=$caCertificatesBundleS3ObjectVersion,")
        append("trustStoreArn=$trustStoreArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = caCertificatesBundleS3Bucket?.hashCode() ?: 0
        result = 31 * result + (caCertificatesBundleS3Key?.hashCode() ?: 0)
        result = 31 * result + (caCertificatesBundleS3ObjectVersion?.hashCode() ?: 0)
        result = 31 * result + (trustStoreArn?.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 ModifyTrustStoreRequest

        if (caCertificatesBundleS3Bucket != other.caCertificatesBundleS3Bucket) return false
        if (caCertificatesBundleS3Key != other.caCertificatesBundleS3Key) return false
        if (caCertificatesBundleS3ObjectVersion != other.caCertificatesBundleS3ObjectVersion) return false
        if (trustStoreArn != other.trustStoreArn) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Amazon S3 bucket for the ca certificates bundle.
         */
        public var caCertificatesBundleS3Bucket: kotlin.String? = null
        /**
         * The Amazon S3 path for the ca certificates bundle.
         */
        public var caCertificatesBundleS3Key: kotlin.String? = null
        /**
         * The Amazon S3 object version for the ca certificates bundle. If undefined the current version is used.
         */
        public var caCertificatesBundleS3ObjectVersion: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the trust store.
         */
        public var trustStoreArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.elasticloadbalancingv2.model.ModifyTrustStoreRequest) : this() {
            this.caCertificatesBundleS3Bucket = x.caCertificatesBundleS3Bucket
            this.caCertificatesBundleS3Key = x.caCertificatesBundleS3Key
            this.caCertificatesBundleS3ObjectVersion = x.caCertificatesBundleS3ObjectVersion
            this.trustStoreArn = x.trustStoreArn
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy