commonMain.aws.sdk.kotlin.services.databrew.model.CreateDatasetRequest.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
public class CreateDatasetRequest 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 created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
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
/**
* Metadata tags to apply to this dataset.
*/
public val tags: Map? = builder.tags
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.databrew.model.CreateDatasetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CreateDatasetRequest(")
append("format=$format,")
append("formatOptions=$formatOptions,")
append("input=$input,")
append("name=$name,")
append("pathOptions=$pathOptions,")
append("tags=$tags)")
}
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)
result = 31 * result + (tags?.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 CreateDatasetRequest
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
if (tags != other.tags) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.databrew.model.CreateDatasetRequest = 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 created. Valid characters are alphanumeric (A-Z, a-z, 0-9), hyphen (-), period (.), and space.
*/
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
/**
* Metadata tags to apply to this dataset.
*/
public var tags: Map? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.databrew.model.CreateDatasetRequest) : this() {
this.format = x.format
this.formatOptions = x.formatOptions
this.input = x.input
this.name = x.name
this.pathOptions = x.pathOptions
this.tags = x.tags
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.databrew.model.CreateDatasetRequest = CreateDatasetRequest(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)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy