commonMain.aws.sdk.kotlin.services.glue.model.RecipeAction.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
/**
* Actions defined in the Glue Studio data preparation recipe node.
*/
public class RecipeAction private constructor(builder: Builder) {
/**
* The operation of the recipe action.
*/
public val operation: kotlin.String = requireNotNull(builder.operation) { "A non-null value must be provided for operation" }
/**
* The parameters of the recipe action.
*/
public val parameters: Map? = builder.parameters
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RecipeAction = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RecipeAction(")
append("operation=$operation,")
append("parameters=$parameters")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = operation.hashCode()
result = 31 * result + (parameters?.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 RecipeAction
if (operation != other.operation) return false
if (parameters != other.parameters) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RecipeAction = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The operation of the recipe action.
*/
public var operation: kotlin.String? = null
/**
* The parameters of the recipe action.
*/
public var parameters: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RecipeAction) : this() {
this.operation = x.operation
this.parameters = x.parameters
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RecipeAction = RecipeAction(this)
internal fun correctErrors(): Builder {
if (operation == null) operation = ""
return this
}
}
}