commonMain.aws.sdk.kotlin.services.appsync.model.DeltaSyncConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes a Delta Sync configuration.
*/
public class DeltaSyncConfig private constructor(builder: Builder) {
/**
* The number of minutes that an Item is stored in the data source.
*/
public val baseTableTtl: kotlin.Long = builder.baseTableTtl
/**
* The Delta Sync table name.
*/
public val deltaSyncTableName: kotlin.String? = builder.deltaSyncTableName
/**
* The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
*/
public val deltaSyncTableTtl: kotlin.Long = builder.deltaSyncTableTtl
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.appsync.model.DeltaSyncConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeltaSyncConfig(")
append("baseTableTtl=$baseTableTtl,")
append("deltaSyncTableName=$deltaSyncTableName,")
append("deltaSyncTableTtl=$deltaSyncTableTtl")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = baseTableTtl.hashCode()
result = 31 * result + (deltaSyncTableName?.hashCode() ?: 0)
result = 31 * result + (deltaSyncTableTtl.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 DeltaSyncConfig
if (baseTableTtl != other.baseTableTtl) return false
if (deltaSyncTableName != other.deltaSyncTableName) return false
if (deltaSyncTableTtl != other.deltaSyncTableTtl) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.DeltaSyncConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The number of minutes that an Item is stored in the data source.
*/
public var baseTableTtl: kotlin.Long = 0L
/**
* The Delta Sync table name.
*/
public var deltaSyncTableName: kotlin.String? = null
/**
* The number of minutes that a Delta Sync log entry is stored in the Delta Sync table.
*/
public var deltaSyncTableTtl: kotlin.Long = 0L
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.DeltaSyncConfig) : this() {
this.baseTableTtl = x.baseTableTtl
this.deltaSyncTableName = x.deltaSyncTableName
this.deltaSyncTableTtl = x.deltaSyncTableTtl
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.DeltaSyncConfig = DeltaSyncConfig(this)
internal fun correctErrors(): Builder {
return this
}
}
}