commonMain.aws.sdk.kotlin.services.glue.model.MetadataInfo.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
/**
* A structure containing metadata information for a schema version.
*/
public class MetadataInfo private constructor(builder: Builder) {
/**
* The time at which the entry was created.
*/
public val createdTime: kotlin.String? = builder.createdTime
/**
* The metadata key’s corresponding value.
*/
public val metadataValue: kotlin.String? = builder.metadataValue
/**
* Other metadata belonging to the same metadata key.
*/
public val otherMetadataValueList: List? = builder.otherMetadataValueList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.MetadataInfo = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("MetadataInfo(")
append("createdTime=$createdTime,")
append("metadataValue=$metadataValue,")
append("otherMetadataValueList=$otherMetadataValueList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = createdTime?.hashCode() ?: 0
result = 31 * result + (metadataValue?.hashCode() ?: 0)
result = 31 * result + (otherMetadataValueList?.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 MetadataInfo
if (createdTime != other.createdTime) return false
if (metadataValue != other.metadataValue) return false
if (otherMetadataValueList != other.otherMetadataValueList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.MetadataInfo = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The time at which the entry was created.
*/
public var createdTime: kotlin.String? = null
/**
* The metadata key’s corresponding value.
*/
public var metadataValue: kotlin.String? = null
/**
* Other metadata belonging to the same metadata key.
*/
public var otherMetadataValueList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.MetadataInfo) : this() {
this.createdTime = x.createdTime
this.metadataValue = x.metadataValue
this.otherMetadataValueList = x.otherMetadataValueList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.MetadataInfo = MetadataInfo(this)
internal fun correctErrors(): Builder {
return this
}
}
}