commonMain.aws.sdk.kotlin.services.supplychain.model.SendDataIntegrationEventRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of supplychain-jvm Show documentation
Show all versions of supplychain-jvm Show documentation
The AWS SDK for Kotlin client for SupplyChain
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.supplychain.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The request parameters for SendDataIntegrationEvent.
*/
public class SendDataIntegrationEventRequest private constructor(builder: Builder) {
/**
* The idempotent client token.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* The data payload of the event.
*/
public val data: kotlin.String? = builder.data
/**
* Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.
*/
public val eventGroupId: kotlin.String? = builder.eventGroupId
/**
* The event timestamp (in epoch seconds).
*/
public val eventTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.eventTimestamp
/**
* The data event type.
*/
public val eventType: aws.sdk.kotlin.services.supplychain.model.DataIntegrationEventType? = builder.eventType
/**
* The AWS Supply Chain instance identifier.
*/
public val instanceId: kotlin.String? = builder.instanceId
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.supplychain.model.SendDataIntegrationEventRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendDataIntegrationEventRequest(")
append("clientToken=$clientToken,")
append("data=*** Sensitive Data Redacted ***,")
append("eventGroupId=$eventGroupId,")
append("eventTimestamp=$eventTimestamp,")
append("eventType=$eventType,")
append("instanceId=$instanceId")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (data?.hashCode() ?: 0)
result = 31 * result + (eventGroupId?.hashCode() ?: 0)
result = 31 * result + (eventTimestamp?.hashCode() ?: 0)
result = 31 * result + (eventType?.hashCode() ?: 0)
result = 31 * result + (instanceId?.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 SendDataIntegrationEventRequest
if (clientToken != other.clientToken) return false
if (data != other.data) return false
if (eventGroupId != other.eventGroupId) return false
if (eventTimestamp != other.eventTimestamp) return false
if (eventType != other.eventType) return false
if (instanceId != other.instanceId) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.supplychain.model.SendDataIntegrationEventRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The idempotent client token.
*/
public var clientToken: kotlin.String? = null
/**
* The data payload of the event.
*/
public var data: kotlin.String? = null
/**
* Event identifier (for example, orderId for InboundOrder) used for data sharing or partitioning.
*/
public var eventGroupId: kotlin.String? = null
/**
* The event timestamp (in epoch seconds).
*/
public var eventTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The data event type.
*/
public var eventType: aws.sdk.kotlin.services.supplychain.model.DataIntegrationEventType? = null
/**
* The AWS Supply Chain instance identifier.
*/
public var instanceId: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.supplychain.model.SendDataIntegrationEventRequest) : this() {
this.clientToken = x.clientToken
this.data = x.data
this.eventGroupId = x.eventGroupId
this.eventTimestamp = x.eventTimestamp
this.eventType = x.eventType
this.instanceId = x.instanceId
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.supplychain.model.SendDataIntegrationEventRequest = SendDataIntegrationEventRequest(this)
internal fun correctErrors(): Builder {
return this
}
}
}