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

commonMain.aws.sdk.kotlin.services.iot.model.DescribeAuditMitigationActionsTaskResponse.kt Maven / Gradle / Ivy

// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.iot.model

import aws.smithy.kotlin.runtime.time.Instant

public class DescribeAuditMitigationActionsTaskResponse private constructor(builder: Builder) {
    /**
     * Specifies the mitigation actions and their parameters that are applied as part of this task.
     */
    public val actionsDefinition: List? = builder.actionsDefinition
    /**
     * Specifies the mitigation actions that should be applied to specific audit checks.
     */
    public val auditCheckToActionsMapping: Map>? = builder.auditCheckToActionsMapping
    /**
     * The date and time when the task was completed or canceled.
     */
    public val endTime: aws.smithy.kotlin.runtime.time.Instant? = builder.endTime
    /**
     * The date and time when the task was started.
     */
    public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
    /**
     * Identifies the findings to which the mitigation actions are applied. This can be by audit checks, by audit task, or a set of findings.
     */
    public val target: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskTarget? = builder.target
    /**
     * Aggregate counts of the results when the mitigation tasks were applied to the findings for this audit mitigation actions task.
     */
    public val taskStatistics: Map? = builder.taskStatistics
    /**
     * The current status of the task.
     */
    public val taskStatus: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskStatus? = builder.taskStatus

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

    override fun toString(): kotlin.String = buildString {
        append("DescribeAuditMitigationActionsTaskResponse(")
        append("actionsDefinition=$actionsDefinition,")
        append("auditCheckToActionsMapping=$auditCheckToActionsMapping,")
        append("endTime=$endTime,")
        append("startTime=$startTime,")
        append("target=$target,")
        append("taskStatistics=$taskStatistics,")
        append("taskStatus=$taskStatus")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = actionsDefinition?.hashCode() ?: 0
        result = 31 * result + (auditCheckToActionsMapping?.hashCode() ?: 0)
        result = 31 * result + (endTime?.hashCode() ?: 0)
        result = 31 * result + (startTime?.hashCode() ?: 0)
        result = 31 * result + (target?.hashCode() ?: 0)
        result = 31 * result + (taskStatistics?.hashCode() ?: 0)
        result = 31 * result + (taskStatus?.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 DescribeAuditMitigationActionsTaskResponse

        if (actionsDefinition != other.actionsDefinition) return false
        if (auditCheckToActionsMapping != other.auditCheckToActionsMapping) return false
        if (endTime != other.endTime) return false
        if (startTime != other.startTime) return false
        if (target != other.target) return false
        if (taskStatistics != other.taskStatistics) return false
        if (taskStatus != other.taskStatus) return false

        return true
    }

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

    public class Builder {
        /**
         * Specifies the mitigation actions and their parameters that are applied as part of this task.
         */
        public var actionsDefinition: List? = null
        /**
         * Specifies the mitigation actions that should be applied to specific audit checks.
         */
        public var auditCheckToActionsMapping: Map>? = null
        /**
         * The date and time when the task was completed or canceled.
         */
        public var endTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The date and time when the task was started.
         */
        public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * Identifies the findings to which the mitigation actions are applied. This can be by audit checks, by audit task, or a set of findings.
         */
        public var target: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskTarget? = null
        /**
         * Aggregate counts of the results when the mitigation tasks were applied to the findings for this audit mitigation actions task.
         */
        public var taskStatistics: Map? = null
        /**
         * The current status of the task.
         */
        public var taskStatus: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskStatus? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iot.model.DescribeAuditMitigationActionsTaskResponse) : this() {
            this.actionsDefinition = x.actionsDefinition
            this.auditCheckToActionsMapping = x.auditCheckToActionsMapping
            this.endTime = x.endTime
            this.startTime = x.startTime
            this.target = x.target
            this.taskStatistics = x.taskStatistics
            this.taskStatus = x.taskStatus
        }

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

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy