
commonMain.aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecution.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
/**
* Describes which mitigation actions should be executed.
*/
public class DetectMitigationActionExecution private constructor(builder: Builder) {
/**
* The friendly name that uniquely identifies the mitigation action.
*/
public val actionName: kotlin.String? = builder.actionName
/**
* The error code of a mitigation action.
*/
public val errorCode: kotlin.String? = builder.errorCode
/**
* The date a mitigation action ended.
*/
public val executionEndDate: aws.smithy.kotlin.runtime.time.Instant? = builder.executionEndDate
/**
* The date a mitigation action was started.
*/
public val executionStartDate: aws.smithy.kotlin.runtime.time.Instant? = builder.executionStartDate
/**
* The message of a mitigation action.
*/
public val message: kotlin.String? = builder.message
/**
* The status of a mitigation action.
*/
public val status: aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecutionStatus? = builder.status
/**
* The unique identifier of the task.
*/
public val taskId: kotlin.String? = builder.taskId
/**
* The name of the thing.
*/
public val thingName: kotlin.String? = builder.thingName
/**
* The unique identifier of the violation.
*/
public val violationId: kotlin.String? = builder.violationId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecution = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("DetectMitigationActionExecution(")
append("actionName=$actionName,")
append("errorCode=$errorCode,")
append("executionEndDate=$executionEndDate,")
append("executionStartDate=$executionStartDate,")
append("message=$message,")
append("status=$status,")
append("taskId=$taskId,")
append("thingName=$thingName,")
append("violationId=$violationId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = actionName?.hashCode() ?: 0
result = 31 * result + (errorCode?.hashCode() ?: 0)
result = 31 * result + (executionEndDate?.hashCode() ?: 0)
result = 31 * result + (executionStartDate?.hashCode() ?: 0)
result = 31 * result + (message?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (taskId?.hashCode() ?: 0)
result = 31 * result + (thingName?.hashCode() ?: 0)
result = 31 * result + (violationId?.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 DetectMitigationActionExecution
if (actionName != other.actionName) return false
if (errorCode != other.errorCode) return false
if (executionEndDate != other.executionEndDate) return false
if (executionStartDate != other.executionStartDate) return false
if (message != other.message) return false
if (status != other.status) return false
if (taskId != other.taskId) return false
if (thingName != other.thingName) return false
if (violationId != other.violationId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecution = Builder(this).apply(block).build()
public class Builder {
/**
* The friendly name that uniquely identifies the mitigation action.
*/
public var actionName: kotlin.String? = null
/**
* The error code of a mitigation action.
*/
public var errorCode: kotlin.String? = null
/**
* The date a mitigation action ended.
*/
public var executionEndDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The date a mitigation action was started.
*/
public var executionStartDate: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The message of a mitigation action.
*/
public var message: kotlin.String? = null
/**
* The status of a mitigation action.
*/
public var status: aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecutionStatus? = null
/**
* The unique identifier of the task.
*/
public var taskId: kotlin.String? = null
/**
* The name of the thing.
*/
public var thingName: kotlin.String? = null
/**
* The unique identifier of the violation.
*/
public var violationId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecution) : this() {
this.actionName = x.actionName
this.errorCode = x.errorCode
this.executionEndDate = x.executionEndDate
this.executionStartDate = x.executionStartDate
this.message = x.message
this.status = x.status
this.taskId = x.taskId
this.thingName = x.thingName
this.violationId = x.violationId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.DetectMitigationActionExecution = DetectMitigationActionExecution(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy