
commonMain.aws.sdk.kotlin.services.ssm.model.GetAutomationExecutionResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.ssm.model
import aws.smithy.kotlin.runtime.SdkDsl
public class GetAutomationExecutionResponse private constructor(builder: Builder) {
/**
* Detailed information about the current state of an automation execution.
*/
public val automationExecution: aws.sdk.kotlin.services.ssm.model.AutomationExecution? = builder.automationExecution
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetAutomationExecutionResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetAutomationExecutionResponse(")
append("automationExecution=$automationExecution")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = automationExecution?.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 GetAutomationExecutionResponse
if (automationExecution != other.automationExecution) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetAutomationExecutionResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Detailed information about the current state of an automation execution.
*/
public var automationExecution: aws.sdk.kotlin.services.ssm.model.AutomationExecution? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetAutomationExecutionResponse) : this() {
this.automationExecution = x.automationExecution
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetAutomationExecutionResponse = GetAutomationExecutionResponse(this)
/**
* construct an [aws.sdk.kotlin.services.ssm.model.AutomationExecution] inside the given [block]
*/
public fun automationExecution(block: aws.sdk.kotlin.services.ssm.model.AutomationExecution.Builder.() -> kotlin.Unit) {
this.automationExecution = aws.sdk.kotlin.services.ssm.model.AutomationExecution.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy