commonMain.aws.sdk.kotlin.services.glue.model.DynamoDbTarget.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Specifies an Amazon DynamoDB table to crawl.
*/
public class DynamoDbTarget private constructor(builder: Builder) {
/**
* The name of the DynamoDB table to crawl.
*/
public val path: kotlin.String? = builder.path
/**
* Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
*
* A value of `true` means to scan all records, while a value of `false` means to sample the records. If no value is specified, the value defaults to `true`.
*/
public val scanAll: kotlin.Boolean? = builder.scanAll
/**
* The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.
*
* The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).
*/
public val scanRate: kotlin.Double? = builder.scanRate
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DynamoDbTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DynamoDbTarget(")
append("path=$path,")
append("scanAll=$scanAll,")
append("scanRate=$scanRate")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = path?.hashCode() ?: 0
result = 31 * result + (scanAll?.hashCode() ?: 0)
result = 31 * result + (scanRate?.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 DynamoDbTarget
if (path != other.path) return false
if (scanAll != other.scanAll) return false
if (!(scanRate?.equals(other.scanRate) ?: (other.scanRate == null))) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DynamoDbTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the DynamoDB table to crawl.
*/
public var path: kotlin.String? = null
/**
* Indicates whether to scan all the records, or to sample rows from the table. Scanning all the records can take a long time when the table is not a high throughput table.
*
* A value of `true` means to scan all records, while a value of `false` means to sample the records. If no value is specified, the value defaults to `true`.
*/
public var scanAll: kotlin.Boolean? = null
/**
* The percentage of the configured read capacity units to use by the Glue crawler. Read capacity units is a term defined by DynamoDB, and is a numeric value that acts as rate limiter for the number of reads that can be performed on that table per second.
*
* The valid values are null or a value between 0.1 to 1.5. A null value is used when user does not provide a value, and defaults to 0.5 of the configured Read Capacity Unit (for provisioned tables), or 0.25 of the max configured Read Capacity Unit (for tables using on-demand mode).
*/
public var scanRate: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DynamoDbTarget) : this() {
this.path = x.path
this.scanAll = x.scanAll
this.scanRate = x.scanRate
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DynamoDbTarget = DynamoDbTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}