
commonMain.aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cognitosync-jvm Show documentation
Show all versions of cognitosync-jvm Show documentation
The AWS Kotlin client for Cognito Sync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cognitosync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Response to a successful DeleteDataset request.
*/
public class DeleteDatasetResponse private constructor(builder: Builder) {
/**
* A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs.
*/
public val dataset: aws.sdk.kotlin.services.cognitosync.model.Dataset? = builder.dataset
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteDatasetResponse(")
append("dataset=$dataset")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dataset?.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 DeleteDatasetResponse
if (dataset != other.dataset) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A collection of data for an identity pool. An identity pool can have multiple datasets. A dataset is per identity and can be general or associated with a particular entity in an application (like a saved game). Datasets are automatically created if they don't exist. Data is synced by dataset, and a dataset can hold up to 1MB of key-value pairs.
*/
public var dataset: aws.sdk.kotlin.services.cognitosync.model.Dataset? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetResponse) : this() {
this.dataset = x.dataset
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitosync.model.DeleteDatasetResponse = DeleteDatasetResponse(this)
/**
* construct an [aws.sdk.kotlin.services.cognitosync.model.Dataset] inside the given [block]
*/
public fun dataset(block: aws.sdk.kotlin.services.cognitosync.model.Dataset.Builder.() -> kotlin.Unit) {
this.dataset = aws.sdk.kotlin.services.cognitosync.model.Dataset.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy