All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.datazone.model.LineageNodeSummary.kt Maven / Gradle / Ivy

There is a newer version: 1.3.76
Show newest version
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!

package aws.sdk.kotlin.services.datazone.model

import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant

/**
 * The summary of the data lineage node.
 */
public class LineageNodeSummary private constructor(builder: Builder) {
    /**
     * The timestamp at which the data lineage node was created.
     */
    public val createdAt: aws.smithy.kotlin.runtime.time.Instant? = builder.createdAt
    /**
     * The user who created the data lineage node.
     */
    public val createdBy: kotlin.String? = builder.createdBy
    /**
     * The description of the data lineage node.
     */
    public val description: kotlin.String? = builder.description
    /**
     * The ID of the domain of the data lineage node.
     */
    public val domainId: kotlin.String = requireNotNull(builder.domainId) { "A non-null value must be provided for domainId" }
    /**
     * The event timestamp of the data lineage node.
     */
    public val eventTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.eventTimestamp
    /**
     * The ID of the data lineage node.
     */
    public val id: kotlin.String = requireNotNull(builder.id) { "A non-null value must be provided for id" }
    /**
     * The name of the data lineage node.
     */
    public val name: kotlin.String? = builder.name
    /**
     * The alternate ID of the data lineage node.
     */
    public val sourceIdentifier: kotlin.String? = builder.sourceIdentifier
    /**
     * The name of the type of the data lineage node.
     */
    public val typeName: kotlin.String = requireNotNull(builder.typeName) { "A non-null value must be provided for typeName" }
    /**
     * The type of the revision of the data lineage node.
     */
    public val typeRevision: kotlin.String? = builder.typeRevision
    /**
     * The timestamp at which the data lineage node was updated.
     */
    public val updatedAt: aws.smithy.kotlin.runtime.time.Instant? = builder.updatedAt
    /**
     * The user who updated the data lineage node.
     */
    public val updatedBy: kotlin.String? = builder.updatedBy

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.LineageNodeSummary = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("LineageNodeSummary(")
        append("createdAt=$createdAt,")
        append("createdBy=$createdBy,")
        append("description=$description,")
        append("domainId=$domainId,")
        append("eventTimestamp=$eventTimestamp,")
        append("id=$id,")
        append("name=$name,")
        append("sourceIdentifier=$sourceIdentifier,")
        append("typeName=$typeName,")
        append("typeRevision=$typeRevision,")
        append("updatedAt=$updatedAt,")
        append("updatedBy=$updatedBy")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = createdAt?.hashCode() ?: 0
        result = 31 * result + (createdBy?.hashCode() ?: 0)
        result = 31 * result + (description?.hashCode() ?: 0)
        result = 31 * result + (domainId.hashCode())
        result = 31 * result + (eventTimestamp?.hashCode() ?: 0)
        result = 31 * result + (id.hashCode())
        result = 31 * result + (name?.hashCode() ?: 0)
        result = 31 * result + (sourceIdentifier?.hashCode() ?: 0)
        result = 31 * result + (typeName.hashCode())
        result = 31 * result + (typeRevision?.hashCode() ?: 0)
        result = 31 * result + (updatedAt?.hashCode() ?: 0)
        result = 31 * result + (updatedBy?.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 LineageNodeSummary

        if (createdAt != other.createdAt) return false
        if (createdBy != other.createdBy) return false
        if (description != other.description) return false
        if (domainId != other.domainId) return false
        if (eventTimestamp != other.eventTimestamp) return false
        if (id != other.id) return false
        if (name != other.name) return false
        if (sourceIdentifier != other.sourceIdentifier) return false
        if (typeName != other.typeName) return false
        if (typeRevision != other.typeRevision) return false
        if (updatedAt != other.updatedAt) return false
        if (updatedBy != other.updatedBy) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.LineageNodeSummary = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The timestamp at which the data lineage node was created.
         */
        public var createdAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The user who created the data lineage node.
         */
        public var createdBy: kotlin.String? = null
        /**
         * The description of the data lineage node.
         */
        public var description: kotlin.String? = null
        /**
         * The ID of the domain of the data lineage node.
         */
        public var domainId: kotlin.String? = null
        /**
         * The event timestamp of the data lineage node.
         */
        public var eventTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The ID of the data lineage node.
         */
        public var id: kotlin.String? = null
        /**
         * The name of the data lineage node.
         */
        public var name: kotlin.String? = null
        /**
         * The alternate ID of the data lineage node.
         */
        public var sourceIdentifier: kotlin.String? = null
        /**
         * The name of the type of the data lineage node.
         */
        public var typeName: kotlin.String? = null
        /**
         * The type of the revision of the data lineage node.
         */
        public var typeRevision: kotlin.String? = null
        /**
         * The timestamp at which the data lineage node was updated.
         */
        public var updatedAt: aws.smithy.kotlin.runtime.time.Instant? = null
        /**
         * The user who updated the data lineage node.
         */
        public var updatedBy: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.datazone.model.LineageNodeSummary) : this() {
            this.createdAt = x.createdAt
            this.createdBy = x.createdBy
            this.description = x.description
            this.domainId = x.domainId
            this.eventTimestamp = x.eventTimestamp
            this.id = x.id
            this.name = x.name
            this.sourceIdentifier = x.sourceIdentifier
            this.typeName = x.typeName
            this.typeRevision = x.typeRevision
            this.updatedAt = x.updatedAt
            this.updatedBy = x.updatedBy
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.datazone.model.LineageNodeSummary = LineageNodeSummary(this)

        internal fun correctErrors(): Builder {
            if (domainId == null) domainId = ""
            if (id == null) id = ""
            if (typeName == null) typeName = ""
            return this
        }
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy