
commonMain.aws.sdk.kotlin.services.qconnect.model.DataSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.qconnect.model
/**
* Summary of the data.
*/
public class DataSummary private constructor(builder: Builder) {
/**
* Details about the data.
*/
public val details: aws.sdk.kotlin.services.qconnect.model.DataDetails? = builder.details
/**
* Reference information about the content.
*/
public val reference: aws.sdk.kotlin.services.qconnect.model.DataReference? = builder.reference
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.qconnect.model.DataSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DataSummary(")
append("details=$details,")
append("reference=$reference")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = details?.hashCode() ?: 0
result = 31 * result + (reference?.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 DataSummary
if (details != other.details) return false
if (reference != other.reference) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.qconnect.model.DataSummary = Builder(this).apply(block).build()
public class Builder {
/**
* Details about the data.
*/
public var details: aws.sdk.kotlin.services.qconnect.model.DataDetails? = null
/**
* Reference information about the content.
*/
public var reference: aws.sdk.kotlin.services.qconnect.model.DataReference? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.qconnect.model.DataSummary) : this() {
this.details = x.details
this.reference = x.reference
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.qconnect.model.DataSummary = DataSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy