commonMain.aws.sdk.kotlin.services.codepipeline.model.ConditionState.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
/**
* Information about the state of the condition.
*/
public class ConditionState private constructor(builder: Builder) {
/**
* The state of the latest run of the rule.
*/
public val latestExecution: aws.sdk.kotlin.services.codepipeline.model.ConditionExecution? = builder.latestExecution
/**
* The state of the rules for the condition.
*/
public val ruleStates: List? = builder.ruleStates
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.ConditionState = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConditionState(")
append("latestExecution=$latestExecution,")
append("ruleStates=$ruleStates")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = latestExecution?.hashCode() ?: 0
result = 31 * result + (ruleStates?.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 ConditionState
if (latestExecution != other.latestExecution) return false
if (ruleStates != other.ruleStates) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.ConditionState = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The state of the latest run of the rule.
*/
public var latestExecution: aws.sdk.kotlin.services.codepipeline.model.ConditionExecution? = null
/**
* The state of the rules for the condition.
*/
public var ruleStates: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.ConditionState) : this() {
this.latestExecution = x.latestExecution
this.ruleStates = x.ruleStates
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.ConditionState = ConditionState(this)
/**
* construct an [aws.sdk.kotlin.services.codepipeline.model.ConditionExecution] inside the given [block]
*/
public fun latestExecution(block: aws.sdk.kotlin.services.codepipeline.model.ConditionExecution.Builder.() -> kotlin.Unit) {
this.latestExecution = aws.sdk.kotlin.services.codepipeline.model.ConditionExecution.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy