commonMain.aws.sdk.kotlin.services.glue.model.CreateScriptRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class CreateScriptRequest private constructor(builder: Builder) {
/**
* A list of the edges in the DAG.
*/
public val dagEdges: List? = builder.dagEdges
/**
* A list of the nodes in the DAG.
*/
public val dagNodes: List? = builder.dagNodes
/**
* The programming language of the resulting code from the DAG.
*/
public val language: aws.sdk.kotlin.services.glue.model.Language? = builder.language
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateScriptRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateScriptRequest(")
append("dagEdges=$dagEdges,")
append("dagNodes=$dagNodes,")
append("language=$language")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dagEdges?.hashCode() ?: 0
result = 31 * result + (dagNodes?.hashCode() ?: 0)
result = 31 * result + (language?.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 CreateScriptRequest
if (dagEdges != other.dagEdges) return false
if (dagNodes != other.dagNodes) return false
if (language != other.language) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateScriptRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of the edges in the DAG.
*/
public var dagEdges: List? = null
/**
* A list of the nodes in the DAG.
*/
public var dagNodes: List? = null
/**
* The programming language of the resulting code from the DAG.
*/
public var language: aws.sdk.kotlin.services.glue.model.Language? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateScriptRequest) : this() {
this.dagEdges = x.dagEdges
this.dagNodes = x.dagNodes
this.language = x.language
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateScriptRequest = CreateScriptRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}