commonMain.aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricsDataSummary.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
/**
* Contains information about the analyzed metrics that displayed anomalous behavior.
*/
public class CloudWatchMetricsDataSummary private constructor(builder: Builder) {
/**
* This is an enum of the status showing whether the metric value pair list has partial or complete data, or if there was an error.
*/
public val statusCode: aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricDataStatusCode? = builder.statusCode
/**
* This is a list of Amazon CloudWatch metric values at given timestamp.
*/
public val timestampMetricValuePairList: List? = builder.timestampMetricValuePairList
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricsDataSummary = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("CloudWatchMetricsDataSummary(")
append("statusCode=$statusCode,")
append("timestampMetricValuePairList=$timestampMetricValuePairList")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statusCode?.hashCode() ?: 0
result = 31 * result + (timestampMetricValuePairList?.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 CloudWatchMetricsDataSummary
if (statusCode != other.statusCode) return false
if (timestampMetricValuePairList != other.timestampMetricValuePairList) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricsDataSummary = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* This is an enum of the status showing whether the metric value pair list has partial or complete data, or if there was an error.
*/
public var statusCode: aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricDataStatusCode? = null
/**
* This is a list of Amazon CloudWatch metric values at given timestamp.
*/
public var timestampMetricValuePairList: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricsDataSummary) : this() {
this.statusCode = x.statusCode
this.timestampMetricValuePairList = x.timestampMetricValuePairList
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.devopsguru.model.CloudWatchMetricsDataSummary = CloudWatchMetricsDataSummary(this)
internal fun correctErrors(): Builder {
return this
}
}
}