
commonMain.aws.sdk.kotlin.services.codeguruprofiler.model.RemoveNotificationChannelRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.codeguruprofiler.model
/**
* The structure representing the RemoveNotificationChannelRequest.
*/
public class RemoveNotificationChannelRequest private constructor(builder: Builder) {
/**
* The id of the channel that we want to stop receiving notifications.
*/
public val channelId: kotlin.String? = requireNotNull(builder.channelId) { "A non-null value must be provided for channelId" }
/**
* The name of the profiling group we want to change notification configuration for.
*/
public val profilingGroupName: kotlin.String? = requireNotNull(builder.profilingGroupName) { "A non-null value must be provided for profilingGroupName" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.codeguruprofiler.model.RemoveNotificationChannelRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("RemoveNotificationChannelRequest(")
append("channelId=$channelId,")
append("profilingGroupName=$profilingGroupName")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = channelId?.hashCode() ?: 0
result = 31 * result + (profilingGroupName?.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 RemoveNotificationChannelRequest
if (channelId != other.channelId) return false
if (profilingGroupName != other.profilingGroupName) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.codeguruprofiler.model.RemoveNotificationChannelRequest = Builder(this).apply(block).build()
public class Builder {
/**
* The id of the channel that we want to stop receiving notifications.
*/
public var channelId: kotlin.String? = null
/**
* The name of the profiling group we want to change notification configuration for.
*/
public var profilingGroupName: kotlin.String? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.codeguruprofiler.model.RemoveNotificationChannelRequest) : this() {
this.channelId = x.channelId
this.profilingGroupName = x.profilingGroupName
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.codeguruprofiler.model.RemoveNotificationChannelRequest = RemoveNotificationChannelRequest(this)
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy