commonMain.aws.sdk.kotlin.services.glue.model.S3Target.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
/**
* Specifies a data store in Amazon Simple Storage Service (Amazon S3).
*/
public class S3Target private constructor(builder: Builder) {
/**
* The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).
*/
public val connectionName: kotlin.String? = builder.connectionName
/**
* A valid Amazon dead-letter SQS ARN. For example, `arn:aws:sqs:region:account:deadLetterQueue`.
*/
public val dlqEventQueueArn: kotlin.String? = builder.dlqEventQueueArn
/**
* A valid Amazon SQS ARN. For example, `arn:aws:sqs:region:account:sqs`.
*/
public val eventQueueArn: kotlin.String? = builder.eventQueueArn
/**
* A list of glob patterns used to exclude from the crawl. For more information, see [Catalog Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html).
*/
public val exclusions: List? = builder.exclusions
/**
* The path to the Amazon S3 target.
*/
public val path: kotlin.String? = builder.path
/**
* Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
*/
public val sampleSize: kotlin.Int? = builder.sampleSize
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.S3Target = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("S3Target(")
append("connectionName=$connectionName,")
append("dlqEventQueueArn=$dlqEventQueueArn,")
append("eventQueueArn=$eventQueueArn,")
append("exclusions=$exclusions,")
append("path=$path,")
append("sampleSize=$sampleSize")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = connectionName?.hashCode() ?: 0
result = 31 * result + (dlqEventQueueArn?.hashCode() ?: 0)
result = 31 * result + (eventQueueArn?.hashCode() ?: 0)
result = 31 * result + (exclusions?.hashCode() ?: 0)
result = 31 * result + (path?.hashCode() ?: 0)
result = 31 * result + (sampleSize ?: 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 S3Target
if (connectionName != other.connectionName) return false
if (dlqEventQueueArn != other.dlqEventQueueArn) return false
if (eventQueueArn != other.eventQueueArn) return false
if (exclusions != other.exclusions) return false
if (path != other.path) return false
if (sampleSize != other.sampleSize) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.S3Target = Builder(this).apply(block).build()
public class Builder {
/**
* The name of a connection which allows a job or crawler to access data in Amazon S3 within an Amazon Virtual Private Cloud environment (Amazon VPC).
*/
public var connectionName: kotlin.String? = null
/**
* A valid Amazon dead-letter SQS ARN. For example, `arn:aws:sqs:region:account:deadLetterQueue`.
*/
public var dlqEventQueueArn: kotlin.String? = null
/**
* A valid Amazon SQS ARN. For example, `arn:aws:sqs:region:account:sqs`.
*/
public var eventQueueArn: kotlin.String? = null
/**
* A list of glob patterns used to exclude from the crawl. For more information, see [Catalog Tables with a Crawler](https://docs.aws.amazon.com/glue/latest/dg/add-crawler.html).
*/
public var exclusions: List? = null
/**
* The path to the Amazon S3 target.
*/
public var path: kotlin.String? = null
/**
* Sets the number of files in each leaf folder to be crawled when crawling sample files in a dataset. If not set, all the files are crawled. A valid value is an integer between 1 and 249.
*/
public var sampleSize: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.S3Target) : this() {
this.connectionName = x.connectionName
this.dlqEventQueueArn = x.dlqEventQueueArn
this.eventQueueArn = x.eventQueueArn
this.exclusions = x.exclusions
this.path = x.path
this.sampleSize = x.sampleSize
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.S3Target = S3Target(this)
internal fun correctErrors(): Builder {
return this
}
}
}