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

commonMain.aws.sdk.kotlin.services.auditmanager.model.ManualEvidence.kt Maven / Gradle / Ivy

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

package aws.sdk.kotlin.services.auditmanager.model

import aws.smithy.kotlin.runtime.SdkDsl

/**
 * Evidence that's manually added to a control in Audit Manager. `manualEvidence` can be one of the following: `evidenceFileName`, `s3ResourcePath`, or `textResponse`.
 */
public class ManualEvidence private constructor(builder: Builder) {
    /**
     * The name of the file that's uploaded as manual evidence. This name is populated using the `evidenceFileName` value from the `GetEvidenceFileUploadUrl`[](https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetEvidenceFileUploadUrl.html) API response.
     */
    public val evidenceFileName: kotlin.String? = builder.evidenceFileName
    /**
     * The S3 URL of the object that's imported as manual evidence.
     */
    public val s3ResourcePath: kotlin.String? = builder.s3ResourcePath
    /**
     * The plain text response that's entered and saved as manual evidence.
     */
    public val textResponse: kotlin.String? = builder.textResponse

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

    override fun toString(): kotlin.String = buildString {
        append("ManualEvidence(")
        append("evidenceFileName=*** Sensitive Data Redacted ***,")
        append("s3ResourcePath=$s3ResourcePath,")
        append("textResponse=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = evidenceFileName?.hashCode() ?: 0
        result = 31 * result + (s3ResourcePath?.hashCode() ?: 0)
        result = 31 * result + (textResponse?.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 ManualEvidence

        if (evidenceFileName != other.evidenceFileName) return false
        if (s3ResourcePath != other.s3ResourcePath) return false
        if (textResponse != other.textResponse) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the file that's uploaded as manual evidence. This name is populated using the `evidenceFileName` value from the `GetEvidenceFileUploadUrl`[](https://docs.aws.amazon.com/audit-manager/latest/APIReference/API_GetEvidenceFileUploadUrl.html) API response.
         */
        public var evidenceFileName: kotlin.String? = null
        /**
         * The S3 URL of the object that's imported as manual evidence.
         */
        public var s3ResourcePath: kotlin.String? = null
        /**
         * The plain text response that's entered and saved as manual evidence.
         */
        public var textResponse: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.ManualEvidence) : this() {
            this.evidenceFileName = x.evidenceFileName
            this.s3ResourcePath = x.s3ResourcePath
            this.textResponse = x.textResponse
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy