All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.databrew.model.RecipeAction.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.databrew.model



/**
 * Represents a transformation and associated parameters that are used to apply a change to a DataBrew dataset. For more information, see [Recipe actions reference](https://docs.aws.amazon.com/databrew/latest/dg/recipe-actions-reference.html).
 */
public class RecipeAction private constructor(builder: Builder) {
    /**
     * The name of a valid DataBrew transformation to be performed on the data.
     */
    public val operation: kotlin.String = requireNotNull(builder.operation) { "A non-null value must be provided for operation" }
    /**
     * Contextual parameters for the transformation.
     */
    public val parameters: Map? = builder.parameters

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.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.databrew.model.RecipeAction = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The name of a valid DataBrew transformation to be performed on the data.
         */
        public var operation: kotlin.String? = null
        /**
         * Contextual parameters for the transformation.
         */
        public var parameters: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.RecipeAction) : this() {
            this.operation = x.operation
            this.parameters = x.parameters
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.databrew.model.RecipeAction = RecipeAction(this)

        internal fun correctErrors(): Builder {
            if (operation == null) operation = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy