commonMain.aws.sdk.kotlin.services.dataexchange.model.DeleteEventActionRequest.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
public class DeleteEventActionRequest private constructor(builder: Builder) {
/**
* The unique identifier for the event action.
*/
public val eventActionId: kotlin.String = requireNotNull(builder.eventActionId) { "A non-null value must be provided for eventActionId" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.DeleteEventActionRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteEventActionRequest(")
append("eventActionId=$eventActionId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventActionId.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 DeleteEventActionRequest
if (eventActionId != other.eventActionId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.DeleteEventActionRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique identifier for the event action.
*/
public var eventActionId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.DeleteEventActionRequest) : this() {
this.eventActionId = x.eventActionId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.DeleteEventActionRequest = DeleteEventActionRequest(this)
internal fun correctErrors(): Builder {
if (eventActionId == null) eventActionId = ""
return this
}
}
}