
commonMain.aws.sdk.kotlin.services.connectcases.model.BatchGetFieldResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.connectcases.model
public class BatchGetFieldResponse private constructor(builder: Builder) {
/**
* A list of field errors.
*/
public val errors: List = requireNotNull(builder.errors) { "A non-null value must be provided for errors" }
/**
* A list of detailed field information.
*/
public val fields: List = requireNotNull(builder.fields) { "A non-null value must be provided for fields" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.connectcases.model.BatchGetFieldResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetFieldResponse(")
append("errors=$errors,")
append("fields=$fields")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errors.hashCode()
result = 31 * result + (fields.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 BatchGetFieldResponse
if (errors != other.errors) return false
if (fields != other.fields) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.connectcases.model.BatchGetFieldResponse = Builder(this).apply(block).build()
public class Builder {
/**
* A list of field errors.
*/
public var errors: List? = null
/**
* A list of detailed field information.
*/
public var fields: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.connectcases.model.BatchGetFieldResponse) : this() {
this.errors = x.errors
this.fields = x.fields
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.connectcases.model.BatchGetFieldResponse = BatchGetFieldResponse(this)
internal fun correctErrors(): Builder {
if (errors == null) errors = emptyList()
if (fields == null) fields = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy