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

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



/**
 * Represents a set of options that define how DataBrew selects files for a given Amazon S3 path in a dataset.
 */
public class PathOptions private constructor(builder: Builder) {
    /**
     * If provided, this structure imposes a limit on a number of files that should be selected.
     */
    public val filesLimit: aws.sdk.kotlin.services.databrew.model.FilesLimit? = builder.filesLimit
    /**
     * If provided, this structure defines a date range for matching Amazon S3 objects based on their LastModifiedDate attribute in Amazon S3.
     */
    public val lastModifiedDateCondition: aws.sdk.kotlin.services.databrew.model.FilterExpression? = builder.lastModifiedDateCondition
    /**
     * A structure that maps names of parameters used in the Amazon S3 path of a dataset to their definitions.
     */
    public val parameters: Map? = builder.parameters

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

    override fun toString(): kotlin.String = buildString {
        append("PathOptions(")
        append("filesLimit=$filesLimit,")
        append("lastModifiedDateCondition=$lastModifiedDateCondition,")
        append("parameters=$parameters")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = filesLimit?.hashCode() ?: 0
        result = 31 * result + (lastModifiedDateCondition?.hashCode() ?: 0)
        result = 31 * result + (parameters?.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 PathOptions

        if (filesLimit != other.filesLimit) return false
        if (lastModifiedDateCondition != other.lastModifiedDateCondition) return false
        if (parameters != other.parameters) return false

        return true
    }

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

    public class Builder {
        /**
         * If provided, this structure imposes a limit on a number of files that should be selected.
         */
        public var filesLimit: aws.sdk.kotlin.services.databrew.model.FilesLimit? = null
        /**
         * If provided, this structure defines a date range for matching Amazon S3 objects based on their LastModifiedDate attribute in Amazon S3.
         */
        public var lastModifiedDateCondition: aws.sdk.kotlin.services.databrew.model.FilterExpression? = null
        /**
         * A structure that maps names of parameters used in the Amazon S3 path of a dataset to their definitions.
         */
        public var parameters: Map? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.databrew.model.PathOptions) : this() {
            this.filesLimit = x.filesLimit
            this.lastModifiedDateCondition = x.lastModifiedDateCondition
            this.parameters = x.parameters
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy