commonMain.aws.sdk.kotlin.services.timestreamquery.model.NotificationConfiguration.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of timestreamquery-jvm Show documentation
Show all versions of timestreamquery-jvm Show documentation
The AWS SDK for Kotlin client for Timestream Query
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.timestreamquery.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Notification configuration for a scheduled query. A notification is sent by Timestream when a scheduled query is created, its state is updated or when it is deleted.
*/
public class NotificationConfiguration private constructor(builder: Builder) {
/**
* Details on SNS configuration.
*/
public val snsConfiguration: aws.sdk.kotlin.services.timestreamquery.model.SnsConfiguration? = builder.snsConfiguration
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.timestreamquery.model.NotificationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NotificationConfiguration(")
append("snsConfiguration=$snsConfiguration")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = snsConfiguration?.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 NotificationConfiguration
if (snsConfiguration != other.snsConfiguration) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.timestreamquery.model.NotificationConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Details on SNS configuration.
*/
public var snsConfiguration: aws.sdk.kotlin.services.timestreamquery.model.SnsConfiguration? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.timestreamquery.model.NotificationConfiguration) : this() {
this.snsConfiguration = x.snsConfiguration
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.timestreamquery.model.NotificationConfiguration = NotificationConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.timestreamquery.model.SnsConfiguration] inside the given [block]
*/
public fun snsConfiguration(block: aws.sdk.kotlin.services.timestreamquery.model.SnsConfiguration.Builder.() -> kotlin.Unit) {
this.snsConfiguration = aws.sdk.kotlin.services.timestreamquery.model.SnsConfiguration.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}