commonMain.aws.sdk.kotlin.services.eventbridge.model.UpdateEventBusResponse.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 UpdateEventBusResponse private constructor(builder: Builder) {
/**
* The event bus Amazon Resource Name (ARN).
*/
public val arn: kotlin.String? = builder.arn
/**
* Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).
*
* For more information, see [Event retry policy and using dead-letter queues](eventbridge/latest/userguide/eb-rule-dlq.html) in the *EventBridge User Guide*.
*/
public val deadLetterConfig: aws.sdk.kotlin.services.eventbridge.model.DeadLetterConfig? = builder.deadLetterConfig
/**
* The event bus description.
*/
public val description: kotlin.String? = builder.description
/**
* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one has been specified.
*
* For more information, see [Data encryption in EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the *Amazon EventBridge User Guide*.
*/
public val kmsKeyIdentifier: kotlin.String? = builder.kmsKeyIdentifier
/**
* The event bus name.
*/
public val name: kotlin.String? = builder.name
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eventbridge.model.UpdateEventBusResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateEventBusResponse(")
append("arn=$arn,")
append("deadLetterConfig=$deadLetterConfig,")
append("description=$description,")
append("kmsKeyIdentifier=$kmsKeyIdentifier,")
append("name=$name")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = arn?.hashCode() ?: 0
result = 31 * result + (deadLetterConfig?.hashCode() ?: 0)
result = 31 * result + (description?.hashCode() ?: 0)
result = 31 * result + (kmsKeyIdentifier?.hashCode() ?: 0)
result = 31 * result + (name?.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 UpdateEventBusResponse
if (arn != other.arn) return false
if (deadLetterConfig != other.deadLetterConfig) return false
if (description != other.description) return false
if (kmsKeyIdentifier != other.kmsKeyIdentifier) return false
if (name != other.name) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eventbridge.model.UpdateEventBusResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The event bus Amazon Resource Name (ARN).
*/
public var arn: kotlin.String? = null
/**
* Configuration details of the Amazon SQS queue for EventBridge to use as a dead-letter queue (DLQ).
*
* For more information, see [Event retry policy and using dead-letter queues](eventbridge/latest/userguide/eb-rule-dlq.html) in the *EventBridge User Guide*.
*/
public var deadLetterConfig: aws.sdk.kotlin.services.eventbridge.model.DeadLetterConfig? = null
/**
* The event bus description.
*/
public var description: kotlin.String? = null
/**
* The identifier of the KMS customer managed key for EventBridge to use to encrypt events on this event bus, if one has been specified.
*
* For more information, see [Data encryption in EventBridge](https://docs.aws.amazon.com/eventbridge/latest/userguide/eb-encryption.html) in the *Amazon EventBridge User Guide*.
*/
public var kmsKeyIdentifier: kotlin.String? = null
/**
* The event bus name.
*/
public var name: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eventbridge.model.UpdateEventBusResponse) : this() {
this.arn = x.arn
this.deadLetterConfig = x.deadLetterConfig
this.description = x.description
this.kmsKeyIdentifier = x.kmsKeyIdentifier
this.name = x.name
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eventbridge.model.UpdateEventBusResponse = UpdateEventBusResponse(this)
/**
* construct an [aws.sdk.kotlin.services.eventbridge.model.DeadLetterConfig] inside the given [block]
*/
public fun deadLetterConfig(block: aws.sdk.kotlin.services.eventbridge.model.DeadLetterConfig.Builder.() -> kotlin.Unit) {
this.deadLetterConfig = aws.sdk.kotlin.services.eventbridge.model.DeadLetterConfig.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}