commonMain.aws.sdk.kotlin.services.glue.model.BatchGetDataQualityResultResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetDataQualityResultResponse private constructor(builder: Builder) {
/**
* A list of `DataQualityResult` objects representing the data quality results.
*/
public val results: List = requireNotNull(builder.results) { "A non-null value must be provided for results" }
/**
* A list of result IDs for which results were not found.
*/
public val resultsNotFound: List? = builder.resultsNotFound
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.BatchGetDataQualityResultResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetDataQualityResultResponse(")
append("results=$results,")
append("resultsNotFound=$resultsNotFound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = results.hashCode()
result = 31 * result + (resultsNotFound?.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 BatchGetDataQualityResultResponse
if (results != other.results) return false
if (resultsNotFound != other.resultsNotFound) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.BatchGetDataQualityResultResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of `DataQualityResult` objects representing the data quality results.
*/
public var results: List? = null
/**
* A list of result IDs for which results were not found.
*/
public var resultsNotFound: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.BatchGetDataQualityResultResponse) : this() {
this.results = x.results
this.resultsNotFound = x.resultsNotFound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.BatchGetDataQualityResultResponse = BatchGetDataQualityResultResponse(this)
internal fun correctErrors(): Builder {
if (results == null) results = emptyList()
return this
}
}
}