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