commonMain.aws.sdk.kotlin.services.glue.model.GetPlanResponse.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 GetPlanResponse private constructor(builder: Builder) {
/**
* A Python script to perform the mapping.
*/
public val pythonScript: kotlin.String? = builder.pythonScript
/**
* The Scala code to perform the mapping.
*/
public val scalaCode: kotlin.String? = builder.scalaCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.GetPlanResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetPlanResponse(")
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 GetPlanResponse
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.GetPlanResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A Python script to perform the mapping.
*/
public var pythonScript: kotlin.String? = null
/**
* The Scala code to perform the mapping.
*/
public var scalaCode: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.GetPlanResponse) : this() {
this.pythonScript = x.pythonScript
this.scalaCode = x.scalaCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.GetPlanResponse = GetPlanResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}