commonMain.aws.sdk.kotlin.services.eventbridge.model.PutEventsRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eventbridge-jvm Show documentation
Show all versions of eventbridge-jvm Show documentation
The AWS SDK for Kotlin client for EventBridge
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eventbridge.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PutEventsRequest private constructor(builder: Builder) {
/**
* The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is `abcde.veo`.
*
* When using Java, you must include `auth-crt` on the class path.
*/
public val endpointId: kotlin.String? = builder.endpointId
/**
* The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
*/
public val entries: List? = builder.entries
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.PutEventsRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutEventsRequest(")
append("endpointId=$endpointId,")
append("entries=$entries")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endpointId?.hashCode() ?: 0
result = 31 * result + (entries?.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 PutEventsRequest
if (endpointId != other.endpointId) return false
if (entries != other.entries) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.PutEventsRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The URL subdomain of the endpoint. For example, if the URL for Endpoint is https://abcde.veo.endpoints.event.amazonaws.com, then the EndpointId is `abcde.veo`.
*
* When using Java, you must include `auth-crt` on the class path.
*/
public var endpointId: kotlin.String? = null
/**
* The entry that defines an event in your system. You can specify several parameters for the entry such as the source and type of the event, resources associated with the event, and so on.
*/
public var entries: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.PutEventsRequest) : this() {
this.endpointId = x.endpointId
this.entries = x.entries
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.PutEventsRequest = PutEventsRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}