All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.codebuild.model.PhaseContext.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.codebuild.model



/**
 * Additional information about a build phase that has an error. You can use this information for troubleshooting.
 */
class PhaseContext private constructor(builder: Builder) {
    /**
     * An explanation of the build phase's context. This might include a command ID and an exit code.
     */
    val message: kotlin.String? = builder.message
    /**
     * The status code for the context of the build phase.
     */
    val statusCode: kotlin.String? = builder.statusCode

    companion object {
        operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.PhaseContext = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("PhaseContext(")
        append("message=$message,")
        append("statusCode=$statusCode)")
    }

    override fun hashCode(): kotlin.Int {
        var result = message?.hashCode() ?: 0
        result = 31 * result + (statusCode?.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 PhaseContext

        if (message != other.message) return false
        if (statusCode != other.statusCode) return false

        return true
    }

    inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.PhaseContext = Builder(this).apply(block).build()

    class Builder {
        /**
         * An explanation of the build phase's context. This might include a command ID and an exit code.
         */
        var message: kotlin.String? = null
        /**
         * The status code for the context of the build phase.
         */
        var statusCode: kotlin.String? = null

        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.codebuild.model.PhaseContext) : this() {
            this.message = x.message
            this.statusCode = x.statusCode
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.codebuild.model.PhaseContext = PhaseContext(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy