
commonMain.aws.sdk.kotlin.services.ssm.model.GetExecutionPreviewResponse.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
import aws.smithy.kotlin.runtime.time.Instant
public class GetExecutionPreviewResponse private constructor(builder: Builder) {
/**
* A UTC timestamp indicating when the execution preview operation ended.
*/
public val endedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.endedAt
/**
* Information about the changes that would be made if an execution were run.
*/
public val executionPreview: aws.sdk.kotlin.services.ssm.model.ExecutionPreview? = builder.executionPreview
/**
* The generated ID for the existing execution preview.
*/
public val executionPreviewId: kotlin.String? = builder.executionPreviewId
/**
* The current status of the execution preview operation.
*/
public val status: aws.sdk.kotlin.services.ssm.model.ExecutionPreviewStatus? = builder.status
/**
* Supplemental information about the current status of the execution preview.
*/
public val statusMessage: kotlin.String? = builder.statusMessage
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.ssm.model.GetExecutionPreviewResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetExecutionPreviewResponse(")
append("endedAt=$endedAt,")
append("executionPreview=$executionPreview,")
append("executionPreviewId=$executionPreviewId,")
append("status=$status,")
append("statusMessage=$statusMessage")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = endedAt?.hashCode() ?: 0
result = 31 * result + (executionPreview?.hashCode() ?: 0)
result = 31 * result + (executionPreviewId?.hashCode() ?: 0)
result = 31 * result + (status?.hashCode() ?: 0)
result = 31 * result + (statusMessage?.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 GetExecutionPreviewResponse
if (endedAt != other.endedAt) return false
if (executionPreview != other.executionPreview) return false
if (executionPreviewId != other.executionPreviewId) return false
if (status != other.status) return false
if (statusMessage != other.statusMessage) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.ssm.model.GetExecutionPreviewResponse = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A UTC timestamp indicating when the execution preview operation ended.
*/
public var endedAt: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* Information about the changes that would be made if an execution were run.
*/
public var executionPreview: aws.sdk.kotlin.services.ssm.model.ExecutionPreview? = null
/**
* The generated ID for the existing execution preview.
*/
public var executionPreviewId: kotlin.String? = null
/**
* The current status of the execution preview operation.
*/
public var status: aws.sdk.kotlin.services.ssm.model.ExecutionPreviewStatus? = null
/**
* Supplemental information about the current status of the execution preview.
*/
public var statusMessage: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.ssm.model.GetExecutionPreviewResponse) : this() {
this.endedAt = x.endedAt
this.executionPreview = x.executionPreview
this.executionPreviewId = x.executionPreviewId
this.status = x.status
this.statusMessage = x.statusMessage
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.ssm.model.GetExecutionPreviewResponse = GetExecutionPreviewResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy