
commonMain.aws.sdk.kotlin.services.codecommit.model.RepositoryTriggerExecutionFailure.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codecommit.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A trigger failed to run.
*/
public class RepositoryTriggerExecutionFailure private constructor(builder: Builder) {
/**
* Message information about the trigger that did not run.
*/
public val failureMessage: kotlin.String? = builder.failureMessage
/**
* The name of the trigger that did not run.
*/
public val trigger: kotlin.String? = builder.trigger
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codecommit.model.RepositoryTriggerExecutionFailure = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RepositoryTriggerExecutionFailure(")
append("failureMessage=$failureMessage,")
append("trigger=$trigger")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failureMessage?.hashCode() ?: 0
result = 31 * result + (trigger?.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 RepositoryTriggerExecutionFailure
if (failureMessage != other.failureMessage) return false
if (trigger != other.trigger) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codecommit.model.RepositoryTriggerExecutionFailure = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Message information about the trigger that did not run.
*/
public var failureMessage: kotlin.String? = null
/**
* The name of the trigger that did not run.
*/
public var trigger: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codecommit.model.RepositoryTriggerExecutionFailure) : this() {
this.failureMessage = x.failureMessage
this.trigger = x.trigger
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codecommit.model.RepositoryTriggerExecutionFailure = RepositoryTriggerExecutionFailure(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy