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

commonMain.aws.sdk.kotlin.services.qldb.model.ExportJournalToS3Response.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.qldb.model

import aws.smithy.kotlin.runtime.SdkDsl

public class ExportJournalToS3Response private constructor(builder: Builder) {
    /**
     * The UUID (represented in Base62-encoded text) that QLDB assigns to each journal export job.
     *
     * To describe your export request and check the status of the job, you can use `ExportId` to call `DescribeJournalS3Export`.
     */
    public val exportId: kotlin.String = requireNotNull(builder.exportId) { "A non-null value must be provided for exportId" }

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

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

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

        if (exportId != other.exportId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The UUID (represented in Base62-encoded text) that QLDB assigns to each journal export job.
         *
         * To describe your export request and check the status of the job, you can use `ExportId` to call `DescribeJournalS3Export`.
         */
        public var exportId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.qldb.model.ExportJournalToS3Response) : this() {
            this.exportId = x.exportId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy