
commonMain.aws.sdk.kotlin.services.mgn.model.JobLogEventData.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mgn.model
/**
* Job log data
*/
class JobLogEventData private constructor(builder: Builder) {
/**
* Job Event conversion Server ID.
*/
val conversionServerId: kotlin.String? = builder.conversionServerId
/**
* Job error.
*/
val rawError: kotlin.String? = builder.rawError
/**
* Job Event Source Server ID.
*/
val sourceServerId: kotlin.String? = builder.sourceServerId
/**
* Job Event Target instance ID.
*/
val targetInstanceId: kotlin.String? = builder.targetInstanceId
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.mgn.model.JobLogEventData = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("JobLogEventData(")
append("conversionServerId=$conversionServerId,")
append("rawError=$rawError,")
append("sourceServerId=$sourceServerId,")
append("targetInstanceId=$targetInstanceId)")
}
override fun hashCode(): kotlin.Int {
var result = conversionServerId?.hashCode() ?: 0
result = 31 * result + (rawError?.hashCode() ?: 0)
result = 31 * result + (sourceServerId?.hashCode() ?: 0)
result = 31 * result + (targetInstanceId?.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 JobLogEventData
if (conversionServerId != other.conversionServerId) return false
if (rawError != other.rawError) return false
if (sourceServerId != other.sourceServerId) return false
if (targetInstanceId != other.targetInstanceId) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mgn.model.JobLogEventData = Builder(this).apply(block).build()
class Builder {
/**
* Job Event conversion Server ID.
*/
var conversionServerId: kotlin.String? = null
/**
* Job error.
*/
var rawError: kotlin.String? = null
/**
* Job Event Source Server ID.
*/
var sourceServerId: kotlin.String? = null
/**
* Job Event Target instance ID.
*/
var targetInstanceId: kotlin.String? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mgn.model.JobLogEventData) : this() {
this.conversionServerId = x.conversionServerId
this.rawError = x.rawError
this.sourceServerId = x.sourceServerId
this.targetInstanceId = x.targetInstanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mgn.model.JobLogEventData = JobLogEventData(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy