commonMain.aws.sdk.kotlin.services.databrew.model.FilesLimit.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
/**
* Represents a limit imposed on number of Amazon S3 files that should be selected for a dataset from a connected Amazon S3 path.
*/
public class FilesLimit private constructor(builder: Builder) {
/**
* The number of Amazon S3 files to select.
*/
public val maxFiles: kotlin.Int = requireNotNull(builder.maxFiles) { "A non-null value must be provided for maxFiles" }
/**
* A criteria to use for Amazon S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Another possible value is ASCENDING.
*/
public val order: aws.sdk.kotlin.services.databrew.model.Order? = builder.order
/**
* A criteria to use for Amazon S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
*/
public val orderedBy: aws.sdk.kotlin.services.databrew.model.OrderedBy? = builder.orderedBy
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.FilesLimit = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FilesLimit(")
append("maxFiles=$maxFiles,")
append("order=$order,")
append("orderedBy=$orderedBy")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = maxFiles
result = 31 * result + (order?.hashCode() ?: 0)
result = 31 * result + (orderedBy?.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 FilesLimit
if (maxFiles != other.maxFiles) return false
if (order != other.order) return false
if (orderedBy != other.orderedBy) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.FilesLimit = Builder(this).apply(block).build()
public class Builder {
/**
* The number of Amazon S3 files to select.
*/
public var maxFiles: kotlin.Int? = null
/**
* A criteria to use for Amazon S3 files sorting before their selection. By default uses DESCENDING order, i.e. most recent files are selected first. Another possible value is ASCENDING.
*/
public var order: aws.sdk.kotlin.services.databrew.model.Order? = null
/**
* A criteria to use for Amazon S3 files sorting before their selection. By default uses LAST_MODIFIED_DATE as a sorting criteria. Currently it's the only allowed value.
*/
public var orderedBy: aws.sdk.kotlin.services.databrew.model.OrderedBy? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.FilesLimit) : this() {
this.maxFiles = x.maxFiles
this.order = x.order
this.orderedBy = x.orderedBy
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.FilesLimit = FilesLimit(this)
internal fun correctErrors(): Builder {
if (maxFiles == null) maxFiles = 0
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy