
commonMain.aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Job type.
*/
class JobPostLaunchActionsLaunchStatus private constructor(builder: Builder) {
/**
* Job type.
*/
val executionId: kotlin.String? = builder.executionId
/**
* Job type.
*/
val executionStatus: aws.sdk.kotlin.services.mgn.model.PostLaunchActionExecutionStatus? = builder.executionStatus
/**
* Job type.
*/
val failureReason: kotlin.String? = builder.failureReason
/**
* Job type.
*/
val ssmDocument: aws.sdk.kotlin.services.mgn.model.SsmDocument? = builder.ssmDocument
/**
* Job type.
*/
val ssmDocumentType: aws.sdk.kotlin.services.mgn.model.SsmDocumentType? = builder.ssmDocumentType
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobPostLaunchActionsLaunchStatus(")
append("executionId=$executionId,")
append("executionStatus=$executionStatus,")
append("failureReason=$failureReason,")
append("ssmDocument=$ssmDocument,")
append("ssmDocumentType=$ssmDocumentType)")
}
override fun hashCode(): kotlin.Int {
var result = executionId?.hashCode() ?: 0
result = 31 * result + (executionStatus?.hashCode() ?: 0)
result = 31 * result + (failureReason?.hashCode() ?: 0)
result = 31 * result + (ssmDocument?.hashCode() ?: 0)
result = 31 * result + (ssmDocumentType?.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 JobPostLaunchActionsLaunchStatus
if (executionId != other.executionId) return false
if (executionStatus != other.executionStatus) return false
if (failureReason != other.failureReason) return false
if (ssmDocument != other.ssmDocument) return false
if (ssmDocumentType != other.ssmDocumentType) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus = Builder(this).apply(block).build()
class Builder {
/**
* Job type.
*/
var executionId: kotlin.String? = null
/**
* Job type.
*/
var executionStatus: aws.sdk.kotlin.services.mgn.model.PostLaunchActionExecutionStatus? = null
/**
* Job type.
*/
var failureReason: kotlin.String? = null
/**
* Job type.
*/
var ssmDocument: aws.sdk.kotlin.services.mgn.model.SsmDocument? = null
/**
* Job type.
*/
var ssmDocumentType: aws.sdk.kotlin.services.mgn.model.SsmDocumentType? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus) : this() {
this.executionId = x.executionId
this.executionStatus = x.executionStatus
this.failureReason = x.failureReason
this.ssmDocument = x.ssmDocument
this.ssmDocumentType = x.ssmDocumentType
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.JobPostLaunchActionsLaunchStatus = JobPostLaunchActionsLaunchStatus(this)
/**
* construct an [aws.sdk.kotlin.services.mgn.model.SsmDocument] inside the given [block]
*/
fun ssmDocument(block: aws.sdk.kotlin.services.mgn.model.SsmDocument.Builder.() -> kotlin.Unit) {
this.ssmDocument = aws.sdk.kotlin.services.mgn.model.SsmDocument.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy