commonMain.aws.sdk.kotlin.services.dataexchange.model.SchemaChangeRequestDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Extra details specific to this schema change type notification.
*/
public class SchemaChangeRequestDetails private constructor(builder: Builder) {
/**
* List of schema changes happening in the scope of this notification. This can have up to 100 entries.
*/
public val changes: List? = builder.changes
/**
* A date in the future when the schema change is taking effect.
*/
public val schemaChangeAt: aws.smithy.kotlin.runtime.time.Instant = requireNotNull(builder.schemaChangeAt) { "A non-null value must be provided for schemaChangeAt" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.SchemaChangeRequestDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SchemaChangeRequestDetails(")
append("changes=$changes,")
append("schemaChangeAt=$schemaChangeAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = changes?.hashCode() ?: 0
result = 31 * result + (schemaChangeAt.hashCode())
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 SchemaChangeRequestDetails
if (changes != other.changes) return false
if (schemaChangeAt != other.schemaChangeAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.SchemaChangeRequestDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* List of schema changes happening in the scope of this notification. This can have up to 100 entries.
*/
public var changes: List? = null
/**
* A date in the future when the schema change is taking effect.
*/
public var schemaChangeAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.SchemaChangeRequestDetails) : this() {
this.changes = x.changes
this.schemaChangeAt = x.schemaChangeAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.SchemaChangeRequestDetails = SchemaChangeRequestDetails(this)
internal fun correctErrors(): Builder {
if (schemaChangeAt == null) schemaChangeAt = Instant.fromEpochSeconds(0)
return this
}
}
}