commonMain.aws.sdk.kotlin.services.glue.model.CreateScriptResponse.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
public class CreateScriptResponse private constructor(builder: Builder) {
/**
* The Python script generated from the DAG.
*/
public val pythonScript: kotlin.String? = builder.pythonScript
/**
* The Scala code generated from the DAG.
*/
public val scalaCode: kotlin.String? = builder.scalaCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.CreateScriptResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateScriptResponse(")
append("pythonScript=$pythonScript,")
append("scalaCode=$scalaCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = pythonScript?.hashCode() ?: 0
result = 31 * result + (scalaCode?.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 CreateScriptResponse
if (pythonScript != other.pythonScript) return false
if (scalaCode != other.scalaCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.CreateScriptResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The Python script generated from the DAG.
*/
public var pythonScript: kotlin.String? = null
/**
* The Scala code generated from the DAG.
*/
public var scalaCode: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.CreateScriptResponse) : this() {
this.pythonScript = x.pythonScript
this.scalaCode = x.scalaCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.CreateScriptResponse = CreateScriptResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}