
commonMain.aws.sdk.kotlin.services.batch.model.ContainerSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.batch.model
/**
* An object that represents summary details of a container within a job.
*/
public class ContainerSummary private constructor(builder: Builder) {
/**
* The exit code to return upon completion.
*/
public val exitCode: kotlin.Int? = builder.exitCode
/**
* A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
*/
public val reason: kotlin.String? = builder.reason
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.batch.model.ContainerSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ContainerSummary(")
append("exitCode=$exitCode,")
append("reason=$reason")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = exitCode ?: 0
result = 31 * result + (reason?.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 ContainerSummary
if (exitCode != other.exitCode) return false
if (reason != other.reason) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.batch.model.ContainerSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The exit code to return upon completion.
*/
public var exitCode: kotlin.Int? = null
/**
* A short (255 max characters) human-readable string to provide additional details for a running or stopped container.
*/
public var reason: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.batch.model.ContainerSummary) : this() {
this.exitCode = x.exitCode
this.reason = x.reason
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.batch.model.ContainerSummary = ContainerSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy