commonMain.aws.sdk.kotlin.services.glue.model.TableVersionError.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An error record for table-version operations.
*/
public class TableVersionError private constructor(builder: Builder) {
/**
* The details about the error.
*/
public val errorDetail: aws.sdk.kotlin.services.glue.model.ErrorDetail? = builder.errorDetail
/**
* The name of the table in question.
*/
public val tableName: kotlin.String? = builder.tableName
/**
* The ID value of the version in question. A `VersionID` is a string representation of an integer. Each version is incremented by 1.
*/
public val versionId: kotlin.String? = builder.versionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TableVersionError = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TableVersionError(")
append("errorDetail=$errorDetail,")
append("tableName=$tableName,")
append("versionId=$versionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorDetail?.hashCode() ?: 0
result = 31 * result + (tableName?.hashCode() ?: 0)
result = 31 * result + (versionId?.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 TableVersionError
if (errorDetail != other.errorDetail) return false
if (tableName != other.tableName) return false
if (versionId != other.versionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TableVersionError = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The details about the error.
*/
public var errorDetail: aws.sdk.kotlin.services.glue.model.ErrorDetail? = null
/**
* The name of the table in question.
*/
public var tableName: kotlin.String? = null
/**
* The ID value of the version in question. A `VersionID` is a string representation of an integer. Each version is incremented by 1.
*/
public var versionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TableVersionError) : this() {
this.errorDetail = x.errorDetail
this.tableName = x.tableName
this.versionId = x.versionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TableVersionError = TableVersionError(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.ErrorDetail] inside the given [block]
*/
public fun errorDetail(block: aws.sdk.kotlin.services.glue.model.ErrorDetail.Builder.() -> kotlin.Unit) {
this.errorDetail = aws.sdk.kotlin.services.glue.model.ErrorDetail.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}