commonMain.aws.sdk.kotlin.services.xray.model.InsightImpactGraphEdge.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of xray-jvm Show documentation
Show all versions of xray-jvm Show documentation
The AWS SDK for Kotlin client for XRay
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The connection between two service in an insight impact graph.
*/
public class InsightImpactGraphEdge private constructor(builder: Builder) {
/**
* Identifier of the edge. Unique within a service map.
*/
public val referenceId: kotlin.Int? = builder.referenceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.InsightImpactGraphEdge = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InsightImpactGraphEdge(")
append("referenceId=$referenceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = referenceId ?: 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 InsightImpactGraphEdge
if (referenceId != other.referenceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.InsightImpactGraphEdge = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Identifier of the edge. Unique within a service map.
*/
public var referenceId: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.InsightImpactGraphEdge) : this() {
this.referenceId = x.referenceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.InsightImpactGraphEdge = InsightImpactGraphEdge(this)
internal fun correctErrors(): Builder {
return this
}
}
}