commonMain.aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of configservice-jvm Show documentation
Show all versions of configservice-jvm Show documentation
The AWS SDK for Kotlin client for Config Service
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.configservice.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* Provides details of the current status of the invoked remediation action for that resource.
*/
public class RemediationExecutionStatus private constructor(builder: Builder) {
/**
* Start time when the remediation was executed.
*/
public val invocationTime: aws.smithy.kotlin.runtime.time.Instant? = builder.invocationTime
/**
* The time when the remediation execution was last updated.
*/
public 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.
*/
public val resourceKey: aws.sdk.kotlin.services.configservice.model.ResourceKey? = builder.resourceKey
/**
* ENUM of the values.
*/
public val state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionState? = builder.state
/**
* Details of every step.
*/
public val stepDetails: List? = builder.stepDetails
public companion object {
public 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")
append(")")
}
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
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStatus = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Start time when the remediation was executed.
*/
public var invocationTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The time when the remediation execution was last updated.
*/
public var lastUpdatedTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The details that identify a resource within Config, including the resource type and resource ID.
*/
public var resourceKey: aws.sdk.kotlin.services.configservice.model.ResourceKey? = null
/**
* ENUM of the values.
*/
public var state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionState? = null
/**
* Details of every step.
*/
public var stepDetails: List? = null
@PublishedApi
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]
*/
public fun resourceKey(block: aws.sdk.kotlin.services.configservice.model.ResourceKey.Builder.() -> kotlin.Unit) {
this.resourceKey = aws.sdk.kotlin.services.configservice.model.ResourceKey.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}