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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeCertificatesResponse.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.databasemigrationservice.model

import aws.smithy.kotlin.runtime.SdkDsl

public class DescribeCertificatesResponse private constructor(builder: Builder) {
    /**
     * The Secure Sockets Layer (SSL) certificates associated with the replication instance.
     */
    public val certificates: List? = builder.certificates
    /**
     * The pagination token.
     */
    public val marker: kotlin.String? = builder.marker

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeCertificatesResponse(")
        append("certificates=$certificates,")
        append("marker=$marker")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = certificates?.hashCode() ?: 0
        result = 31 * result + (marker?.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 DescribeCertificatesResponse

        if (certificates != other.certificates) return false
        if (marker != other.marker) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The Secure Sockets Layer (SSL) certificates associated with the replication instance.
         */
        public var certificates: List? = null
        /**
         * The pagination token.
         */
        public var marker: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databasemigrationservice.model.DescribeCertificatesResponse) : this() {
            this.certificates = x.certificates
            this.marker = x.marker
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy