
commonMain.aws.sdk.kotlin.services.xray.model.InsightsConfiguration.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.xray.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* The structure containing configurations related to insights.
*/
public class InsightsConfiguration private constructor(builder: Builder) {
/**
* Set the InsightsEnabled value to true to enable insights or false to disable insights.
*/
public val insightsEnabled: kotlin.Boolean? = builder.insightsEnabled
/**
* Set the NotificationsEnabled value to true to enable insights notifications. Notifications can only be enabled on a group with InsightsEnabled set to true.
*/
public val notificationsEnabled: kotlin.Boolean? = builder.notificationsEnabled
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.xray.model.InsightsConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("InsightsConfiguration(")
append("insightsEnabled=$insightsEnabled,")
append("notificationsEnabled=$notificationsEnabled")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = insightsEnabled?.hashCode() ?: 0
result = 31 * result + (notificationsEnabled?.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 InsightsConfiguration
if (insightsEnabled != other.insightsEnabled) return false
if (notificationsEnabled != other.notificationsEnabled) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.xray.model.InsightsConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Set the InsightsEnabled value to true to enable insights or false to disable insights.
*/
public var insightsEnabled: kotlin.Boolean? = null
/**
* Set the NotificationsEnabled value to true to enable insights notifications. Notifications can only be enabled on a group with InsightsEnabled set to true.
*/
public var notificationsEnabled: kotlin.Boolean? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.xray.model.InsightsConfiguration) : this() {
this.insightsEnabled = x.insightsEnabled
this.notificationsEnabled = x.notificationsEnabled
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.xray.model.InsightsConfiguration = InsightsConfiguration(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy