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

commonMain.aws.sdk.kotlin.services.dynamodb.model.ExportSummary.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.dynamodb.model



/**
 * Summary information about an export task.
 */
public class ExportSummary private constructor(builder: Builder) {
    /**
     * The Amazon Resource Name (ARN) of the export.
     */
    public val exportArn: kotlin.String? = builder.exportArn
    /**
     * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.
     */
    public val exportStatus: aws.sdk.kotlin.services.dynamodb.model.ExportStatus? = builder.exportStatus
    /**
     * The type of export that was performed. Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`.
     */
    public val exportType: aws.sdk.kotlin.services.dynamodb.model.ExportType? = builder.exportType

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

    override fun toString(): kotlin.String = buildString {
        append("ExportSummary(")
        append("exportArn=$exportArn,")
        append("exportStatus=$exportStatus,")
        append("exportType=$exportType")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = exportArn?.hashCode() ?: 0
        result = 31 * result + (exportStatus?.hashCode() ?: 0)
        result = 31 * result + (exportType?.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 ExportSummary

        if (exportArn != other.exportArn) return false
        if (exportStatus != other.exportStatus) return false
        if (exportType != other.exportType) return false

        return true
    }

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

    public class Builder {
        /**
         * The Amazon Resource Name (ARN) of the export.
         */
        public var exportArn: kotlin.String? = null
        /**
         * Export can be in one of the following states: IN_PROGRESS, COMPLETED, or FAILED.
         */
        public var exportStatus: aws.sdk.kotlin.services.dynamodb.model.ExportStatus? = null
        /**
         * The type of export that was performed. Valid values are `FULL_EXPORT` or `INCREMENTAL_EXPORT`.
         */
        public var exportType: aws.sdk.kotlin.services.dynamodb.model.ExportType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.ExportSummary) : this() {
            this.exportArn = x.exportArn
            this.exportStatus = x.exportStatus
            this.exportType = x.exportType
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy