All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.ecr.model.VulnerablePackage.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.ecr.model



/**
 * Information on the vulnerable package identified by a finding.
 */
public class VulnerablePackage private constructor(builder: Builder) {
    /**
     * The architecture of the vulnerable package.
     */
    public val arch: kotlin.String? = builder.arch
    /**
     * The epoch of the vulnerable package.
     */
    public val epoch: kotlin.Int? = builder.epoch
    /**
     * The file path of the vulnerable package.
     */
    public val filePath: kotlin.String? = builder.filePath
    /**
     * The name of the vulnerable package.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The package manager of the vulnerable package.
     */
    public val packageManager: kotlin.String? = builder.packageManager
    /**
     * The release of the vulnerable package.
     */
    public val release: kotlin.String? = builder.release
    /**
     * The source layer hash of the vulnerable package.
     */
    public val sourceLayerHash: kotlin.String? = builder.sourceLayerHash
    /**
     * The version of the vulnerable package.
     */
    public val version: kotlin.String? = builder.version

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ecr.model.VulnerablePackage = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("VulnerablePackage(")
        append("arch=$arch,")
        append("epoch=$epoch,")
        append("filePath=$filePath,")
        append("name=$name,")
        append("packageManager=$packageManager,")
        append("release=$release,")
        append("sourceLayerHash=$sourceLayerHash,")
        append("version=$version")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = arch?.hashCode() ?: 0
        result = 31 * result + (epoch ?: 0)
        result = 31 * result + (filePath?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (packageManager?.hashCode() ?: 0)
        result = 31 * result + (release?.hashCode() ?: 0)
        result = 31 * result + (sourceLayerHash?.hashCode() ?: 0)
        result = 31 * result + (version?.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 VulnerablePackage

        if (arch != other.arch) return false
        if (epoch != other.epoch) return false
        if (filePath != other.filePath) return false
        if (name != other.name) return false
        if (packageManager != other.packageManager) return false
        if (release != other.release) return false
        if (sourceLayerHash != other.sourceLayerHash) return false
        if (version != other.version) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ecr.model.VulnerablePackage = Builder(this).apply(block).build()

    public class Builder {
        /**
         * The architecture of the vulnerable package.
         */
        public var arch: kotlin.String? = null
        /**
         * The epoch of the vulnerable package.
         */
        public var epoch: kotlin.Int? = null
        /**
         * The file path of the vulnerable package.
         */
        public var filePath: kotlin.String? = null
        /**
         * The name of the vulnerable package.
         */
        public var name: kotlin.String? = null
        /**
         * The package manager of the vulnerable package.
         */
        public var packageManager: kotlin.String? = null
        /**
         * The release of the vulnerable package.
         */
        public var release: kotlin.String? = null
        /**
         * The source layer hash of the vulnerable package.
         */
        public var sourceLayerHash: kotlin.String? = null
        /**
         * The version of the vulnerable package.
         */
        public var version: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.ecr.model.VulnerablePackage) : this() {
            this.arch = x.arch
            this.epoch = x.epoch
            this.filePath = x.filePath
            this.name = x.name
            this.packageManager = x.packageManager
            this.release = x.release
            this.sourceLayerHash = x.sourceLayerHash
            this.version = x.version
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.ecr.model.VulnerablePackage = VulnerablePackage(this)
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy