commonMain.aws.sdk.kotlin.services.configservice.model.RemediationExecutionStep.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
The newest version!
// 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
/**
* Name of the step from the SSM document.
*/
public class RemediationExecutionStep private constructor(builder: Builder) {
/**
* An error message if the step was interrupted during execution.
*/
public val errorMessage: kotlin.String? = builder.errorMessage
/**
* The details of the step.
*/
public val name: kotlin.String? = builder.name
/**
* The time when the step started.
*/
public val startTime: aws.smithy.kotlin.runtime.time.Instant? = builder.startTime
/**
* The valid status of the step.
*/
public val state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionStepState? = builder.state
/**
* The time when the step stopped.
*/
public val stopTime: aws.smithy.kotlin.runtime.time.Instant? = builder.stopTime
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStep = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemediationExecutionStep(")
append("errorMessage=$errorMessage,")
append("name=$name,")
append("startTime=$startTime,")
append("state=$state,")
append("stopTime=$stopTime")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = errorMessage?.hashCode() ?: 0
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (startTime?.hashCode() ?: 0)
result = 31 * result + (state?.hashCode() ?: 0)
result = 31 * result + (stopTime?.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 RemediationExecutionStep
if (errorMessage != other.errorMessage) return false
if (name != other.name) return false
if (startTime != other.startTime) return false
if (state != other.state) return false
if (stopTime != other.stopTime) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStep = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An error message if the step was interrupted during execution.
*/
public var errorMessage: kotlin.String? = null
/**
* The details of the step.
*/
public var name: kotlin.String? = null
/**
* The time when the step started.
*/
public var startTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The valid status of the step.
*/
public var state: aws.sdk.kotlin.services.configservice.model.RemediationExecutionStepState? = null
/**
* The time when the step stopped.
*/
public var stopTime: aws.smithy.kotlin.runtime.time.Instant? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.configservice.model.RemediationExecutionStep) : this() {
this.errorMessage = x.errorMessage
this.name = x.name
this.startTime = x.startTime
this.state = x.state
this.stopTime = x.stopTime
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.configservice.model.RemediationExecutionStep = RemediationExecutionStep(this)
internal fun correctErrors(): Builder {
return this
}
}
}