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

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

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

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



public class DescribeContinuousBackupsResponse private constructor(builder: Builder) {
    /**
     * Represents the continuous backups and point in time recovery settings on the table.
     */
    public val continuousBackupsDescription: aws.sdk.kotlin.services.dynamodb.model.ContinuousBackupsDescription? = builder.continuousBackupsDescription

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

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

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

        if (continuousBackupsDescription != other.continuousBackupsDescription) return false

        return true
    }

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

    public class Builder {
        /**
         * Represents the continuous backups and point in time recovery settings on the table.
         */
        public var continuousBackupsDescription: aws.sdk.kotlin.services.dynamodb.model.ContinuousBackupsDescription? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.DescribeContinuousBackupsResponse) : this() {
            this.continuousBackupsDescription = x.continuousBackupsDescription
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.dynamodb.model.ContinuousBackupsDescription] inside the given [block]
         */
        public fun continuousBackupsDescription(block: aws.sdk.kotlin.services.dynamodb.model.ContinuousBackupsDescription.Builder.() -> kotlin.Unit) {
            this.continuousBackupsDescription = aws.sdk.kotlin.services.dynamodb.model.ContinuousBackupsDescription.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy