commonMain.aws.sdk.kotlin.services.lookoutmetrics.model.ItemizedMetricStats.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lookoutmetrics-jvm Show documentation
Show all versions of lookoutmetrics-jvm Show documentation
The AWS SDK for Kotlin client for LookoutMetrics
The newest version!
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.lookoutmetrics.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Aggregated statistics about a measure affected by an anomaly.
*/
public class ItemizedMetricStats private constructor(builder: Builder) {
/**
* The name of the measure.
*/
public val metricName: kotlin.String? = builder.metricName
/**
* The number of times that the measure appears.
*/
public val occurrenceCount: kotlin.Int = builder.occurrenceCount
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.lookoutmetrics.model.ItemizedMetricStats = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ItemizedMetricStats(")
append("metricName=$metricName,")
append("occurrenceCount=$occurrenceCount")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = metricName?.hashCode() ?: 0
result = 31 * result + (occurrenceCount)
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 ItemizedMetricStats
if (metricName != other.metricName) return false
if (occurrenceCount != other.occurrenceCount) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.lookoutmetrics.model.ItemizedMetricStats = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The name of the measure.
*/
public var metricName: kotlin.String? = null
/**
* The number of times that the measure appears.
*/
public var occurrenceCount: kotlin.Int = 0
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.lookoutmetrics.model.ItemizedMetricStats) : this() {
this.metricName = x.metricName
this.occurrenceCount = x.occurrenceCount
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.lookoutmetrics.model.ItemizedMetricStats = ItemizedMetricStats(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy