
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.Channel.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* Notification medium for users to get alerted for events that occur in application profile. We support SNS topic as a notification channel.
*/
public class Channel private constructor(builder: Builder) {
/**
* List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.
*/
public val eventPublishers: List? = builder.eventPublishers
/**
* Unique identifier for each `Channel` in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.
*/
public val id: kotlin.String? = builder.id
/**
* Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.
*/
public val uri: kotlin.String? = builder.uri
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.Channel = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Channel(")
append("eventPublishers=$eventPublishers,")
append("id=$id,")
append("uri=$uri")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = eventPublishers?.hashCode() ?: 0
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (uri?.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 Channel
if (eventPublishers != other.eventPublishers) return false
if (id != other.id) return false
if (uri != other.uri) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.Channel = Builder(this).apply(block).build()
public class Builder {
/**
* List of publishers for different type of events that may be detected in an application from the profile. Anomaly detection is the only event publisher in Profiler.
*/
public var eventPublishers: List? = null
/**
* Unique identifier for each `Channel` in the notification configuration of a Profiling Group. A random UUID for channelId is used when adding a channel to the notification configuration if not specified in the request.
*/
public var id: kotlin.String? = null
/**
* Unique arn of the resource to be used for notifications. We support a valid SNS topic arn as a channel uri.
*/
public var uri: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.Channel) : this() {
this.eventPublishers = x.eventPublishers
this.id = x.id
this.uri = x.uri
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.Channel = Channel(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy