
commonMain.aws.sdk.kotlin.services.ecr.model.ImageScanFindingsSummary.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.time.Instant
/**
* A summary of the last completed image scan.
*/
public class ImageScanFindingsSummary private constructor(builder: Builder) {
/**
* The image vulnerability counts, sorted by severity.
*/
public val findingSeverityCounts: Map? = builder.findingSeverityCounts
/**
* The time of the last completed image scan.
*/
public val imageScanCompletedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.imageScanCompletedAt
/**
* The time when the vulnerability data was last scanned.
*/
public val vulnerabilitySourceUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.vulnerabilitySourceUpdatedAt
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.ImageScanFindingsSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ImageScanFindingsSummary(")
append("findingSeverityCounts=$findingSeverityCounts,")
append("imageScanCompletedAt=$imageScanCompletedAt,")
append("vulnerabilitySourceUpdatedAt=$vulnerabilitySourceUpdatedAt")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = findingSeverityCounts?.hashCode() ?: 0
result = 31 * result + (imageScanCompletedAt?.hashCode() ?: 0)
result = 31 * result + (vulnerabilitySourceUpdatedAt?.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 ImageScanFindingsSummary
if (findingSeverityCounts != other.findingSeverityCounts) return false
if (imageScanCompletedAt != other.imageScanCompletedAt) return false
if (vulnerabilitySourceUpdatedAt != other.vulnerabilitySourceUpdatedAt) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.ImageScanFindingsSummary = Builder(this).apply(block).build()
public class Builder {
/**
* The image vulnerability counts, sorted by severity.
*/
public var findingSeverityCounts: Map? = null
/**
* The time of the last completed image scan.
*/
public var imageScanCompletedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time when the vulnerability data was last scanned.
*/
public var vulnerabilitySourceUpdatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ecr.model.ImageScanFindingsSummary) : this() {
this.findingSeverityCounts = x.findingSeverityCounts
this.imageScanCompletedAt = x.imageScanCompletedAt
this.vulnerabilitySourceUpdatedAt = x.vulnerabilitySourceUpdatedAt
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ecr.model.ImageScanFindingsSummary = ImageScanFindingsSummary(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy