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

commonMain.aws.sdk.kotlin.services.docdbelastic.model.GetClusterSnapshotRequest.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.docdbelastic.model



public class GetClusterSnapshotRequest private constructor(builder: Builder) {
    /**
     * The ARN identifier of the elastic cluster snapshot.
     */
    public val snapshotArn: kotlin.String = requireNotNull(builder.snapshotArn) { "A non-null value must be provided for snapshotArn" }

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

    override fun toString(): kotlin.String = buildString {
        append("GetClusterSnapshotRequest(")
        append("snapshotArn=$snapshotArn")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = snapshotArn.hashCode()
        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 GetClusterSnapshotRequest

        if (snapshotArn != other.snapshotArn) return false

        return true
    }

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

    public class Builder {
        /**
         * The ARN identifier of the elastic cluster snapshot.
         */
        public var snapshotArn: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.docdbelastic.model.GetClusterSnapshotRequest) : this() {
            this.snapshotArn = x.snapshotArn
        }

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

        internal fun correctErrors(): Builder {
            if (snapshotArn == null) snapshotArn = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy