commonMain.aws.sdk.kotlin.services.devopsguru.model.AnomalySourceDetails.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of devopsguru-jvm Show documentation
Show all versions of devopsguru-jvm Show documentation
The AWS SDK for Kotlin client for DevOps Guru
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.devopsguru.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Details about the source of the anomalous operational data that triggered the anomaly.
*/
public class AnomalySourceDetails private constructor(builder: Builder) {
/**
* An array of `CloudWatchMetricsDetail` objects that contain information about analyzed CloudWatch metrics that show anomalous behavior.
*/
public val cloudWatchMetrics: List? = builder.cloudWatchMetrics
/**
* An array of `PerformanceInsightsMetricsDetail` objects that contain information about analyzed Performance Insights metrics that show anomalous behavior.
*/
public val performanceInsightsMetrics: List? = builder.performanceInsightsMetrics
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceDetails = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("AnomalySourceDetails(")
append("cloudWatchMetrics=$cloudWatchMetrics,")
append("performanceInsightsMetrics=$performanceInsightsMetrics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = cloudWatchMetrics?.hashCode() ?: 0
result = 31 * result + (performanceInsightsMetrics?.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 AnomalySourceDetails
if (cloudWatchMetrics != other.cloudWatchMetrics) return false
if (performanceInsightsMetrics != other.performanceInsightsMetrics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceDetails = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* An array of `CloudWatchMetricsDetail` objects that contain information about analyzed CloudWatch metrics that show anomalous behavior.
*/
public var cloudWatchMetrics: List? = null
/**
* An array of `PerformanceInsightsMetricsDetail` objects that contain information about analyzed Performance Insights metrics that show anomalous behavior.
*/
public var performanceInsightsMetrics: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.AnomalySourceDetails) : this() {
this.cloudWatchMetrics = x.cloudWatchMetrics
this.performanceInsightsMetrics = x.performanceInsightsMetrics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.AnomalySourceDetails = AnomalySourceDetails(this)
internal fun correctErrors(): Builder {
return this
}
}
}