commonMain.aws.sdk.kotlin.services.dataexchange.model.SendDataSetNotificationRequest.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dataexchange-jvm Show documentation
Show all versions of dataexchange-jvm Show documentation
The AWS Kotlin client for DataExchange
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.dataexchange.model
import aws.smithy.kotlin.runtime.SdkDsl
public class SendDataSetNotificationRequest private constructor(builder: Builder) {
/**
* Idempotency key for the notification, this key allows us to deduplicate notifications that are sent in quick succession erroneously.
*/
public val clientToken: kotlin.String? = builder.clientToken
/**
* Free-form text field for providers to add information about their notifications.
*/
public val comment: kotlin.String? = builder.comment
/**
* Affected data set of the notification.
*/
public val dataSetId: kotlin.String? = builder.dataSetId
/**
* Extra details specific to this notification type.
*/
public val details: aws.sdk.kotlin.services.dataexchange.model.NotificationDetails? = builder.details
/**
* Affected scope of this notification such as the underlying resources affected by the notification event.
*/
public val scope: aws.sdk.kotlin.services.dataexchange.model.ScopeDetails? = builder.scope
/**
* The type of the notification. Describing the kind of event the notification is alerting you to.
*/
public val type: aws.sdk.kotlin.services.dataexchange.model.NotificationType? = builder.type
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.dataexchange.model.SendDataSetNotificationRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendDataSetNotificationRequest(")
append("clientToken=$clientToken,")
append("comment=$comment,")
append("dataSetId=$dataSetId,")
append("details=$details,")
append("scope=$scope,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = clientToken?.hashCode() ?: 0
result = 31 * result + (comment?.hashCode() ?: 0)
result = 31 * result + (dataSetId?.hashCode() ?: 0)
result = 31 * result + (details?.hashCode() ?: 0)
result = 31 * result + (scope?.hashCode() ?: 0)
result = 31 * result + (type?.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 SendDataSetNotificationRequest
if (clientToken != other.clientToken) return false
if (comment != other.comment) return false
if (dataSetId != other.dataSetId) return false
if (details != other.details) return false
if (scope != other.scope) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.dataexchange.model.SendDataSetNotificationRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Idempotency key for the notification, this key allows us to deduplicate notifications that are sent in quick succession erroneously.
*/
public var clientToken: kotlin.String? = null
/**
* Free-form text field for providers to add information about their notifications.
*/
public var comment: kotlin.String? = null
/**
* Affected data set of the notification.
*/
public var dataSetId: kotlin.String? = null
/**
* Extra details specific to this notification type.
*/
public var details: aws.sdk.kotlin.services.dataexchange.model.NotificationDetails? = null
/**
* Affected scope of this notification such as the underlying resources affected by the notification event.
*/
public var scope: aws.sdk.kotlin.services.dataexchange.model.ScopeDetails? = null
/**
* The type of the notification. Describing the kind of event the notification is alerting you to.
*/
public var type: aws.sdk.kotlin.services.dataexchange.model.NotificationType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.dataexchange.model.SendDataSetNotificationRequest) : this() {
this.clientToken = x.clientToken
this.comment = x.comment
this.dataSetId = x.dataSetId
this.details = x.details
this.scope = x.scope
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.dataexchange.model.SendDataSetNotificationRequest = SendDataSetNotificationRequest(this)
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.NotificationDetails] inside the given [block]
*/
public fun details(block: aws.sdk.kotlin.services.dataexchange.model.NotificationDetails.Builder.() -> kotlin.Unit) {
this.details = aws.sdk.kotlin.services.dataexchange.model.NotificationDetails.invoke(block)
}
/**
* construct an [aws.sdk.kotlin.services.dataexchange.model.ScopeDetails] inside the given [block]
*/
public fun scope(block: aws.sdk.kotlin.services.dataexchange.model.ScopeDetails.Builder.() -> kotlin.Unit) {
this.scope = aws.sdk.kotlin.services.dataexchange.model.ScopeDetails.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}