
commonMain.aws.sdk.kotlin.services.xray.model.FaultRootCause.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The root cause information for a trace summary fault.
*/
public class FaultRootCause private constructor(builder: Builder) {
/**
* A flag that denotes that the root cause impacts the trace client.
*/
public val clientImpacting: kotlin.Boolean? = builder.clientImpacting
/**
* A list of corresponding services. A service identifies a segment and it contains a name, account ID, type, and inferred flag.
*/
public val services: List? = builder.services
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.FaultRootCause = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FaultRootCause(")
append("clientImpacting=$clientImpacting,")
append("services=$services")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientImpacting?.hashCode() ?: 0
result = 31 * result + (services?.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 FaultRootCause
if (clientImpacting != other.clientImpacting) return false
if (services != other.services) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.FaultRootCause = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A flag that denotes that the root cause impacts the trace client.
*/
public var clientImpacting: kotlin.Boolean? = null
/**
* A list of corresponding services. A service identifies a segment and it contains a name, account ID, type, and inferred flag.
*/
public var services: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.FaultRootCause) : this() {
this.clientImpacting = x.clientImpacting
this.services = x.services
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.FaultRootCause = FaultRootCause(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy