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

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

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

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

import aws.smithy.kotlin.runtime.time.Instant

/**
 * Contains details of the table class.
 */
public class TableClassSummary private constructor(builder: Builder) {
    /**
     * The date and time at which the table class was last updated.
     */
    public val lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdateDateTime
    /**
     * The table class of the specified table. Valid values are `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
     */
    public val tableClass: aws.sdk.kotlin.services.dynamodb.model.TableClass? = builder.tableClass

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

    override fun toString(): kotlin.String = buildString {
        append("TableClassSummary(")
        append("lastUpdateDateTime=$lastUpdateDateTime,")
        append("tableClass=$tableClass")
        append(")")
    }

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

        if (lastUpdateDateTime != other.lastUpdateDateTime) return false
        if (tableClass != other.tableClass) return false

        return true
    }

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

    public class Builder {
        /**
         * The date and time at which the table class was last updated.
         */
        public var lastUpdateDateTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The table class of the specified table. Valid values are `STANDARD` and `STANDARD_INFREQUENT_ACCESS`.
         */
        public var tableClass: aws.sdk.kotlin.services.dynamodb.model.TableClass? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.TableClassSummary) : this() {
            this.lastUpdateDateTime = x.lastUpdateDateTime
            this.tableClass = x.tableClass
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy