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

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



/**
 * A sample configuration for profile jobs only, which determines the number of rows on which the profile job is run. If a `JobSample` value isn't provided, the default is used. The default value is CUSTOM_ROWS for the mode parameter and 20,000 for the size parameter.
 */
public class JobSample private constructor(builder: Builder) {
    /**
     * A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
     * + FULL_DATASET - The profile job is run on the entire dataset.
     * + CUSTOM_ROWS - The profile job is run on the number of rows specified in the `Size` parameter.
     */
    public val mode: aws.sdk.kotlin.services.databrew.model.SampleMode? = builder.mode
    /**
     * The `Size` parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
     *
     * Long.MAX_VALUE = 9223372036854775807
     */
    public val size: kotlin.Long? = builder.size

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

    override fun toString(): kotlin.String = buildString {
        append("JobSample(")
        append("mode=$mode,")
        append("size=$size)")
    }

    override fun hashCode(): kotlin.Int {
        var result = mode?.hashCode() ?: 0
        result = 31 * result + (size?.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 JobSample

        if (mode != other.mode) return false
        if (size != other.size) return false

        return true
    }

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

    public class Builder {
        /**
         * A value that determines whether the profile job is run on the entire dataset or a specified number of rows. This value must be one of the following:
         * + FULL_DATASET - The profile job is run on the entire dataset.
         * + CUSTOM_ROWS - The profile job is run on the number of rows specified in the `Size` parameter.
         */
        public var mode: aws.sdk.kotlin.services.databrew.model.SampleMode? = null
        /**
         * The `Size` parameter is only required when the mode is CUSTOM_ROWS. The profile job is run on the specified number of rows. The maximum value for size is Long.MAX_VALUE.
         *
         * Long.MAX_VALUE = 9223372036854775807
         */
        public var size: kotlin.Long? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.JobSample) : this() {
            this.mode = x.mode
            this.size = x.size
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy