commonMain.aws.sdk.kotlin.services.glue.model.Node.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of glue-jvm Show documentation
Show all versions of glue-jvm Show documentation
The AWS SDK for Kotlin client for Glue
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.glue.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* A node represents an Glue component (trigger, crawler, or job) on a workflow graph.
*/
public class Node private constructor(builder: Builder) {
/**
* Details of the crawler when the node represents a crawler.
*/
public val crawlerDetails: aws.sdk.kotlin.services.glue.model.CrawlerNodeDetails? = builder.crawlerDetails
/**
* Details of the Job when the node represents a Job.
*/
public val jobDetails: aws.sdk.kotlin.services.glue.model.JobNodeDetails? = builder.jobDetails
/**
* The name of the Glue component represented by the node.
*/
public val name: kotlin.String? = builder.name
/**
* Details of the Trigger when the node represents a Trigger.
*/
public val triggerDetails: aws.sdk.kotlin.services.glue.model.TriggerNodeDetails? = builder.triggerDetails
/**
* The type of Glue component represented by the node.
*/
public val type: aws.sdk.kotlin.services.glue.model.NodeType? = builder.type
/**
* The unique Id assigned to the node within the workflow.
*/
public val uniqueId: kotlin.String? = builder.uniqueId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.glue.model.Node = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Node(")
append("crawlerDetails=$crawlerDetails,")
append("jobDetails=$jobDetails,")
append("name=$name,")
append("triggerDetails=$triggerDetails,")
append("type=$type,")
append("uniqueId=$uniqueId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = crawlerDetails?.hashCode() ?: 0
result = 31 * result + (jobDetails?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (triggerDetails?.hashCode() ?: 0)
result = 31 * result + (type?.hashCode() ?: 0)
result = 31 * result + (uniqueId?.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 Node
if (crawlerDetails != other.crawlerDetails) return false
if (jobDetails != other.jobDetails) return false
if (name != other.name) return false
if (triggerDetails != other.triggerDetails) return false
if (type != other.type) return false
if (uniqueId != other.uniqueId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.glue.model.Node = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Details of the crawler when the node represents a crawler.
*/
public var crawlerDetails: aws.sdk.kotlin.services.glue.model.CrawlerNodeDetails? = null
/**
* Details of the Job when the node represents a Job.
*/
public var jobDetails: aws.sdk.kotlin.services.glue.model.JobNodeDetails? = null
/**
* The name of the Glue component represented by the node.
*/
public var name: kotlin.String? = null
/**
* Details of the Trigger when the node represents a Trigger.
*/
public var triggerDetails: aws.sdk.kotlin.services.glue.model.TriggerNodeDetails? = null
/**
* The type of Glue component represented by the node.
*/
public var type: aws.sdk.kotlin.services.glue.model.NodeType? = null
/**
* The unique Id assigned to the node within the workflow.
*/
public var uniqueId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.glue.model.Node) : this() {
this.crawlerDetails = x.crawlerDetails
this.jobDetails = x.jobDetails
this.name = x.name
this.triggerDetails = x.triggerDetails
this.type = x.type
this.uniqueId = x.uniqueId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.glue.model.Node = Node(this)
/**
* construct an [aws.sdk.kotlin.services.glue.model.CrawlerNodeDetails] inside the given [block]
*/
public fun crawlerDetails(block: aws.sdk.kotlin.services.glue.model.CrawlerNodeDetails.Builder.() -> kotlin.Unit) {
this.crawlerDetails = aws.sdk.kotlin.services.glue.model.CrawlerNodeDetails.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.JobNodeDetails] inside the given [block]
*/
public fun jobDetails(block: aws.sdk.kotlin.services.glue.model.JobNodeDetails.Builder.() -> kotlin.Unit) {
this.jobDetails = aws.sdk.kotlin.services.glue.model.JobNodeDetails.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.glue.model.TriggerNodeDetails] inside the given [block]
*/
public fun triggerDetails(block: aws.sdk.kotlin.services.glue.model.TriggerNodeDetails.Builder.() -> kotlin.Unit) {
this.triggerDetails = aws.sdk.kotlin.services.glue.model.TriggerNodeDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}