commonMain.aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataRequest.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 RemoveSchemaVersionMetadataRequest private constructor(builder: Builder) {
/**
* The value of the metadata key.
*/
public val metadataKeyValue: aws.sdk.kotlin.services.glue.model.MetadataKeyValuePair? = builder.metadataKeyValue
/**
* A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
*/
public val schemaId: aws.sdk.kotlin.services.glue.model.SchemaId? = builder.schemaId
/**
* The unique version ID of the schema version.
*/
public val schemaVersionId: kotlin.String? = builder.schemaVersionId
/**
* The version number of the schema.
*/
public val schemaVersionNumber: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber? = builder.schemaVersionNumber
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveSchemaVersionMetadataRequest(")
append("metadataKeyValue=$metadataKeyValue,")
append("schemaId=$schemaId,")
append("schemaVersionId=$schemaVersionId,")
append("schemaVersionNumber=$schemaVersionNumber")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metadataKeyValue?.hashCode() ?: 0
result = 31 * result + (schemaId?.hashCode() ?: 0)
result = 31 * result + (schemaVersionId?.hashCode() ?: 0)
result = 31 * result + (schemaVersionNumber?.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 RemoveSchemaVersionMetadataRequest
if (metadataKeyValue != other.metadataKeyValue) return false
if (schemaId != other.schemaId) return false
if (schemaVersionId != other.schemaVersionId) return false
if (schemaVersionNumber != other.schemaVersionNumber) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The value of the metadata key.
*/
public var metadataKeyValue: aws.sdk.kotlin.services.glue.model.MetadataKeyValuePair? = null
/**
* A wrapper structure that may contain the schema name and Amazon Resource Name (ARN).
*/
public var schemaId: aws.sdk.kotlin.services.glue.model.SchemaId? = null
/**
* The unique version ID of the schema version.
*/
public var schemaVersionId: kotlin.String? = null
/**
* The version number of the schema.
*/
public var schemaVersionNumber: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataRequest) : this() {
this.metadataKeyValue = x.metadataKeyValue
this.schemaId = x.schemaId
this.schemaVersionId = x.schemaVersionId
this.schemaVersionNumber = x.schemaVersionNumber
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.RemoveSchemaVersionMetadataRequest = RemoveSchemaVersionMetadataRequest(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.MetadataKeyValuePair] inside the given [block]
*/
public fun metadataKeyValue(block: aws.sdk.kotlin.services.glue.model.MetadataKeyValuePair.Builder.() -> kotlin.Unit) {
this.metadataKeyValue = aws.sdk.kotlin.services.glue.model.MetadataKeyValuePair.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.SchemaId] inside the given [block]
*/
public fun schemaId(block: aws.sdk.kotlin.services.glue.model.SchemaId.Builder.() -> kotlin.Unit) {
this.schemaId = aws.sdk.kotlin.services.glue.model.SchemaId.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.SchemaVersionNumber] inside the given [block]
*/
public fun schemaVersionNumber(block: aws.sdk.kotlin.services.glue.model.SchemaVersionNumber.Builder.() -> kotlin.Unit) {
this.schemaVersionNumber = aws.sdk.kotlin.services.glue.model.SchemaVersionNumber.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}