commonMain.aws.sdk.kotlin.services.cleanrooms.model.BatchGetSchemaAnalysisRuleResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cleanrooms-jvm Show documentation
Show all versions of cleanrooms-jvm Show documentation
The AWS SDK for Kotlin client for CleanRooms
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cleanrooms.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetSchemaAnalysisRuleResponse private constructor(builder: Builder) {
/**
* The retrieved list of analysis rules.
*/
public val analysisRules: List = requireNotNull(builder.analysisRules) { "A non-null value must be provided for analysisRules" }
/**
* Error reasons for schemas that could not be retrieved. One error is returned for every schema that could not be retrieved.
*/
public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cleanrooms.model.BatchGetSchemaAnalysisRuleResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetSchemaAnalysisRuleResponse(")
append("analysisRules=$analysisRules,")
append("errors=$errors")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = analysisRules.hashCode()
result = 31 * result + (errors.hashCode())
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 BatchGetSchemaAnalysisRuleResponse
if (analysisRules != other.analysisRules) return false
if (errors != other.errors) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cleanrooms.model.BatchGetSchemaAnalysisRuleResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The retrieved list of analysis rules.
*/
public var analysisRules: List? = null
/**
* Error reasons for schemas that could not be retrieved. One error is returned for every schema that could not be retrieved.
*/
public var errors: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cleanrooms.model.BatchGetSchemaAnalysisRuleResponse) : this() {
this.analysisRules = x.analysisRules
this.errors = x.errors
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cleanrooms.model.BatchGetSchemaAnalysisRuleResponse = BatchGetSchemaAnalysisRuleResponse(this)
internal fun correctErrors(): Builder {
if (analysisRules == null) analysisRules = emptyList()
if (errors == null) errors = emptyList()
return this
}
}
}