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

commonMain.aws.sdk.kotlin.services.databasemigrationservice.model.DescribeTableStatisticsResponse.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 DescribeTableStatisticsResponse private constructor(builder: Builder) {
    /**
     * An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by `MaxRecords`.
     */
    public val marker: kotlin.String? = builder.marker
    /**
     * The Amazon Resource Name (ARN) of the replication task.
     */
    public val replicationTaskArn: kotlin.String? = builder.replicationTaskArn
    /**
     * The table statistics.
     */
    public val tableStatistics: List? = builder.tableStatistics

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeTableStatisticsResponse(")
        append("marker=$marker,")
        append("replicationTaskArn=$replicationTaskArn,")
        append("tableStatistics=$tableStatistics")
        append(")")
    }

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

        if (marker != other.marker) return false
        if (replicationTaskArn != other.replicationTaskArn) return false
        if (tableStatistics != other.tableStatistics) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the marker, up to the value specified by `MaxRecords`.
         */
        public var marker: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the replication task.
         */
        public var replicationTaskArn: kotlin.String? = null
        /**
         * The table statistics.
         */
        public var tableStatistics: List? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy