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

commonMain.aws.sdk.kotlin.services.databrew.model.CreateRecipeJobRequest.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

import aws.smithy.kotlin.runtime.SdkDsl

public class CreateRecipeJobRequest private constructor(builder: Builder) {
    /**
     * One or more artifacts that represent the Glue Data Catalog output from running the job.
     */
    public val dataCatalogOutputs: List? = builder.dataCatalogOutputs
    /**
     * Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job to write to.
     */
    public val databaseOutputs: List? = builder.databaseOutputs
    /**
     * The name of the dataset that this job processes.
     */
    public val datasetName: kotlin.String? = builder.datasetName
    /**
     * The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
     */
    public val encryptionKeyArn: kotlin.String? = builder.encryptionKeyArn
    /**
     * The encryption mode for the job, which can be one of the following:
     * + `SSE-KMS` - Server-side encryption with keys managed by KMS.
     * + `SSE-S3` - Server-side encryption with keys managed by Amazon S3.
     */
    public val encryptionMode: aws.sdk.kotlin.services.databrew.model.EncryptionMode? = builder.encryptionMode
    /**
     * Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.
     */
    public val logSubscription: aws.sdk.kotlin.services.databrew.model.LogSubscription? = builder.logSubscription
    /**
     * The maximum number of nodes that DataBrew can consume when the job processes data.
     */
    public val maxCapacity: kotlin.Int? = builder.maxCapacity
    /**
     * The maximum number of times to retry the job after a job run fails.
     */
    public val maxRetries: kotlin.Int? = builder.maxRetries
    /**
     * A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
     */
    public val name: kotlin.String? = builder.name
    /**
     * One or more artifacts that represent the output from running the job.
     */
    public val outputs: List? = builder.outputs
    /**
     * Either the name of an existing project, or a combination of a recipe and a dataset to associate with the recipe.
     */
    public val projectName: kotlin.String? = builder.projectName
    /**
     * Represents the name and version of a DataBrew recipe.
     */
    public val recipeReference: aws.sdk.kotlin.services.databrew.model.RecipeReference? = builder.recipeReference
    /**
     * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
     */
    public val roleArn: kotlin.String? = builder.roleArn
    /**
     * Metadata tags to apply to this job.
     */
    public val tags: Map? = builder.tags
    /**
     * The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of `TIMEOUT`.
     */
    public val timeout: kotlin.Int? = builder.timeout

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.CreateRecipeJobRequest = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("CreateRecipeJobRequest(")
        append("dataCatalogOutputs=$dataCatalogOutputs,")
        append("databaseOutputs=$databaseOutputs,")
        append("datasetName=$datasetName,")
        append("encryptionKeyArn=$encryptionKeyArn,")
        append("encryptionMode=$encryptionMode,")
        append("logSubscription=$logSubscription,")
        append("maxCapacity=$maxCapacity,")
        append("maxRetries=$maxRetries,")
        append("name=$name,")
        append("outputs=$outputs,")
        append("projectName=$projectName,")
        append("recipeReference=$recipeReference,")
        append("roleArn=$roleArn,")
        append("tags=$tags,")
        append("timeout=$timeout")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = dataCatalogOutputs?.hashCode() ?: 0
        result = 31 * result + (databaseOutputs?.hashCode() ?: 0)
        result = 31 * result + (datasetName?.hashCode() ?: 0)
        result = 31 * result + (encryptionKeyArn?.hashCode() ?: 0)
        result = 31 * result + (encryptionMode?.hashCode() ?: 0)
        result = 31 * result + (logSubscription?.hashCode() ?: 0)
        result = 31 * result + (maxCapacity ?: 0)
        result = 31 * result + (maxRetries ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (outputs?.hashCode() ?: 0)
        result = 31 * result + (projectName?.hashCode() ?: 0)
        result = 31 * result + (recipeReference?.hashCode() ?: 0)
        result = 31 * result + (roleArn?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (timeout ?: 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 CreateRecipeJobRequest

        if (dataCatalogOutputs != other.dataCatalogOutputs) return false
        if (databaseOutputs != other.databaseOutputs) return false
        if (datasetName != other.datasetName) return false
        if (encryptionKeyArn != other.encryptionKeyArn) return false
        if (encryptionMode != other.encryptionMode) return false
        if (logSubscription != other.logSubscription) return false
        if (maxCapacity != other.maxCapacity) return false
        if (maxRetries != other.maxRetries) return false
        if (name != other.name) return false
        if (outputs != other.outputs) return false
        if (projectName != other.projectName) return false
        if (recipeReference != other.recipeReference) return false
        if (roleArn != other.roleArn) return false
        if (tags != other.tags) return false
        if (timeout != other.timeout) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.CreateRecipeJobRequest = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * One or more artifacts that represent the Glue Data Catalog output from running the job.
         */
        public var dataCatalogOutputs: List? = null
        /**
         * Represents a list of JDBC database output objects which defines the output destination for a DataBrew recipe job to write to.
         */
        public var databaseOutputs: List? = null
        /**
         * The name of the dataset that this job processes.
         */
        public var datasetName: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of an encryption key that is used to protect the job.
         */
        public var encryptionKeyArn: kotlin.String? = null
        /**
         * The encryption mode for the job, which can be one of the following:
         * + `SSE-KMS` - Server-side encryption with keys managed by KMS.
         * + `SSE-S3` - Server-side encryption with keys managed by Amazon S3.
         */
        public var encryptionMode: aws.sdk.kotlin.services.databrew.model.EncryptionMode? = null
        /**
         * Enables or disables Amazon CloudWatch logging for the job. If logging is enabled, CloudWatch writes one log stream for each job run.
         */
        public var logSubscription: aws.sdk.kotlin.services.databrew.model.LogSubscription? = null
        /**
         * The maximum number of nodes that DataBrew can consume when the job processes data.
         */
        public var maxCapacity: kotlin.Int? = null
        /**
         * The maximum number of times to retry the job after a job run fails.
         */
        public var maxRetries: kotlin.Int? = null
        /**
         * A unique name for the job. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
         */
        public var name: kotlin.String? = null
        /**
         * One or more artifacts that represent the output from running the job.
         */
        public var outputs: List? = null
        /**
         * Either the name of an existing project, or a combination of a recipe and a dataset to associate with the recipe.
         */
        public var projectName: kotlin.String? = null
        /**
         * Represents the name and version of a DataBrew recipe.
         */
        public var recipeReference: aws.sdk.kotlin.services.databrew.model.RecipeReference? = null
        /**
         * The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) role to be assumed when DataBrew runs the job.
         */
        public var roleArn: kotlin.String? = null
        /**
         * Metadata tags to apply to this job.
         */
        public var tags: Map? = null
        /**
         * The job's timeout in minutes. A job that attempts to run longer than this timeout period ends with a status of `TIMEOUT`.
         */
        public var timeout: kotlin.Int? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.CreateRecipeJobRequest) : this() {
            this.dataCatalogOutputs = x.dataCatalogOutputs
            this.databaseOutputs = x.databaseOutputs
            this.datasetName = x.datasetName
            this.encryptionKeyArn = x.encryptionKeyArn
            this.encryptionMode = x.encryptionMode
            this.logSubscription = x.logSubscription
            this.maxCapacity = x.maxCapacity
            this.maxRetries = x.maxRetries
            this.name = x.name
            this.outputs = x.outputs
            this.projectName = x.projectName
            this.recipeReference = x.recipeReference
            this.roleArn = x.roleArn
            this.tags = x.tags
            this.timeout = x.timeout
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.databrew.model.RecipeReference] inside the given [block]
         */
        public fun recipeReference(block: aws.sdk.kotlin.services.databrew.model.RecipeReference.Builder.() -> kotlin.Unit) {
            this.recipeReference = aws.sdk.kotlin.services.databrew.model.RecipeReference.invoke(block)
        }

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy