commonMain.aws.sdk.kotlin.services.codepipeline.model.PutWebhookRequest.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
public class PutWebhookRequest private constructor(builder: Builder) {
/**
* The tags for the webhook.
*/
public val tags: List? = builder.tags
/**
* The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
*/
public val webhook: aws.sdk.kotlin.services.codepipeline.model.WebhookDefinition? = builder.webhook
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.PutWebhookRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PutWebhookRequest(")
append("tags=$tags,")
append("webhook=$webhook")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = tags?.hashCode() ?: 0
result = 31 * 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 PutWebhookRequest
if (tags != other.tags) return false
if (webhook != other.webhook) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.PutWebhookRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The tags for the webhook.
*/
public var tags: List? = null
/**
* The detail provided in an input file to create the webhook, such as the webhook name, the pipeline name, and the action name. Give the webhook a unique name that helps you identify it. You might name the webhook after the pipeline and action it targets so that you can easily recognize what it's used for later.
*/
public var webhook: aws.sdk.kotlin.services.codepipeline.model.WebhookDefinition? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.PutWebhookRequest) : this() {
this.tags = x.tags
this.webhook = x.webhook
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.PutWebhookRequest = PutWebhookRequest(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.WebhookDefinition] inside the given [block]
*/
public fun webhook(block: aws.sdk.kotlin.services.codepipeline.model.WebhookDefinition.Builder.() -> kotlin.Unit) {
this.webhook = aws.sdk.kotlin.services.codepipeline.model.WebhookDefinition.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy