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