commonMain.aws.sdk.kotlin.services.codebuild.model.PhaseContext.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of codebuild-jvm Show documentation
Show all versions of codebuild-jvm Show documentation
The AWS SDK for Kotlin client for CodeBuild
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codebuild.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Additional information about a build phase that has an error. You can use this information for troubleshooting.
*/
public class PhaseContext private constructor(builder: Builder) {
/**
* An explanation of the build phase's context. This might include a command ID and an exit code.
*/
public val message: kotlin.String? = builder.message
/**
* The status code for the context of the build phase.
*/
public val statusCode: kotlin.String? = builder.statusCode
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.PhaseContext = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An explanation of the build phase's context. This might include a command ID and an exit code.
*/
public var message: kotlin.String? = null
/**
* The status code for the context of the build phase.
*/
public var statusCode: kotlin.String? = null
@PublishedApi
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)
internal fun correctErrors(): Builder {
return this
}
}
}