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

commonMain.aws.sdk.kotlin.services.auditmanager.model.AssessmentMetadataItem.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
import aws.smithy.kotlin.runtime.time.Instant

/**
 * A metadata object that's associated with an assessment in Audit Manager.
 */
public class AssessmentMetadataItem private constructor(builder: Builder) {
    /**
     * The name of the compliance standard that's related to the assessment, such as PCI-DSS.
     */
    public val complianceType: kotlin.String? = builder.complianceType
    /**
     * Specifies when the assessment was created.
     */
    public val creationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.creationTime
    /**
     * The delegations that are associated with the assessment.
     */
    public val delegations: List? = builder.delegations
    /**
     * The unique identifier for the assessment.
     */
    public val id: kotlin.String? = builder.id
    /**
     * The time of the most recent update.
     */
    public val lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdated
    /**
     * The name of the assessment.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The roles that are associated with the assessment.
     */
    public val roles: List? = builder.roles
    /**
     * The current status of the assessment.
     */
    public val status: aws.sdk.kotlin.services.auditmanager.model.AssessmentStatus? = builder.status

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

    override fun toString(): kotlin.String = buildString {
        append("AssessmentMetadataItem(")
        append("complianceType=*** Sensitive Data Redacted ***,")
        append("creationTime=$creationTime,")
        append("delegations=*** Sensitive Data Redacted ***,")
        append("id=$id,")
        append("lastUpdated=$lastUpdated,")
        append("name=*** Sensitive Data Redacted ***,")
        append("roles=*** Sensitive Data Redacted ***,")
        append("status=$status")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = complianceType?.hashCode() ?: 0
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (delegations?.hashCode() ?: 0)
        result = 31 * result + (id?.hashCode() ?: 0)
        result = 31 * result + (lastUpdated?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (roles?.hashCode() ?: 0)
        result = 31 * result + (status?.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 AssessmentMetadataItem

        if (complianceType != other.complianceType) return false
        if (creationTime != other.creationTime) return false
        if (delegations != other.delegations) return false
        if (id != other.id) return false
        if (lastUpdated != other.lastUpdated) return false
        if (name != other.name) return false
        if (roles != other.roles) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the compliance standard that's related to the assessment, such as PCI-DSS.
         */
        public var complianceType: kotlin.String? = null
        /**
         * Specifies when the assessment was created.
         */
        public var creationTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The delegations that are associated with the assessment.
         */
        public var delegations: List? = null
        /**
         * The unique identifier for the assessment.
         */
        public var id: kotlin.String? = null
        /**
         * The time of the most recent update.
         */
        public var lastUpdated: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The name of the assessment.
         */
        public var name: kotlin.String? = null
        /**
         * The roles that are associated with the assessment.
         */
        public var roles: List? = null
        /**
         * The current status of the assessment.
         */
        public var status: aws.sdk.kotlin.services.auditmanager.model.AssessmentStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.AssessmentMetadataItem) : this() {
            this.complianceType = x.complianceType
            this.creationTime = x.creationTime
            this.delegations = x.delegations
            this.id = x.id
            this.lastUpdated = x.lastUpdated
            this.name = x.name
            this.roles = x.roles
            this.status = x.status
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy