commonMain.aws.sdk.kotlin.services.codebuild.model.StopBuildBatchResponse.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
public class StopBuildBatchResponse private constructor(builder: Builder) {
/**
* Contains information about a batch build.
*/
public val buildBatch: aws.sdk.kotlin.services.codebuild.model.BuildBatch? = builder.buildBatch
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.StopBuildBatchResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StopBuildBatchResponse(")
append("buildBatch=$buildBatch")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = buildBatch?.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 StopBuildBatchResponse
if (buildBatch != other.buildBatch) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.StopBuildBatchResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Contains information about a batch build.
*/
public var buildBatch: aws.sdk.kotlin.services.codebuild.model.BuildBatch? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.StopBuildBatchResponse) : this() {
this.buildBatch = x.buildBatch
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.StopBuildBatchResponse = StopBuildBatchResponse(this)
/**
* construct an [aws.sdk.kotlin.services.codebuild.model.BuildBatch] inside the given [block]
*/
public fun buildBatch(block: aws.sdk.kotlin.services.codebuild.model.BuildBatch.Builder.() -> kotlin.Unit) {
this.buildBatch = aws.sdk.kotlin.services.codebuild.model.BuildBatch.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}