commonMain.aws.sdk.kotlin.services.codebuild.model.DeleteBuildBatchResponse.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 DeleteBuildBatchResponse private constructor(builder: Builder) {
/**
* An array of strings that contain the identifiers of the builds that were deleted.
*/
public val buildsDeleted: List? = builder.buildsDeleted
/**
* An array of `BuildNotDeleted` objects that specify the builds that could not be deleted.
*/
public val buildsNotDeleted: List? = builder.buildsNotDeleted
/**
* The status code.
*/
public val statusCode: kotlin.String? = builder.statusCode
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.DeleteBuildBatchResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DeleteBuildBatchResponse(")
append("buildsDeleted=$buildsDeleted,")
append("buildsNotDeleted=$buildsNotDeleted,")
append("statusCode=$statusCode")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = buildsDeleted?.hashCode() ?: 0
result = 31 * result + (buildsNotDeleted?.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 DeleteBuildBatchResponse
if (buildsDeleted != other.buildsDeleted) return false
if (buildsNotDeleted != other.buildsNotDeleted) return false
if (statusCode != other.statusCode) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.DeleteBuildBatchResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of strings that contain the identifiers of the builds that were deleted.
*/
public var buildsDeleted: List? = null
/**
* An array of `BuildNotDeleted` objects that specify the builds that could not be deleted.
*/
public var buildsNotDeleted: List? = null
/**
* The status code.
*/
public var statusCode: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.DeleteBuildBatchResponse) : this() {
this.buildsDeleted = x.buildsDeleted
this.buildsNotDeleted = x.buildsNotDeleted
this.statusCode = x.statusCode
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.DeleteBuildBatchResponse = DeleteBuildBatchResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}