commonMain.aws.sdk.kotlin.services.databrew.model.Input.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
/**
* Represents information on how DataBrew can find data, in either the Glue Data Catalog or Amazon S3.
*/
public class Input private constructor(builder: Builder) {
/**
* The Glue Data Catalog parameters for the data.
*/
public val dataCatalogInputDefinition: aws.sdk.kotlin.services.databrew.model.DataCatalogInputDefinition? = builder.dataCatalogInputDefinition
/**
* Connection information for dataset input files stored in a database.
*/
public val databaseInputDefinition: aws.sdk.kotlin.services.databrew.model.DatabaseInputDefinition? = builder.databaseInputDefinition
/**
* Contains additional resource information needed for specific datasets.
*/
public val metadata: aws.sdk.kotlin.services.databrew.model.Metadata? = builder.metadata
/**
* The Amazon S3 location where the data is stored.
*/
public val s3InputDefinition: aws.sdk.kotlin.services.databrew.model.S3Location? = builder.s3InputDefinition
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.Input = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Input(")
append("dataCatalogInputDefinition=$dataCatalogInputDefinition,")
append("databaseInputDefinition=$databaseInputDefinition,")
append("metadata=$metadata,")
append("s3InputDefinition=$s3InputDefinition)")
}
override fun hashCode(): kotlin.Int {
var result = dataCatalogInputDefinition?.hashCode() ?: 0
result = 31 * result + (databaseInputDefinition?.hashCode() ?: 0)
result = 31 * result + (metadata?.hashCode() ?: 0)
result = 31 * result + (s3InputDefinition?.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 Input
if (dataCatalogInputDefinition != other.dataCatalogInputDefinition) return false
if (databaseInputDefinition != other.databaseInputDefinition) return false
if (metadata != other.metadata) return false
if (s3InputDefinition != other.s3InputDefinition) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.Input = Builder(this).apply(block).build()
public class Builder {
/**
* The Glue Data Catalog parameters for the data.
*/
public var dataCatalogInputDefinition: aws.sdk.kotlin.services.databrew.model.DataCatalogInputDefinition? = null
/**
* Connection information for dataset input files stored in a database.
*/
public var databaseInputDefinition: aws.sdk.kotlin.services.databrew.model.DatabaseInputDefinition? = null
/**
* Contains additional resource information needed for specific datasets.
*/
public var metadata: aws.sdk.kotlin.services.databrew.model.Metadata? = null
/**
* The Amazon S3 location where the data is stored.
*/
public var s3InputDefinition: aws.sdk.kotlin.services.databrew.model.S3Location? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.Input) : this() {
this.dataCatalogInputDefinition = x.dataCatalogInputDefinition
this.databaseInputDefinition = x.databaseInputDefinition
this.metadata = x.metadata
this.s3InputDefinition = x.s3InputDefinition
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.Input = Input(this)
/**
* construct an [aws.sdk.kotlin.services.databrew.model.DataCatalogInputDefinition] inside the given [block]
*/
public fun dataCatalogInputDefinition(block: aws.sdk.kotlin.services.databrew.model.DataCatalogInputDefinition.Builder.() -> kotlin.Unit) {
this.dataCatalogInputDefinition = aws.sdk.kotlin.services.databrew.model.DataCatalogInputDefinition.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.DatabaseInputDefinition] inside the given [block]
*/
public fun databaseInputDefinition(block: aws.sdk.kotlin.services.databrew.model.DatabaseInputDefinition.Builder.() -> kotlin.Unit) {
this.databaseInputDefinition = aws.sdk.kotlin.services.databrew.model.DatabaseInputDefinition.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.Metadata] inside the given [block]
*/
public fun metadata(block: aws.sdk.kotlin.services.databrew.model.Metadata.Builder.() -> kotlin.Unit) {
this.metadata = aws.sdk.kotlin.services.databrew.model.Metadata.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.databrew.model.S3Location] inside the given [block]
*/
public fun s3InputDefinition(block: aws.sdk.kotlin.services.databrew.model.S3Location.Builder.() -> kotlin.Unit) {
this.s3InputDefinition = aws.sdk.kotlin.services.databrew.model.S3Location.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy