commonMain.aws.sdk.kotlin.services.dataexchange.model.Event.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
/**
* What occurs to start an action.
*/
public class Event private constructor(builder: Builder) {
/**
* What occurs to start the revision publish action.
*/
public val revisionPublished: aws.sdk.kotlin.services.dataexchange.model.RevisionPublished? = builder.revisionPublished
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.Event = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Event(")
append("revisionPublished=$revisionPublished")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = revisionPublished?.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 Event
if (revisionPublished != other.revisionPublished) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.Event = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* What occurs to start the revision publish action.
*/
public var revisionPublished: aws.sdk.kotlin.services.dataexchange.model.RevisionPublished? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.Event) : this() {
this.revisionPublished = x.revisionPublished
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.Event = Event(this)
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.RevisionPublished] inside the given [block]
*/
public fun revisionPublished(block: aws.sdk.kotlin.services.dataexchange.model.RevisionPublished.Builder.() -> kotlin.Unit) {
this.revisionPublished = aws.sdk.kotlin.services.dataexchange.model.RevisionPublished.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}