commonMain.aws.sdk.kotlin.services.glue.model.AmazonRedshiftTarget.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 Redshift target.
*/
public class AmazonRedshiftTarget private constructor(builder: Builder) {
/**
* Specifies the data of the Amazon Redshift target node.
*/
public val data: aws.sdk.kotlin.services.glue.model.AmazonRedshiftNodeData? = builder.data
/**
* The nodes that are inputs to the data target.
*/
public val inputs: List? = builder.inputs
/**
* The name of the Amazon Redshift target.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.AmazonRedshiftTarget = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AmazonRedshiftTarget(")
append("data=$data,")
append("inputs=$inputs,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = data?.hashCode() ?: 0
result = 31 * result + (inputs?.hashCode() ?: 0)
result = 31 * result + (name?.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 AmazonRedshiftTarget
if (data != other.data) return false
if (inputs != other.inputs) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.AmazonRedshiftTarget = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the data of the Amazon Redshift target node.
*/
public var data: aws.sdk.kotlin.services.glue.model.AmazonRedshiftNodeData? = null
/**
* The nodes that are inputs to the data target.
*/
public var inputs: List? = null
/**
* The name of the Amazon Redshift target.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.AmazonRedshiftTarget) : this() {
this.data = x.data
this.inputs = x.inputs
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.AmazonRedshiftTarget = AmazonRedshiftTarget(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.AmazonRedshiftNodeData] inside the given [block]
*/
public fun data(block: aws.sdk.kotlin.services.glue.model.AmazonRedshiftNodeData.Builder.() -> kotlin.Unit) {
this.data = aws.sdk.kotlin.services.glue.model.AmazonRedshiftNodeData.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}