
commonMain.aws.sdk.kotlin.services.iot.model.TaskStatisticsForAuditCheck.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* Provides summary counts of how many tasks for findings are in a particular state. This information is included in the response from DescribeAuditMitigationActionsTask.
*/
public class TaskStatisticsForAuditCheck private constructor(builder: Builder) {
/**
* The number of findings to which the mitigation action task was canceled when applied.
*/
public val canceledFindingsCount: kotlin.Long? = builder.canceledFindingsCount
/**
* The number of findings for which at least one of the actions failed when applied.
*/
public val failedFindingsCount: kotlin.Long? = builder.failedFindingsCount
/**
* The number of findings skipped because of filter conditions provided in the parameters to the command.
*/
public val skippedFindingsCount: kotlin.Long? = builder.skippedFindingsCount
/**
* The number of findings for which all mitigation actions succeeded when applied.
*/
public val succeededFindingsCount: kotlin.Long? = builder.succeededFindingsCount
/**
* The total number of findings to which a task is being applied.
*/
public val totalFindingsCount: kotlin.Long? = builder.totalFindingsCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.TaskStatisticsForAuditCheck = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("TaskStatisticsForAuditCheck(")
append("canceledFindingsCount=$canceledFindingsCount,")
append("failedFindingsCount=$failedFindingsCount,")
append("skippedFindingsCount=$skippedFindingsCount,")
append("succeededFindingsCount=$succeededFindingsCount,")
append("totalFindingsCount=$totalFindingsCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = canceledFindingsCount?.hashCode() ?: 0
result = 31 * result + (failedFindingsCount?.hashCode() ?: 0)
result = 31 * result + (skippedFindingsCount?.hashCode() ?: 0)
result = 31 * result + (succeededFindingsCount?.hashCode() ?: 0)
result = 31 * result + (totalFindingsCount?.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 TaskStatisticsForAuditCheck
if (canceledFindingsCount != other.canceledFindingsCount) return false
if (failedFindingsCount != other.failedFindingsCount) return false
if (skippedFindingsCount != other.skippedFindingsCount) return false
if (succeededFindingsCount != other.succeededFindingsCount) return false
if (totalFindingsCount != other.totalFindingsCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.TaskStatisticsForAuditCheck = Builder(this).apply(block).build()
public class Builder {
/**
* The number of findings to which the mitigation action task was canceled when applied.
*/
public var canceledFindingsCount: kotlin.Long? = null
/**
* The number of findings for which at least one of the actions failed when applied.
*/
public var failedFindingsCount: kotlin.Long? = null
/**
* The number of findings skipped because of filter conditions provided in the parameters to the command.
*/
public var skippedFindingsCount: kotlin.Long? = null
/**
* The number of findings for which all mitigation actions succeeded when applied.
*/
public var succeededFindingsCount: kotlin.Long? = null
/**
* The total number of findings to which a task is being applied.
*/
public var totalFindingsCount: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.TaskStatisticsForAuditCheck) : this() {
this.canceledFindingsCount = x.canceledFindingsCount
this.failedFindingsCount = x.failedFindingsCount
this.skippedFindingsCount = x.skippedFindingsCount
this.succeededFindingsCount = x.succeededFindingsCount
this.totalFindingsCount = x.totalFindingsCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.TaskStatisticsForAuditCheck = TaskStatisticsForAuditCheck(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy