commonMain.aws.sdk.kotlin.services.codepipeline.model.ConditionExecution.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
import aws.smithy.kotlin.runtime.time.Instant
/**
* The run of a condition.
*/
public class ConditionExecution private constructor(builder: Builder) {
/**
* The last status change of the condition.
*/
public val lastStatusChange: aws.smithy.kotlin.runtime.time.Instant? = builder.lastStatusChange
/**
* The status of the run for a condition.
*/
public val status: aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus? = builder.status
/**
* The summary of information about a run for a condition.
*/
public val summary: kotlin.String? = builder.summary
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ConditionExecution = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConditionExecution(")
append("lastStatusChange=$lastStatusChange,")
append("status=$status,")
append("summary=$summary")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = lastStatusChange?.hashCode() ?: 0
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (summary?.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 ConditionExecution
if (lastStatusChange != other.lastStatusChange) return false
if (status != other.status) return false
if (summary != other.summary) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ConditionExecution = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The last status change of the condition.
*/
public var lastStatusChange: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The status of the run for a condition.
*/
public var status: aws.sdk.kotlin.services.codepipeline.model.ConditionExecutionStatus? = null
/**
* The summary of information about a run for a condition.
*/
public var summary: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ConditionExecution) : this() {
this.lastStatusChange = x.lastStatusChange
this.status = x.status
this.summary = x.summary
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ConditionExecution = ConditionExecution(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy