commonMain.aws.sdk.kotlin.services.glue.model.StatusDetails.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
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A structure containing information about an asynchronous change to a table.
*/
public class StatusDetails private constructor(builder: Builder) {
/**
* A `Table` object representing the requested changes.
*/
public val requestedChange: aws.sdk.kotlin.services.glue.model.Table? = builder.requestedChange
/**
* A list of `ViewValidation` objects that contain information for an analytical engine to validate a view.
*/
public val viewValidations: List? = builder.viewValidations
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.StatusDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StatusDetails(")
append("requestedChange=$requestedChange,")
append("viewValidations=$viewValidations")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = requestedChange?.hashCode() ?: 0
result = 31 * result + (viewValidations?.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 StatusDetails
if (requestedChange != other.requestedChange) return false
if (viewValidations != other.viewValidations) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.StatusDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A `Table` object representing the requested changes.
*/
public var requestedChange: aws.sdk.kotlin.services.glue.model.Table? = null
/**
* A list of `ViewValidation` objects that contain information for an analytical engine to validate a view.
*/
public var viewValidations: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.StatusDetails) : this() {
this.requestedChange = x.requestedChange
this.viewValidations = x.viewValidations
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.StatusDetails = StatusDetails(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.Table] inside the given [block]
*/
public fun requestedChange(block: aws.sdk.kotlin.services.glue.model.Table.Builder.() -> kotlin.Unit) {
this.requestedChange = aws.sdk.kotlin.services.glue.model.Table.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}