commonMain.aws.sdk.kotlin.services.datazone.model.PostLineageEventRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of datazone-jvm Show documentation
Show all versions of datazone-jvm Show documentation
The AWS SDK for Kotlin client for DataZone
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.datazone.model
import aws.smithy.kotlin.runtime.SdkDsl
public class PostLineageEventRequest private constructor(builder: Builder) {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The ID of the domain where you want to post a data lineage event.
*/
public val domainIdentifier: kotlin.String? = builder.domainIdentifier
/**
* The data lineage event that you want to post. Only open-lineage run event are supported as events.
*/
public val event: kotlin.ByteArray? = builder.event
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.datazone.model.PostLineageEventRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("PostLineageEventRequest(")
append("clientToken=$clientToken,")
append("domainIdentifier=$domainIdentifier,")
append("event=*** Sensitive Data Redacted ***")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (domainIdentifier?.hashCode() ?: 0)
result = 31 * result + (event?.contentHashCode() ?: 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 PostLineageEventRequest
if (clientToken != other.clientToken) return false
if (domainIdentifier != other.domainIdentifier) return false
if (event != null) {
if (other.event == null) return false
if (!event.contentEquals(other.event)) return false
} else if (other.event != null) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.datazone.model.PostLineageEventRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A unique, case-sensitive identifier that is provided to ensure the idempotency of the request.
*/
public var clientToken: kotlin.String? = null
/**
* The ID of the domain where you want to post a data lineage event.
*/
public var domainIdentifier: kotlin.String? = null
/**
* The data lineage event that you want to post. Only open-lineage run event are supported as events.
*/
public var event: kotlin.ByteArray? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.datazone.model.PostLineageEventRequest) : this() {
this.clientToken = x.clientToken
this.domainIdentifier = x.domainIdentifier
this.event = x.event
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.datazone.model.PostLineageEventRequest = PostLineageEventRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy