commonMain.aws.sdk.kotlin.services.glue.model.SchemaVersionNumber.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
/**
* A structure containing the schema version information.
*/
public class SchemaVersionNumber private constructor(builder: Builder) {
/**
* The latest version available for the schema.
*/
public val latestVersion: kotlin.Boolean = builder.latestVersion
/**
* The version number of the schema.
*/
public val versionNumber: kotlin.Long? = builder.versionNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.SchemaVersionNumber = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SchemaVersionNumber(")
append("latestVersion=$latestVersion,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestVersion.hashCode()
result = 31 * result + (versionNumber?.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 SchemaVersionNumber
if (latestVersion != other.latestVersion) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.SchemaVersionNumber = Builder(this).apply(block).build()
public class Builder {
/**
* The latest version available for the schema.
*/
public var latestVersion: kotlin.Boolean = false
/**
* The version number of the schema.
*/
public var versionNumber: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber) : this() {
this.latestVersion = x.latestVersion
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.SchemaVersionNumber = SchemaVersionNumber(this)
internal fun correctErrors(): Builder {
return this
}
}
}