
commonMain.aws.sdk.kotlin.services.iot.model.StartAuditMitigationActionsTaskRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class StartAuditMitigationActionsTaskRequest private constructor(builder: Builder) {
/**
* For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.
*/
public val auditCheckToActionsMapping: Map>? = builder.auditCheckToActionsMapping
/**
* Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.
*/
public val clientRequestToken: kotlin.String? = builder.clientRequestToken
/**
* Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
*/
public val target: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskTarget? = builder.target
/**
* A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.
*/
public val taskId: kotlin.String? = builder.taskId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.StartAuditMitigationActionsTaskRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("StartAuditMitigationActionsTaskRequest(")
append("auditCheckToActionsMapping=$auditCheckToActionsMapping,")
append("clientRequestToken=$clientRequestToken,")
append("target=$target,")
append("taskId=$taskId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = auditCheckToActionsMapping?.hashCode() ?: 0
result = 31 * result + (clientRequestToken?.hashCode() ?: 0)
result = 31 * result + (target?.hashCode() ?: 0)
result = 31 * result + (taskId?.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 StartAuditMitigationActionsTaskRequest
if (auditCheckToActionsMapping != other.auditCheckToActionsMapping) return false
if (clientRequestToken != other.clientRequestToken) return false
if (target != other.target) return false
if (taskId != other.taskId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.StartAuditMitigationActionsTaskRequest = Builder(this).apply(block).build()
public class Builder {
/**
* For an audit check, specifies which mitigation actions to apply. Those actions must be defined in your Amazon Web Services accounts.
*/
public var auditCheckToActionsMapping: Map>? = null
/**
* Each audit mitigation task must have a unique client request token. If you try to start a new task with the same token as a task that already exists, an exception occurs. If you omit this value, a unique client request token is generated automatically.
*/
public var clientRequestToken: kotlin.String? = null
/**
* Specifies the audit findings to which the mitigation actions are applied. You can apply them to a type of audit check, to all findings from an audit, or to a specific set of findings.
*/
public var target: aws.sdk.kotlin.services.iot.model.AuditMitigationActionsTaskTarget? = null
/**
* A unique identifier for the task. You can use this identifier to check the status of the task or to cancel it.
*/
public var taskId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.StartAuditMitigationActionsTaskRequest) : this() {
this.auditCheckToActionsMapping = x.auditCheckToActionsMapping
this.clientRequestToken = x.clientRequestToken
this.target = x.target
this.taskId = x.taskId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.StartAuditMitigationActionsTaskRequest = StartAuditMitigationActionsTaskRequest(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