commonMain.aws.sdk.kotlin.services.glue.model.RecipeStep.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A recipe step used in a Glue Studio data preparation recipe node.
*/
public class RecipeStep private constructor(builder: Builder) {
/**
* The transformation action of the recipe step.
*/
public val action: aws.sdk.kotlin.services.glue.model.RecipeAction? = builder.action
/**
* The condition expressions for the recipe step.
*/
public val conditionExpressions: List? = builder.conditionExpressions
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RecipeStep = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecipeStep(")
append("action=$action,")
append("conditionExpressions=$conditionExpressions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (conditionExpressions?.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 RecipeStep
if (action != other.action) return false
if (conditionExpressions != other.conditionExpressions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RecipeStep = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The transformation action of the recipe step.
*/
public var action: aws.sdk.kotlin.services.glue.model.RecipeAction? = null
/**
* The condition expressions for the recipe step.
*/
public var conditionExpressions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RecipeStep) : this() {
this.action = x.action
this.conditionExpressions = x.conditionExpressions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RecipeStep = RecipeStep(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.RecipeAction] inside the given [block]
*/
public fun action(block: aws.sdk.kotlin.services.glue.model.RecipeAction.Builder.() -> kotlin.Unit) {
this.action = aws.sdk.kotlin.services.glue.model.RecipeAction.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}