commonMain.aws.sdk.kotlin.services.finspacedata.model.DeleteDatasetRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of finspacedata Show documentation
Show all versions of finspacedata Show documentation
The AWS Kotlin client for finspace data
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.finspacedata.model
/**
* The request for a DeleteDataset operation.
*/
public class DeleteDatasetRequest private constructor(builder: Builder) {
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The unique identifier of the Dataset to be deleted.
*/
public val datasetId: kotlin.String? = requireNotNull(builder.datasetId) { "A non-null value must be provided for datasetId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.finspacedata.model.DeleteDatasetRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDatasetRequest(")
append("clientToken=$clientToken,")
append("datasetId=$datasetId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (datasetId?.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 DeleteDatasetRequest
if (clientToken != other.clientToken) return false
if (datasetId != other.datasetId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.finspacedata.model.DeleteDatasetRequest = Builder(this).apply(block).build()
public class Builder {
/**
* A token that ensures idempotency. This token expires in 10 minutes.
*/
public var clientToken: kotlin.String? = null
/**
* The unique identifier of the Dataset to be deleted.
*/
public var datasetId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.finspacedata.model.DeleteDatasetRequest) : this() {
this.clientToken = x.clientToken
this.datasetId = x.datasetId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.finspacedata.model.DeleteDatasetRequest = DeleteDatasetRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy