
commonMain.aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides details of the current status of the invoked remediation action for that resource.
*/
class RemediationExecutionStatus private constructor(builder: Builder) {
/**
* Start time when the remediation was executed.
*/
val invocationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.invocationTime
/**
* The time when the remediation execution was last updated.
*/
val lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = builder.lastUpdatedTime
/**
* The details that identify a resource within Config, including the resource type and resource ID.
*/
val resourceKey: aws.sdk.kotlin.services.configservice.model.ResourceKey? = builder.resourceKey
/**
* ENUM of the values.
*/
val state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionState? = builder.state
/**
* Details of every step.
*/
val stepDetails: List? = builder.stepDetails
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemediationExecutionStatus(")
append("invocationTime=$invocationTime,")
append("lastUpdatedTime=$lastUpdatedTime,")
append("resourceKey=$resourceKey,")
append("state=$state,")
append("stepDetails=$stepDetails)")
}
override fun hashCode(): kotlin.Int {
var result = invocationTime?.hashCode() ?: 0
result = 31 * result + (lastUpdatedTime?.hashCode() ?: 0)
result = 31 * result + (resourceKey?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (stepDetails?.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 RemediationExecutionStatus
if (invocationTime != other.invocationTime) return false
if (lastUpdatedTime != other.lastUpdatedTime) return false
if (resourceKey != other.resourceKey) return false
if (state != other.state) return false
if (stepDetails != other.stepDetails) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus = Builder(this).apply(block).build()
class Builder {
/**
* Start time when the remediation was executed.
*/
var invocationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time when the remediation execution was last updated.
*/
var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The details that identify a resource within Config, including the resource type and resource ID.
*/
var resourceKey: aws.sdk.kotlin.services.configservice.model.ResourceKey? = null
/**
* ENUM of the values.
*/
var state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionState? = null
/**
* Details of every step.
*/
var stepDetails: List? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus) : this() {
this.invocationTime = x.invocationTime
this.lastUpdatedTime = x.lastUpdatedTime
this.resourceKey = x.resourceKey
this.state = x.state
this.stepDetails = x.stepDetails
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus = RemediationExecutionStatus(this)
/**
* construct an [aws.sdk.kotlin.services.configservice.model.ResourceKey] inside the given [block]
*/
fun resourceKey(block: aws.sdk.kotlin.services.configservice.model.ResourceKey.Builder.() -> kotlin.Unit) {
this.resourceKey = aws.sdk.kotlin.services.configservice.model.ResourceKey.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy