
commonMain.aws.sdk.kotlin.services.cognitosync.model.DescribeDatasetResponse.kt Maven / Gradle / Ivy
// 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 DescribeDataset request.
*/
public class DescribeDatasetResponse private constructor(builder: Builder) {
/**
* Meta data for a collection of data for an identity. An identity can have multiple datasets. A dataset 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.DescribeDatasetResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DescribeDatasetResponse(")
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 DescribeDatasetResponse
if (dataset != other.dataset) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cognitosync.model.DescribeDatasetResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Meta data for a collection of data for an identity. An identity can have multiple datasets. A dataset 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.DescribeDatasetResponse) : this() {
this.dataset = x.dataset
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cognitosync.model.DescribeDatasetResponse = DescribeDatasetResponse(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