
commonMain.aws.sdk.kotlin.services.apptest.model.BatchSummary.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.apptest.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Summarizes a batch job.
*/
public class BatchSummary private constructor(builder: Builder) {
/**
* The step input of the batch summary.
*/
public val stepInput: aws.sdk.kotlin.services.apptest.model.BatchStepInput? = builder.stepInput
/**
* The step output of the batch summary.
*/
public val stepOutput: aws.sdk.kotlin.services.apptest.model.BatchStepOutput? = builder.stepOutput
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.apptest.model.BatchSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchSummary(")
append("stepInput=$stepInput,")
append("stepOutput=$stepOutput")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = stepInput?.hashCode() ?: 0
result = 31 * result + (stepOutput?.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 BatchSummary
if (stepInput != other.stepInput) return false
if (stepOutput != other.stepOutput) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.apptest.model.BatchSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The step input of the batch summary.
*/
public var stepInput: aws.sdk.kotlin.services.apptest.model.BatchStepInput? = null
/**
* The step output of the batch summary.
*/
public var stepOutput: aws.sdk.kotlin.services.apptest.model.BatchStepOutput? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.apptest.model.BatchSummary) : this() {
this.stepInput = x.stepInput
this.stepOutput = x.stepOutput
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.apptest.model.BatchSummary = BatchSummary(this)
/**
* construct an [aws.sdk.kotlin.services.apptest.model.BatchStepInput] inside the given [block]
*/
public fun stepInput(block: aws.sdk.kotlin.services.apptest.model.BatchStepInput.Builder.() -> kotlin.Unit) {
this.stepInput = aws.sdk.kotlin.services.apptest.model.BatchStepInput.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.apptest.model.BatchStepOutput] inside the given [block]
*/
public fun stepOutput(block: aws.sdk.kotlin.services.apptest.model.BatchStepOutput.Builder.() -> kotlin.Unit) {
this.stepOutput = aws.sdk.kotlin.services.apptest.model.BatchStepOutput.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy