commonMain.aws.sdk.kotlin.services.finspacedata.model.UpdateDatasetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata-jvm Show documentation
Show all versions of finspacedata-jvm Show documentation
The AWS SDK for Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
/**
* The request for an UpdateDataset operation
*/
public class UpdateDatasetRequest private constructor(builder: Builder) {
/**
* The unique resource identifier for a Dataset.
*/
public val alias: kotlin.String? = builder.alias
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* A description for the Dataset.
*/
public val datasetDescription: kotlin.String? = builder.datasetDescription
/**
* The unique identifier for the Dataset to update.
*/
public val datasetId: kotlin.String? = builder.datasetId
/**
* A display title for the Dataset.
*/
public val datasetTitle: kotlin.String? = builder.datasetTitle
/**
* The format in which the Dataset data is structured.
* + `TABULAR` – Data is structured in a tabular format.
* + `NON_TABULAR` – Data is structured in a non-tabular format.
*/
public val kind: aws.sdk.kotlin.services.finspacedata.model.DatasetKind? = builder.kind
/**
* Definition for a schema on a tabular Dataset.
*/
public val schemaDefinition: aws.sdk.kotlin.services.finspacedata.model.SchemaUnion? = builder.schemaDefinition
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.UpdateDatasetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateDatasetRequest(")
append("alias=$alias,")
append("clientToken=$clientToken,")
append("datasetDescription=$datasetDescription,")
append("datasetId=$datasetId,")
append("datasetTitle=$datasetTitle,")
append("kind=$kind,")
append("schemaDefinition=$schemaDefinition")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = alias?.hashCode() ?: 0
result = 31 * result + (clientToken?.hashCode() ?: 0)
result = 31 * result + (datasetDescription?.hashCode() ?: 0)
result = 31 * result + (datasetId?.hashCode() ?: 0)
result = 31 * result + (datasetTitle?.hashCode() ?: 0)
result = 31 * result + (kind?.hashCode() ?: 0)
result = 31 * result + (schemaDefinition?.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 (alias != other.alias) return false
if (clientToken != other.clientToken) return false
if (datasetDescription != other.datasetDescription) return false
if (datasetId != other.datasetId) return false
if (datasetTitle != other.datasetTitle) return false
if (kind != other.kind) return false
if (schemaDefinition != other.schemaDefinition) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.UpdateDatasetRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The unique resource identifier for a Dataset.
*/
public var alias: kotlin.String? = null
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public var clientToken: kotlin.String? = null
/**
* A description for the Dataset.
*/
public var datasetDescription: kotlin.String? = null
/**
* The unique identifier for the Dataset to update.
*/
public var datasetId: kotlin.String? = null
/**
* A display title for the Dataset.
*/
public var datasetTitle: kotlin.String? = null
/**
* The format in which the Dataset data is structured.
* + `TABULAR` – Data is structured in a tabular format.
* + `NON_TABULAR` – Data is structured in a non-tabular format.
*/
public var kind: aws.sdk.kotlin.services.finspacedata.model.DatasetKind? = null
/**
* Definition for a schema on a tabular Dataset.
*/
public var schemaDefinition: aws.sdk.kotlin.services.finspacedata.model.SchemaUnion? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.UpdateDatasetRequest) : this() {
this.alias = x.alias
this.clientToken = x.clientToken
this.datasetDescription = x.datasetDescription
this.datasetId = x.datasetId
this.datasetTitle = x.datasetTitle
this.kind = x.kind
this.schemaDefinition = x.schemaDefinition
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.UpdateDatasetRequest = UpdateDatasetRequest(this)
/**
* construct an [aws.sdk.kotlin.services.finspacedata.model.SchemaUnion] inside the given [block]
*/
public fun schemaDefinition(block: aws.sdk.kotlin.services.finspacedata.model.SchemaUnion.Builder.() -> kotlin.Unit) {
this.schemaDefinition = aws.sdk.kotlin.services.finspacedata.model.SchemaUnion.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy