commonMain.aws.sdk.kotlin.services.glue.model.SessionCommand.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
/**
* The `SessionCommand` that runs the job.
*/
public class SessionCommand private constructor(builder: Builder) {
/**
* Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.
*/
public val name: kotlin.String? = builder.name
/**
* Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.
*/
public val pythonVersion: kotlin.String? = builder.pythonVersion
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SessionCommand = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SessionCommand(")
append("name=$name,")
append("pythonVersion=$pythonVersion")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = name?.hashCode() ?: 0
result = 31 * result + (pythonVersion?.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 SessionCommand
if (name != other.name) return false
if (pythonVersion != other.pythonVersion) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SessionCommand = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Specifies the name of the SessionCommand. Can be 'glueetl' or 'gluestreaming'.
*/
public var name: kotlin.String? = null
/**
* Specifies the Python version. The Python version indicates the version supported for jobs of type Spark.
*/
public var pythonVersion: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SessionCommand) : this() {
this.name = x.name
this.pythonVersion = x.pythonVersion
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SessionCommand = SessionCommand(this)
internal fun correctErrors(): Builder {
return this
}
}
}