commonMain.aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* A timestamped inclusion annotation.
*/
public class TimestampedInclusionAnnotation private constructor(builder: Builder) {
/**
* The timestamp when the inclusion annotation was last modified.
*/
public val lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = builder.lastModifiedOn
/**
* The inclusion annotation value.
*/
public val value: aws.sdk.kotlin.services.glue.model.InclusionAnnotationValue? = builder.value
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TimestampedInclusionAnnotation(")
append("lastModifiedOn=$lastModifiedOn,")
append("value=$value")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lastModifiedOn?.hashCode() ?: 0
result = 31 * result + (value?.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 TimestampedInclusionAnnotation
if (lastModifiedOn != other.lastModifiedOn) return false
if (value != other.value) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The timestamp when the inclusion annotation was last modified.
*/
public var lastModifiedOn: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The inclusion annotation value.
*/
public var value: aws.sdk.kotlin.services.glue.model.InclusionAnnotationValue? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation) : this() {
this.lastModifiedOn = x.lastModifiedOn
this.value = x.value
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.TimestampedInclusionAnnotation = TimestampedInclusionAnnotation(this)
internal fun correctErrors(): Builder {
return this
}
}
}