commonMain.aws.sdk.kotlin.services.glue.model.MongoDbTarget.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
The newest version!
// 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 DocumentDB or MongoDB data store to crawl.
*/
public class MongoDbTarget private constructor(builder: Builder) {
/**
* The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
*/
public val connectionName: kotlin.String? = builder.connectionName
/**
* The path of the Amazon DocumentDB or MongoDB target (database/collection).
*/
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
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.MongoDbTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MongoDbTarget(")
append("connectionName=$connectionName,")
append("path=$path,")
append("scanAll=$scanAll")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionName?.hashCode() ?: 0
result = 31 * result + (path?.hashCode() ?: 0)
result = 31 * result + (scanAll?.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 MongoDbTarget
if (connectionName != other.connectionName) return false
if (path != other.path) return false
if (scanAll != other.scanAll) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.MongoDbTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the connection to use to connect to the Amazon DocumentDB or MongoDB target.
*/
public var connectionName: kotlin.String? = null
/**
* The path of the Amazon DocumentDB or MongoDB target (database/collection).
*/
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
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.MongoDbTarget) : this() {
this.connectionName = x.connectionName
this.path = x.path
this.scanAll = x.scanAll
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.MongoDbTarget = MongoDbTarget(this)
internal fun correctErrors(): Builder {
return this
}
}
}