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

commonMain.aws.sdk.kotlin.services.auditmanager.model.CreateControlRequest.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 CreateControlRequest private constructor(builder: Builder) {
    /**
     * The recommended actions to carry out if the control isn't fulfilled.
     */
    public val actionPlanInstructions: kotlin.String? = builder.actionPlanInstructions
    /**
     * The title of the action plan for remediating the control.
     */
    public val actionPlanTitle: kotlin.String? = builder.actionPlanTitle
    /**
     * The data mapping sources for the control.
     */
    public val controlMappingSources: List? = builder.controlMappingSources
    /**
     * The description of the control.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The name of the control.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The tags that are associated with the control.
     */
    public val tags: Map? = builder.tags
    /**
     * The steps to follow to determine if the control is satisfied.
     */
    public val testingInformation: kotlin.String? = builder.testingInformation

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

    override fun toString(): kotlin.String = buildString {
        append("CreateControlRequest(")
        append("actionPlanInstructions=*** Sensitive Data Redacted ***,")
        append("actionPlanTitle=*** Sensitive Data Redacted ***,")
        append("controlMappingSources=$controlMappingSources,")
        append("description=*** Sensitive Data Redacted ***,")
        append("name=$name,")
        append("tags=$tags,")
        append("testingInformation=*** Sensitive Data Redacted ***")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionPlanInstructions?.hashCode() ?: 0
        result = 31 * result + (actionPlanTitle?.hashCode() ?: 0)
        result = 31 * result + (controlMappingSources?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (tags?.hashCode() ?: 0)
        result = 31 * result + (testingInformation?.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 CreateControlRequest

        if (actionPlanInstructions != other.actionPlanInstructions) return false
        if (actionPlanTitle != other.actionPlanTitle) return false
        if (controlMappingSources != other.controlMappingSources) return false
        if (description != other.description) return false
        if (name != other.name) return false
        if (tags != other.tags) return false
        if (testingInformation != other.testingInformation) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The recommended actions to carry out if the control isn't fulfilled.
         */
        public var actionPlanInstructions: kotlin.String? = null
        /**
         * The title of the action plan for remediating the control.
         */
        public var actionPlanTitle: kotlin.String? = null
        /**
         * The data mapping sources for the control.
         */
        public var controlMappingSources: List? = null
        /**
         * The description of the control.
         */
        public var description: kotlin.String? = null
        /**
         * The name of the control.
         */
        public var name: kotlin.String? = null
        /**
         * The tags that are associated with the control.
         */
        public var tags: Map? = null
        /**
         * The steps to follow to determine if the control is satisfied.
         */
        public var testingInformation: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.auditmanager.model.CreateControlRequest) : this() {
            this.actionPlanInstructions = x.actionPlanInstructions
            this.actionPlanTitle = x.actionPlanTitle
            this.controlMappingSources = x.controlMappingSources
            this.description = x.description
            this.name = x.name
            this.tags = x.tags
            this.testingInformation = x.testingInformation
        }

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy