
commonMain.aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskStatistics.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* The statistics of a mitigation action task.
*/
public class DetectMitigationActionsTaskStatistics private constructor(builder: Builder) {
/**
* The actions that were performed.
*/
public val actionsExecuted: kotlin.Long? = builder.actionsExecuted
/**
* The actions that failed.
*/
public val actionsFailed: kotlin.Long? = builder.actionsFailed
/**
* The actions that were skipped.
*/
public val actionsSkipped: kotlin.Long? = builder.actionsSkipped
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskStatistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectMitigationActionsTaskStatistics(")
append("actionsExecuted=$actionsExecuted,")
append("actionsFailed=$actionsFailed,")
append("actionsSkipped=$actionsSkipped")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionsExecuted?.hashCode() ?: 0
result = 31 * result + (actionsFailed?.hashCode() ?: 0)
result = 31 * result + (actionsSkipped?.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 DetectMitigationActionsTaskStatistics
if (actionsExecuted != other.actionsExecuted) return false
if (actionsFailed != other.actionsFailed) return false
if (actionsSkipped != other.actionsSkipped) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskStatistics = Builder(this).apply(block).build()
public class Builder {
/**
* The actions that were performed.
*/
public var actionsExecuted: kotlin.Long? = null
/**
* The actions that failed.
*/
public var actionsFailed: kotlin.Long? = null
/**
* The actions that were skipped.
*/
public var actionsSkipped: kotlin.Long? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskStatistics) : this() {
this.actionsExecuted = x.actionsExecuted
this.actionsFailed = x.actionsFailed
this.actionsSkipped = x.actionsSkipped
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DetectMitigationActionsTaskStatistics = DetectMitigationActionsTaskStatistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy