commonMain.aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataResponse.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
public class RemoveSchemaVersionMetadataResponse 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 of the registry.
*/
public val registryName: kotlin.String? = builder.registryName
/**
* The Amazon Resource Name (ARN) of the schema.
*/
public val schemaArn: kotlin.String? = builder.schemaArn
/**
* The name of the schema.
*/
public val schemaName: kotlin.String? = builder.schemaName
/**
* The version ID for 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.RemoveSchemaVersionMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveSchemaVersionMetadataResponse(")
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 RemoveSchemaVersionMetadataResponse
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.RemoveSchemaVersionMetadataResponse = 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 of the registry.
*/
public var registryName: kotlin.String? = null
/**
* The Amazon Resource Name (ARN) of the schema.
*/
public var schemaArn: kotlin.String? = null
/**
* The name of the schema.
*/
public var schemaName: kotlin.String? = null
/**
* The version ID for 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.RemoveSchemaVersionMetadataResponse) : 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.RemoveSchemaVersionMetadataResponse = RemoveSchemaVersionMetadataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}