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

commonMain.aws.sdk.kotlin.services.auditmanager.model.AssessmentMetadata.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

/**
 * The metadata that's associated with the specified assessment.
 */
public class AssessmentMetadata private constructor(builder: Builder) {
    /**
     * The destination that evidence reports are stored in for the assessment.
     */
    public val assessmentReportsDestination: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination? = builder.assessmentReportsDestination
    /**
     * 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 description of the assessment.
     */
    public val description: kotlin.String? = builder.description
    /**
     * 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 wrapper of Amazon Web Services accounts and services that are in scope for the assessment.
     */
    public val scope: aws.sdk.kotlin.services.auditmanager.model.Scope? = builder.scope
    /**
     * The overall 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.AssessmentMetadata = Builder().apply(block).build()
    }

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

    override fun hashCode(): kotlin.Int {
        var result = assessmentReportsDestination?.hashCode() ?: 0
        result = 31 * result + (complianceType?.hashCode() ?: 0)
        result = 31 * result + (creationTime?.hashCode() ?: 0)
        result = 31 * result + (delegations?.hashCode() ?: 0)
        result = 31 * result + (description?.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 + (scope?.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 AssessmentMetadata

        if (assessmentReportsDestination != other.assessmentReportsDestination) return false
        if (complianceType != other.complianceType) return false
        if (creationTime != other.creationTime) return false
        if (delegations != other.delegations) return false
        if (description != other.description) 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 (scope != other.scope) return false
        if (status != other.status) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The destination that evidence reports are stored in for the assessment.
         */
        public var assessmentReportsDestination: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination? = null
        /**
         * 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 description of the assessment.
         */
        public var description: kotlin.String? = 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 wrapper of Amazon Web Services accounts and services that are in scope for the assessment.
         */
        public var scope: aws.sdk.kotlin.services.auditmanager.model.Scope? = null
        /**
         * The overall 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.AssessmentMetadata) : this() {
            this.assessmentReportsDestination = x.assessmentReportsDestination
            this.complianceType = x.complianceType
            this.creationTime = x.creationTime
            this.delegations = x.delegations
            this.description = x.description
            this.id = x.id
            this.lastUpdated = x.lastUpdated
            this.name = x.name
            this.roles = x.roles
            this.scope = x.scope
            this.status = x.status
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination] inside the given [block]
         */
        public fun assessmentReportsDestination(block: aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination.Builder.() -> kotlin.Unit) {
            this.assessmentReportsDestination = aws.sdk.kotlin.services.auditmanager.model.AssessmentReportsDestination.invoke(block)
        }

        /**
         * construct an [aws.sdk.kotlin.services.auditmanager.model.Scope] inside the given [block]
         */
        public fun scope(block: aws.sdk.kotlin.services.auditmanager.model.Scope.Builder.() -> kotlin.Unit) {
            this.scope = aws.sdk.kotlin.services.auditmanager.model.Scope.invoke(block)
        }

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy