commonMain.aws.sdk.kotlin.services.glue.model.PutSchemaVersionMetadataResponse.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 PutSchemaVersionMetadataResponse private constructor(builder: Builder) {
/**
* The latest version of the schema.
*/
public val latestVersion: kotlin.Boolean = builder.latestVersion
/**
* The metadata key.
*/
public val metadataKey: kotlin.String? = builder.metadataKey
/**
* The value of the metadata key.
*/
public val metadataValue: kotlin.String? = builder.metadataValue
/**
* The name for the registry.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The Amazon Resource Name (ARN) for the schema.
*/
public val schemaArn: kotlin.String? = builder.schemaArn
/**
* The name for the schema.
*/
public val schemaName: kotlin.String? = builder.schemaName
/**
* The unique version ID of the schema version.
*/
public val schemaVersionId: kotlin.String? = builder.schemaVersionId
/**
* 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.PutSchemaVersionMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutSchemaVersionMetadataResponse(")
append("latestVersion=$latestVersion,")
append("metadataKey=$metadataKey,")
append("metadataValue=$metadataValue,")
append("registryName=$registryName,")
append("schemaArn=$schemaArn,")
append("schemaName=$schemaName,")
append("schemaVersionId=$schemaVersionId,")
append("versionNumber=$versionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestVersion.hashCode()
result = 31 * result + (metadataKey?.hashCode() ?: 0)
result = 31 * result + (metadataValue?.hashCode() ?: 0)
result = 31 * result + (registryName?.hashCode() ?: 0)
result = 31 * result + (schemaArn?.hashCode() ?: 0)
result = 31 * result + (schemaName?.hashCode() ?: 0)
result = 31 * result + (schemaVersionId?.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 PutSchemaVersionMetadataResponse
if (latestVersion != other.latestVersion) return false
if (metadataKey != other.metadataKey) return false
if (metadataValue != other.metadataValue) return false
if (registryName != other.registryName) return false
if (schemaArn != other.schemaArn) return false
if (schemaName != other.schemaName) return false
if (schemaVersionId != other.schemaVersionId) return false
if (versionNumber != other.versionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.PutSchemaVersionMetadataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The latest version of the schema.
*/
public var latestVersion: kotlin.Boolean = false
/**
* The metadata key.
*/
public var metadataKey: kotlin.String? = null
/**
* The value of the metadata key.
*/
public var metadataValue: kotlin.String? = null
/**
* The name for the registry.
*/
public var registryName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) for the schema.
*/
public var schemaArn: kotlin.String? = null
/**
* The name for the schema.
*/
public var schemaName: kotlin.String? = null
/**
* The unique version ID of the schema version.
*/
public var schemaVersionId: kotlin.String? = null
/**
* 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.PutSchemaVersionMetadataResponse) : this() {
this.latestVersion = x.latestVersion
this.metadataKey = x.metadataKey
this.metadataValue = x.metadataValue
this.registryName = x.registryName
this.schemaArn = x.schemaArn
this.schemaName = x.schemaName
this.schemaVersionId = x.schemaVersionId
this.versionNumber = x.versionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.PutSchemaVersionMetadataResponse = PutSchemaVersionMetadataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}