
commonMain.aws.sdk.kotlin.services.ecr.model.BatchGetImageResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ecr.model
import aws.smithy.kotlin.runtime.SdkDsl
public class BatchGetImageResponse private constructor(builder: Builder) {
/**
* Any failures associated with the call.
*/
public val failures: List? = builder.failures
/**
* A list of image objects corresponding to the image references in the request.
*/
public val images: List? = builder.images
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.BatchGetImageResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("BatchGetImageResponse(")
append("failures=$failures,")
append("images=$images")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = failures?.hashCode() ?: 0
result = 31 * result + (images?.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 BatchGetImageResponse
if (failures != other.failures) return false
if (images != other.images) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.BatchGetImageResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Any failures associated with the call.
*/
public var failures: List? = null
/**
* A list of image objects corresponding to the image references in the request.
*/
public var images: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.BatchGetImageResponse) : this() {
this.failures = x.failures
this.images = x.images
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.BatchGetImageResponse = BatchGetImageResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy