
commonMain.aws.sdk.kotlin.services.databrew.model.CreateRecipeRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
public class CreateRecipeRequest private constructor(builder: Builder) {
/**
* A description for the recipe.
*/
public val description: kotlin.String? = builder.description
/**
* A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
public val name: kotlin.String? = builder.name
/**
* An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.
*/
public val steps: List? = builder.steps
/**
* Metadata tags to apply to this recipe.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.CreateRecipeRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateRecipeRequest(")
append("description=$description,")
append("name=$name,")
append("steps=$steps,")
append("tags=$tags)")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (steps?.hashCode() ?: 0)
result = 31 * result + (tags?.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 CreateRecipeRequest
if (description != other.description) return false
if (name != other.name) return false
if (steps != other.steps) return false
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.CreateRecipeRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A description for the recipe.
*/
public var description: kotlin.String? = null
/**
* A unique name for the recipe. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
public var name: kotlin.String? = null
/**
* An array containing the steps to be performed by the recipe. Each recipe step consists of one recipe action and (optionally) an array of condition expressions.
*/
public var steps: List? = null
/**
* Metadata tags to apply to this recipe.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.CreateRecipeRequest) : this() {
this.description = x.description
this.name = x.name
this.steps = x.steps
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.CreateRecipeRequest = CreateRecipeRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy