commonMain.aws.sdk.kotlin.services.codepipeline.model.ExecutionTrigger.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
/**
* The interaction or event that started a pipeline execution.
*/
public class ExecutionTrigger private constructor(builder: Builder) {
/**
* Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated `start-pipeline-execution` CLI command.
*/
public val triggerDetail: kotlin.String? = builder.triggerDetail
/**
* The type of change-detection method, command, or user interaction that started a pipeline execution.
*/
public val triggerType: aws.sdk.kotlin.services.codepipeline.model.TriggerType? = builder.triggerType
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ExecutionTrigger = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ExecutionTrigger(")
append("triggerDetail=$triggerDetail,")
append("triggerType=$triggerType")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = triggerDetail?.hashCode() ?: 0
result = 31 * result + (triggerType?.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 ExecutionTrigger
if (triggerDetail != other.triggerDetail) return false
if (triggerType != other.triggerType) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ExecutionTrigger = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detail related to the event that started a pipeline execution, such as the webhook ARN of the webhook that triggered the pipeline execution or the user ARN for a user-initiated `start-pipeline-execution` CLI command.
*/
public var triggerDetail: kotlin.String? = null
/**
* The type of change-detection method, command, or user interaction that started a pipeline execution.
*/
public var triggerType: aws.sdk.kotlin.services.codepipeline.model.TriggerType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ExecutionTrigger) : this() {
this.triggerDetail = x.triggerDetail
this.triggerType = x.triggerType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ExecutionTrigger = ExecutionTrigger(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy