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

commonMain.aws.sdk.kotlin.services.auditmanager.model.CreateAssessmentFrameworkRequest.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 CreateAssessmentFrameworkRequest 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
    /**
     * An optional description for the new custom framework.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the new custom framework.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The tags that are associated with the framework.
     */
    public val tags: Map? = builder.tags

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

    override fun toString(): kotlin.String = buildString {
        append("CreateAssessmentFrameworkRequest(")
        append("complianceType=*** Sensitive Data Redacted ***,")
        append("controlSets=$controlSets,")
        append("description=$description,")
        append("name=$name,")
        append("tags=$tags")
        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 + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.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 CreateAssessmentFrameworkRequest

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

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.auditmanager.model.CreateAssessmentFrameworkRequest = 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
        /**
         * An optional description for the new custom framework.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the new custom framework.
         */
        public var name: kotlin.String? = null
        /**
         * The tags that are associated with the framework.
         */
        public var tags: Map? = null

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy