commonMain.aws.sdk.kotlin.services.codepipeline.model.PutWebhookResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codepipeline-jvm Show documentation
Show all versions of codepipeline-jvm Show documentation
The AWS SDK for Kotlin client for CodePipeline
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codepipeline.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PutWebhookResponse private constructor(builder: Builder) {
/**
* The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.
*/
public val webhook: aws.sdk.kotlin.services.codepipeline.model.ListWebhookItem? = builder.webhook
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.PutWebhookResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutWebhookResponse(")
append("webhook=$webhook")
append(")")
}
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 PutWebhookResponse
if (webhook != other.webhook) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.PutWebhookResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The detail returned from creating the webhook, such as the webhook name, webhook URL, and webhook ARN.
*/
public var webhook: aws.sdk.kotlin.services.codepipeline.model.ListWebhookItem? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PutWebhookResponse) : this() {
this.webhook = x.webhook
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.PutWebhookResponse = PutWebhookResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ListWebhookItem] inside the given [block]
*/
public fun webhook(block: aws.sdk.kotlin.services.codepipeline.model.ListWebhookItem.Builder.() -> kotlin.Unit) {
this.webhook = aws.sdk.kotlin.services.codepipeline.model.ListWebhookItem.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy