commonMain.aws.sdk.kotlin.services.glue.model.Edge.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An edge represents a directed connection between two Glue components that are part of the workflow the edge belongs to.
*/
public class Edge private constructor(builder: Builder) {
/**
* The unique of the node within the workflow where the edge ends.
*/
public val destinationId: kotlin.String? = builder.destinationId
/**
* The unique of the node within the workflow where the edge starts.
*/
public val sourceId: kotlin.String? = builder.sourceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.Edge = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Edge(")
append("destinationId=$destinationId,")
append("sourceId=$sourceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = destinationId?.hashCode() ?: 0
result = 31 * result + (sourceId?.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 Edge
if (destinationId != other.destinationId) return false
if (sourceId != other.sourceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.Edge = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The unique of the node within the workflow where the edge ends.
*/
public var destinationId: kotlin.String? = null
/**
* The unique of the node within the workflow where the edge starts.
*/
public var sourceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.Edge) : this() {
this.destinationId = x.destinationId
this.sourceId = x.sourceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.Edge = Edge(this)
internal fun correctErrors(): Builder {
return this
}
}
}