
commonMain.aws.sdk.kotlin.services.dynamodb.model.PointInTimeRecoverySpecification.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dynamodb.model
/**
* Represents the settings used to enable point in time recovery.
*/
public class PointInTimeRecoverySpecification private constructor(builder: Builder) {
/**
* Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
*/
public val pointInTimeRecoveryEnabled: kotlin.Boolean = requireNotNull(builder.pointInTimeRecoveryEnabled) { "A non-null value must be provided for pointInTimeRecoveryEnabled" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dynamodb.model.PointInTimeRecoverySpecification = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PointInTimeRecoverySpecification(")
append("pointInTimeRecoveryEnabled=$pointInTimeRecoveryEnabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pointInTimeRecoveryEnabled.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 PointInTimeRecoverySpecification
if (pointInTimeRecoveryEnabled != other.pointInTimeRecoveryEnabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dynamodb.model.PointInTimeRecoverySpecification = Builder(this).apply(block).build()
public class Builder {
/**
* Indicates whether point in time recovery is enabled (true) or disabled (false) on the table.
*/
public var pointInTimeRecoveryEnabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dynamodb.model.PointInTimeRecoverySpecification) : this() {
this.pointInTimeRecoveryEnabled = x.pointInTimeRecoveryEnabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dynamodb.model.PointInTimeRecoverySpecification = PointInTimeRecoverySpecification(this)
internal fun correctErrors(): Builder {
if (pointInTimeRecoveryEnabled == null) pointInTimeRecoveryEnabled = false
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy