commonMain.aws.sdk.kotlin.services.databrew.model.Recipe.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of databrew-jvm Show documentation
Show all versions of databrew-jvm Show documentation
The AWS Kotlin client for DataBrew
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.databrew.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Represents one or more actions to be performed on a DataBrew dataset.
*/
public class Recipe private constructor(builder: Builder) {
/**
* The date and time that the recipe was created.
*/
public val createDate: aws.smithy.kotlin.runtime.time.Instant? = builder.createDate
/**
* The Amazon Resource Name (ARN) of the user who created the recipe.
*/
public val createdBy: kotlin.String? = builder.createdBy
/**
* The description of the recipe.
*/
public val description: kotlin.String? = builder.description
/**
* The Amazon Resource Name (ARN) of the user who last modified the recipe.
*/
public val lastModifiedBy: kotlin.String? = builder.lastModifiedBy
/**
* The last modification date and time of the recipe.
*/
public val lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedDate
/**
* The unique name for the recipe.
*/
public val name: kotlin.String = requireNotNull(builder.name) { "A non-null value must be provided for name" }
/**
* The name of the project that the recipe is associated with.
*/
public val projectName: kotlin.String? = builder.projectName
/**
* The Amazon Resource Name (ARN) of the user who published the recipe.
*/
public val publishedBy: kotlin.String? = builder.publishedBy
/**
* The date and time when the recipe was published.
*/
public val publishedDate: aws.smithy.kotlin.runtime.time.Instant? = builder.publishedDate
/**
* The identifier for the version for the recipe. Must be one of the following:
* + Numeric version (`X.Y`) - `X` and `Y` stand for major and minor version numbers. The maximum length of each is 6 digits, and neither can be negative values. Both `X` and `Y` are required, and "0.0" isn't a valid version.
* + `LATEST_WORKING` - the most recent valid version being developed in a DataBrew project.
* + `LATEST_PUBLISHED` - the most recent published version.
*/
public val recipeVersion: kotlin.String? = builder.recipeVersion
/**
* The Amazon Resource Name (ARN) for the recipe.
*/
public val resourceArn: kotlin.String? = builder.resourceArn
/**
* A list of steps that are defined by the recipe.
*/
public val steps: List? = builder.steps
/**
* Metadata tags that have been applied to the recipe.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.Recipe = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Recipe(")
append("createDate=$createDate,")
append("createdBy=$createdBy,")
append("description=$description,")
append("lastModifiedBy=$lastModifiedBy,")
append("lastModifiedDate=$lastModifiedDate,")
append("name=$name,")
append("projectName=$projectName,")
append("publishedBy=$publishedBy,")
append("publishedDate=$publishedDate,")
append("recipeVersion=$recipeVersion,")
append("resourceArn=$resourceArn,")
append("steps=$steps,")
append("tags=$tags")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createDate?.hashCode() ?: 0
result = 31 * result + (createdBy?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (lastModifiedBy?.hashCode() ?: 0)
result = 31 * result + (lastModifiedDate?.hashCode() ?: 0)
result = 31 * result + (name.hashCode())
result = 31 * result + (projectName?.hashCode() ?: 0)
result = 31 * result + (publishedBy?.hashCode() ?: 0)
result = 31 * result + (publishedDate?.hashCode() ?: 0)
result = 31 * result + (recipeVersion?.hashCode() ?: 0)
result = 31 * result + (resourceArn?.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 Recipe
if (createDate != other.createDate) return false
if (createdBy != other.createdBy) return false
if (description != other.description) return false
if (lastModifiedBy != other.lastModifiedBy) return false
if (lastModifiedDate != other.lastModifiedDate) return false
if (name != other.name) return false
if (projectName != other.projectName) return false
if (publishedBy != other.publishedBy) return false
if (publishedDate != other.publishedDate) return false
if (recipeVersion != other.recipeVersion) return false
if (resourceArn != other.resourceArn) 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.Recipe = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The date and time that the recipe was created.
*/
public var createDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The Amazon Resource Name (ARN) of the user who created the recipe.
*/
public var createdBy: kotlin.String? = null
/**
* The description of the recipe.
*/
public var description: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the user who last modified the recipe.
*/
public var lastModifiedBy: kotlin.String? = null
/**
* The last modification date and time of the recipe.
*/
public var lastModifiedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The unique name for the recipe.
*/
public var name: kotlin.String? = null
/**
* The name of the project that the recipe is associated with.
*/
public var projectName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the user who published the recipe.
*/
public var publishedBy: kotlin.String? = null
/**
* The date and time when the recipe was published.
*/
public var publishedDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The identifier for the version for the recipe. Must be one of the following:
* + Numeric version (`X.Y`) - `X` and `Y` stand for major and minor version numbers. The maximum length of each is 6 digits, and neither can be negative values. Both `X` and `Y` are required, and "0.0" isn't a valid version.
* + `LATEST_WORKING` - the most recent valid version being developed in a DataBrew project.
* + `LATEST_PUBLISHED` - the most recent published version.
*/
public var recipeVersion: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the recipe.
*/
public var resourceArn: kotlin.String? = null
/**
* A list of steps that are defined by the recipe.
*/
public var steps: List? = null
/**
* Metadata tags that have been applied to the recipe.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.Recipe) : this() {
this.createDate = x.createDate
this.createdBy = x.createdBy
this.description = x.description
this.lastModifiedBy = x.lastModifiedBy
this.lastModifiedDate = x.lastModifiedDate
this.name = x.name
this.projectName = x.projectName
this.publishedBy = x.publishedBy
this.publishedDate = x.publishedDate
this.recipeVersion = x.recipeVersion
this.resourceArn = x.resourceArn
this.steps = x.steps
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.Recipe = Recipe(this)
internal fun correctErrors(): Builder {
if (name == null) name = ""
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy