commonMain.aws.sdk.kotlin.services.appsync.model.EventBridgeDataSourceConfig.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of appsync-jvm Show documentation
Show all versions of appsync-jvm Show documentation
The AWS SDK for Kotlin client for AppSync
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.appsync.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Describes an Amazon EventBridge bus data source configuration.
*/
public class EventBridgeDataSourceConfig private constructor(builder: Builder) {
/**
* The ARN of the event bus. For more information about event buses, see [Amazon EventBridge event buses](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html).
*/
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.appsync.model.EventBridgeDataSourceConfig = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("EventBridgeDataSourceConfig(")
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 EventBridgeDataSourceConfig
if (eventBusArn != other.eventBusArn) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.appsync.model.EventBridgeDataSourceConfig = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The ARN of the event bus. For more information about event buses, see [Amazon EventBridge event buses](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-event-bus.html).
*/
public var eventBusArn: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.appsync.model.EventBridgeDataSourceConfig) : this() {
this.eventBusArn = x.eventBusArn
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.appsync.model.EventBridgeDataSourceConfig = EventBridgeDataSourceConfig(this)
internal fun correctErrors(): Builder {
if (eventBusArn == null) eventBusArn = ""
return this
}
}
}