commonMain.aws.sdk.kotlin.services.codebuild.model.BatchGetReportsResponse.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 BatchGetReportsResponse private constructor(builder: Builder) {
/**
* The array of `Report` objects returned by `BatchGetReports`.
*/
public val reports: List? = builder.reports
/**
* An array of ARNs passed to `BatchGetReportGroups` that are not associated with a `Report`.
*/
public val reportsNotFound: List? = builder.reportsNotFound
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codebuild.model.BatchGetReportsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetReportsResponse(")
append("reports=$reports,")
append("reportsNotFound=$reportsNotFound")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = reports?.hashCode() ?: 0
result = 31 * result + (reportsNotFound?.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 BatchGetReportsResponse
if (reports != other.reports) return false
if (reportsNotFound != other.reportsNotFound) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codebuild.model.BatchGetReportsResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The array of `Report` objects returned by `BatchGetReports`.
*/
public var reports: List? = null
/**
* An array of ARNs passed to `BatchGetReportGroups` that are not associated with a `Report`.
*/
public var reportsNotFound: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codebuild.model.BatchGetReportsResponse) : this() {
this.reports = x.reports
this.reportsNotFound = x.reportsNotFound
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codebuild.model.BatchGetReportsResponse = BatchGetReportsResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}