aws.sdk.kotlin.services.amplify.model.GetWebhookResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.amplify.model
/**
* The result structure for the get webhook request.
*/
class GetWebhookResponse private constructor(builder: Builder) {
/**
* Describes the structure of a webhook.
*/
val webhook: aws.sdk.kotlin.services.amplify.model.Webhook? = builder.webhook
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.amplify.model.GetWebhookResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWebhookResponse(")
append("webhook=$webhook)")
}
override fun hashCode(): kotlin.Int {
var result = webhook?.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 GetWebhookResponse
if (webhook != other.webhook) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.amplify.model.GetWebhookResponse = Builder(this).apply(block).build()
class Builder {
/**
* Describes the structure of a webhook.
*/
var webhook: aws.sdk.kotlin.services.amplify.model.Webhook? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.amplify.model.GetWebhookResponse) : this() {
this.webhook = x.webhook
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.amplify.model.GetWebhookResponse = GetWebhookResponse(this)
/**
* construct an [aws.sdk.kotlin.services.amplify.model.Webhook] inside the given [block]
*/
fun webhook(block: aws.sdk.kotlin.services.amplify.model.Webhook.Builder.() -> kotlin.Unit) {
this.webhook = aws.sdk.kotlin.services.amplify.model.Webhook.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy