commonMain.aws.sdk.kotlin.services.codepipeline.model.BeforeEntryConditions.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 conditions for making checks for entry to a stage.
*/
public class BeforeEntryConditions private constructor(builder: Builder) {
/**
* The conditions that are configured as entry conditions.
*/
public val conditions: List = requireNotNull(builder.conditions) { "A non-null value must be provided for conditions" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codepipeline.model.BeforeEntryConditions = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BeforeEntryConditions(")
append("conditions=$conditions")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = conditions.hashCode()
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 BeforeEntryConditions
if (conditions != other.conditions) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codepipeline.model.BeforeEntryConditions = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The conditions that are configured as entry conditions.
*/
public var conditions: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codepipeline.model.BeforeEntryConditions) : this() {
this.conditions = x.conditions
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codepipeline.model.BeforeEntryConditions = BeforeEntryConditions(this)
internal fun correctErrors(): Builder {
if (conditions == null) conditions = emptyList()
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy