commonMain.aws.sdk.kotlin.services.glue.model.DeleteSchemaVersionsResponse.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 DeleteSchemaVersionsResponse private constructor(builder: Builder) {
/**
* A list of `SchemaVersionErrorItem` objects, each containing an error and schema version.
*/
public val schemaVersionErrors: List? = builder.schemaVersionErrors
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.DeleteSchemaVersionsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteSchemaVersionsResponse(")
append("schemaVersionErrors=$schemaVersionErrors")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = schemaVersionErrors?.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 DeleteSchemaVersionsResponse
if (schemaVersionErrors != other.schemaVersionErrors) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.DeleteSchemaVersionsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A list of `SchemaVersionErrorItem` objects, each containing an error and schema version.
*/
public var schemaVersionErrors: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.DeleteSchemaVersionsResponse) : this() {
this.schemaVersionErrors = x.schemaVersionErrors
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.DeleteSchemaVersionsResponse = DeleteSchemaVersionsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}