commonMain.aws.sdk.kotlin.services.dataexchange.model.GetEventActionResponse.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
public class GetEventActionResponse private constructor(builder: Builder) {
/**
* What occurs after a certain event.
*/
public val action: aws.sdk.kotlin.services.dataexchange.model.Action? = builder.action
/**
* The ARN for the event action.
*/
public val arn: kotlin.String? = builder.arn
/**
* The date and time that the event action was created, in ISO 8601 format.
*/
public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
/**
* What occurs to start an action.
*/
public val event: aws.sdk.kotlin.services.dataexchange.model.Event? = builder.event
/**
* The unique identifier for the event action.
*/
public val id: kotlin.String? = builder.id
/**
* The date and time that the event action was last updated, in ISO 8601 format.
*/
public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.GetEventActionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetEventActionResponse(")
append("action=$action,")
append("arn=$arn,")
append("createdAt=$createdAt,")
append("event=$event,")
append("id=$id,")
append("updatedAt=$updatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = action?.hashCode() ?: 0
result = 31 * result + (arn?.hashCode() ?: 0)
result = 31 * result + (createdAt?.hashCode() ?: 0)
result = 31 * result + (event?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (updatedAt?.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 GetEventActionResponse
if (action != other.action) return false
if (arn != other.arn) return false
if (createdAt != other.createdAt) return false
if (event != other.event) return false
if (id != other.id) return false
if (updatedAt != other.updatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.GetEventActionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* What occurs after a certain event.
*/
public var action: aws.sdk.kotlin.services.dataexchange.model.Action? = null
/**
* The ARN for the event action.
*/
public var arn: kotlin.String? = null
/**
* The date and time that the event action was created, in ISO 8601 format.
*/
public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* What occurs to start an action.
*/
public var event: aws.sdk.kotlin.services.dataexchange.model.Event? = null
/**
* The unique identifier for the event action.
*/
public var id: kotlin.String? = null
/**
* The date and time that the event action was last updated, in ISO 8601 format.
*/
public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.GetEventActionResponse) : this() {
this.action = x.action
this.arn = x.arn
this.createdAt = x.createdAt
this.event = x.event
this.id = x.id
this.updatedAt = x.updatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.GetEventActionResponse = GetEventActionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.Action] inside the given [block]
*/
public fun action(block: aws.sdk.kotlin.services.dataexchange.model.Action.Builder.() -> kotlin.Unit) {
this.action = aws.sdk.kotlin.services.dataexchange.model.Action.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.Event] inside the given [block]
*/
public fun event(block: aws.sdk.kotlin.services.dataexchange.model.Event.Builder.() -> kotlin.Unit) {
this.event = aws.sdk.kotlin.services.dataexchange.model.Event.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}