
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.NotificationConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* The configuration for notifications stored for each profiling group. This includes up to to two channels and a list of event publishers associated with each channel.
*/
public class NotificationConfiguration private constructor(builder: Builder) {
/**
* List of up to two channels to be used for sending notifications for events detected from the application profile.
*/
public val channels: List? = builder.channels
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.NotificationConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("NotificationConfiguration(")
append("channels=$channels")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channels?.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 (channels != other.channels) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.NotificationConfiguration = Builder(this).apply(block).build()
public class Builder {
/**
* List of up to two channels to be used for sending notifications for events detected from the application profile.
*/
public var channels: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.NotificationConfiguration) : this() {
this.channels = x.channels
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.NotificationConfiguration = NotificationConfiguration(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy