commonMain.aws.sdk.kotlin.services.glue.model.RegisterSchemaVersionResponse.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
public class RegisterSchemaVersionResponse private constructor(builder: Builder) {
/**
* The unique ID that represents the version of this schema.
*/
public val schemaVersionId: kotlin.String? = builder.schemaVersionId
/**
* The status of the schema version.
*/
public val status: aws.sdk.kotlin.services.glue.model.SchemaVersionStatus? = builder.status
/**
* The version of this schema (for sync flow only, in case this is the first version).
*/
public val versionNumber: kotlin.Long? = builder.versionNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RegisterSchemaVersionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RegisterSchemaVersionResponse(")
append("schemaVersionId=$schemaVersionId,")
append("status=$status,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = schemaVersionId?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
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 RegisterSchemaVersionResponse
if (schemaVersionId != other.schemaVersionId) return false
if (status != other.status) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RegisterSchemaVersionResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The unique ID that represents the version of this schema.
*/
public var schemaVersionId: kotlin.String? = null
/**
* The status of the schema version.
*/
public var status: aws.sdk.kotlin.services.glue.model.SchemaVersionStatus? = null
/**
* The version of this schema (for sync flow only, in case this is the first version).
*/
public var versionNumber: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RegisterSchemaVersionResponse) : this() {
this.schemaVersionId = x.schemaVersionId
this.status = x.status
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RegisterSchemaVersionResponse = RegisterSchemaVersionResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}