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

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



public class UpdateDatasetRequest private constructor(builder: Builder) {
    /**
     * The file format of a dataset that is created from an Amazon S3 file or folder.
     */
    public val format: aws.sdk.kotlin.services.databrew.model.InputFormat? = builder.format
    /**
     * Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
     */
    public val formatOptions: aws.sdk.kotlin.services.databrew.model.FormatOptions? = builder.formatOptions
    /**
     * Represents information on how DataBrew can find data, in either the Glue Data Catalog or Amazon S3.
     */
    public val input: aws.sdk.kotlin.services.databrew.model.Input? = builder.input
    /**
     * The name of the dataset to be updated.
     */
    public val name: kotlin.String? = builder.name
    /**
     * A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
     */
    public val pathOptions: aws.sdk.kotlin.services.databrew.model.PathOptions? = builder.pathOptions

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateDatasetRequest(")
        append("format=$format,")
        append("formatOptions=$formatOptions,")
        append("input=$input,")
        append("name=$name,")
        append("pathOptions=$pathOptions")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = format?.hashCode() ?: 0
        result = 31 * result + (formatOptions?.hashCode() ?: 0)
        result = 31 * result + (input?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (pathOptions?.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 UpdateDatasetRequest

        if (format != other.format) return false
        if (formatOptions != other.formatOptions) return false
        if (input != other.input) return false
        if (name != other.name) return false
        if (pathOptions != other.pathOptions) return false

        return true
    }

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

    public class Builder {
        /**
         * The file format of a dataset that is created from an Amazon S3 file or folder.
         */
        public var format: aws.sdk.kotlin.services.databrew.model.InputFormat? = null
        /**
         * Represents a set of options that define the structure of either comma-separated value (CSV), Excel, or JSON input.
         */
        public var formatOptions: aws.sdk.kotlin.services.databrew.model.FormatOptions? = null
        /**
         * Represents information on how DataBrew can find data, in either the Glue Data Catalog or Amazon S3.
         */
        public var input: aws.sdk.kotlin.services.databrew.model.Input? = null
        /**
         * The name of the dataset to be updated.
         */
        public var name: kotlin.String? = null
        /**
         * A set of options that defines how DataBrew interprets an Amazon S3 path of the dataset.
         */
        public var pathOptions: aws.sdk.kotlin.services.databrew.model.PathOptions? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.UpdateDatasetRequest) : this() {
            this.format = x.format
            this.formatOptions = x.formatOptions
            this.input = x.input
            this.name = x.name
            this.pathOptions = x.pathOptions
        }

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

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

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy