commonMain.aws.sdk.kotlin.services.glue.model.SnowflakeSource.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 a Snowflake data source.
*/
public class SnowflakeSource private constructor(builder: Builder) {
/**
* Configuration for the Snowflake data source.
*/
public val data: aws.sdk.kotlin.services.glue.model.SnowflakeNodeData? = builder.data
/**
* The name of the Snowflake data source.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* Specifies user-defined schemas for your output data.
*/
public val outputSchemas: List? = builder.outputSchemas
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SnowflakeSource = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SnowflakeSource(")
append("data=$data,")
append("name=$name,")
append("outputSchemas=$outputSchemas")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = data?.hashCode() ?: 0
result = 31 * result + (name.hashCode())
result = 31 * result + (outputSchemas?.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 SnowflakeSource
if (data != other.data) return false
if (name != other.name) return false
if (outputSchemas != other.outputSchemas) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SnowflakeSource = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Configuration for the Snowflake data source.
*/
public var data: aws.sdk.kotlin.services.glue.model.SnowflakeNodeData? = null
/**
* The name of the Snowflake data source.
*/
public var name: kotlin.String? = null
/**
* Specifies user-defined schemas for your output data.
*/
public var outputSchemas: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SnowflakeSource) : this() {
this.data = x.data
this.name = x.name
this.outputSchemas = x.outputSchemas
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SnowflakeSource = SnowflakeSource(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.SnowflakeNodeData] inside the given [block]
*/
public fun data(block: aws.sdk.kotlin.services.glue.model.SnowflakeNodeData.Builder.() -> kotlin.Unit) {
this.data = aws.sdk.kotlin.services.glue.model.SnowflakeNodeData.invoke(block)
}
internal fun correctErrors(): Builder {
if (name == null) name = ""
return this
}
}
}