commonMain.aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataResponse.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 QuerySchemaVersionMetadataResponse private constructor(builder: Builder) {
/**
* A map of a metadata key and associated values.
*/
public val metadataInfoMap: Map? = builder.metadataInfoMap
/**
* A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
*/
public val nextToken: kotlin.String? = builder.nextToken
/**
* The unique version ID of the schema version.
*/
public val schemaVersionId: kotlin.String? = builder.schemaVersionId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("QuerySchemaVersionMetadataResponse(")
append("metadataInfoMap=$metadataInfoMap,")
append("nextToken=$nextToken,")
append("schemaVersionId=$schemaVersionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metadataInfoMap?.hashCode() ?: 0
result = 31 * result + (nextToken?.hashCode() ?: 0)
result = 31 * result + (schemaVersionId?.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 QuerySchemaVersionMetadataResponse
if (metadataInfoMap != other.metadataInfoMap) return false
if (nextToken != other.nextToken) return false
if (schemaVersionId != other.schemaVersionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A map of a metadata key and associated values.
*/
public var metadataInfoMap: Map? = null
/**
* A continuation token for paginating the returned list of tokens, returned if the current segment of the list is not the last.
*/
public var nextToken: kotlin.String? = null
/**
* The unique version ID of the schema version.
*/
public var schemaVersionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataResponse) : this() {
this.metadataInfoMap = x.metadataInfoMap
this.nextToken = x.nextToken
this.schemaVersionId = x.schemaVersionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.QuerySchemaVersionMetadataResponse = QuerySchemaVersionMetadataResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}