commonMain.aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.chatbot.model
import aws.smithy.kotlin.runtime.SdkDsl
public class UpdateChimeWebhookConfigurationResponse private constructor(builder: Builder) {
/**
* A Amazon Chime webhook configuration.
*/
public val webhookConfiguration: aws.sdk.kotlin.services.chatbot.model.ChimeWebhookConfiguration? = builder.webhookConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateChimeWebhookConfigurationResponse(")
append("webhookConfiguration=$webhookConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = webhookConfiguration?.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 UpdateChimeWebhookConfigurationResponse
if (webhookConfiguration != other.webhookConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A Amazon Chime webhook configuration.
*/
public var webhookConfiguration: aws.sdk.kotlin.services.chatbot.model.ChimeWebhookConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationResponse) : this() {
this.webhookConfiguration = x.webhookConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.chatbot.model.UpdateChimeWebhookConfigurationResponse = UpdateChimeWebhookConfigurationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.chatbot.model.ChimeWebhookConfiguration] inside the given [block]
*/
public fun webhookConfiguration(block: aws.sdk.kotlin.services.chatbot.model.ChimeWebhookConfiguration.Builder.() -> kotlin.Unit) {
this.webhookConfiguration = aws.sdk.kotlin.services.chatbot.model.ChimeWebhookConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}