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

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

public class UpdateAssessmentFrameworkRequest private constructor(builder: Builder) {
    /**
     * The compliance type that the new custom framework supports, such as CIS or HIPAA.
     */
    public val complianceType: kotlin.String? = builder.complianceType
    /**
     * The control sets that are associated with the framework.
     */
    public val controlSets: List? = builder.controlSets
    /**
     * The description of the updated framework.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The unique identifier for the framework.
     */
    public val frameworkId: kotlin.String? = builder.frameworkId
    /**
     * The name of the framework to be updated.
     */
    public val name: kotlin.String? = builder.name

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

    override fun toString(): kotlin.String = buildString {
        append("UpdateAssessmentFrameworkRequest(")
        append("complianceType=*** Sensitive Data Redacted ***,")
        append("controlSets=$controlSets,")
        append("description=$description,")
        append("frameworkId=$frameworkId,")
        append("name=$name")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = complianceType?.hashCode() ?: 0
        result = 31 * result + (controlSets?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (frameworkId?.hashCode() ?: 0)
        result = 31 * result + (name?.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 UpdateAssessmentFrameworkRequest

        if (complianceType != other.complianceType) return false
        if (controlSets != other.controlSets) return false
        if (description != other.description) return false
        if (frameworkId != other.frameworkId) return false
        if (name != other.name) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The compliance type that the new custom framework supports, such as CIS or HIPAA.
         */
        public var complianceType: kotlin.String? = null
        /**
         * The control sets that are associated with the framework.
         */
        public var controlSets: List? = null
        /**
         * The description of the updated framework.
         */
        public var description: kotlin.String? = null
        /**
         * The unique identifier for the framework.
         */
        public var frameworkId: kotlin.String? = null
        /**
         * The name of the framework to be updated.
         */
        public var name: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.UpdateAssessmentFrameworkRequest) : this() {
            this.complianceType = x.complianceType
            this.controlSets = x.controlSets
            this.description = x.description
            this.frameworkId = x.frameworkId
            this.name = x.name
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy