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

commonMain.aws.sdk.kotlin.services.securityhub.model.FilePaths.kt Maven / Gradle / Ivy

There is a newer version: 1.3.35
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.securityhub.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Provides information about the file paths that were affected by the threat.
 */
public class FilePaths private constructor(builder: Builder) {
    /**
     * The name of the infected or suspicious file corresponding to the hash.
     *
     * Length Constraints: Minimum of 1 length. Maximum of 128 length.
     */
    public val fileName: kotlin.String? = builder.fileName
    /**
     * Path to the infected or suspicious file on the resource it was detected on.
     *
     * Length Constraints: Minimum of 1 length. Maximum of 128 length.
     */
    public val filePath: kotlin.String? = builder.filePath
    /**
     * The hash value for the infected or suspicious file.
     *
     * Length Constraints: Minimum of 1 length. Maximum of 128 length.
     */
    public val hash: kotlin.String? = builder.hash
    /**
     * The Amazon Resource Name (ARN) of the resource on which the threat was detected.
     *
     * Length Constraints: Minimum of 1 length. Maximum of 128 length.
     */
    public val resourceId: kotlin.String? = builder.resourceId

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

    override fun toString(): kotlin.String = buildString {
        append("FilePaths(")
        append("fileName=$fileName,")
        append("filePath=$filePath,")
        append("hash=$hash,")
        append("resourceId=$resourceId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = fileName?.hashCode() ?: 0
        result = 31 * result + (filePath?.hashCode() ?: 0)
        result = 31 * result + (hash?.hashCode() ?: 0)
        result = 31 * result + (resourceId?.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 FilePaths

        if (fileName != other.fileName) return false
        if (filePath != other.filePath) return false
        if (hash != other.hash) return false
        if (resourceId != other.resourceId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the infected or suspicious file corresponding to the hash.
         *
         * Length Constraints: Minimum of 1 length. Maximum of 128 length.
         */
        public var fileName: kotlin.String? = null
        /**
         * Path to the infected or suspicious file on the resource it was detected on.
         *
         * Length Constraints: Minimum of 1 length. Maximum of 128 length.
         */
        public var filePath: kotlin.String? = null
        /**
         * The hash value for the infected or suspicious file.
         *
         * Length Constraints: Minimum of 1 length. Maximum of 128 length.
         */
        public var hash: kotlin.String? = null
        /**
         * The Amazon Resource Name (ARN) of the resource on which the threat was detected.
         *
         * Length Constraints: Minimum of 1 length. Maximum of 128 length.
         */
        public var resourceId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.securityhub.model.FilePaths) : this() {
            this.fileName = x.fileName
            this.filePath = x.filePath
            this.hash = x.hash
            this.resourceId = x.resourceId
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.securityhub.model.FilePaths = FilePaths(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy