commonMain.aws.sdk.kotlin.services.cloudwatch.model.GetInsightRuleReportResponse.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cloudwatch-jvm Show documentation
Show all versions of cloudwatch-jvm Show documentation
The AWS SDK for Kotlin client for CloudWatch
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.cloudwatch.model
public class GetInsightRuleReportResponse private constructor(builder: Builder) {
/**
* The sum of the values from all individual contributors that match the rule.
*/
public val aggregateValue: kotlin.Double? = builder.aggregateValue
/**
* Specifies whether this rule aggregates contributor data by COUNT or SUM.
*/
public val aggregationStatistic: kotlin.String? = builder.aggregationStatistic
/**
* An approximate count of the unique contributors found by this rule in this time period.
*/
public val approximateUniqueCount: kotlin.Long? = builder.approximateUniqueCount
/**
* An array of the unique contributors found by this rule in this time period. If the rule contains multiple keys, each combination of values for the keys counts as a unique contributor.
*/
public val contributors: List? = builder.contributors
/**
* An array of the strings used as the keys for this rule. The keys are the dimensions used to classify contributors. If the rule contains more than one key, then each unique combination of values for the keys is counted as a unique contributor.
*/
public val keyLabels: List? = builder.keyLabels
/**
* A time series of metric data points that matches the time period in the rule request.
*/
public val metricDatapoints: List? = builder.metricDatapoints
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.cloudwatch.model.GetInsightRuleReportResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetInsightRuleReportResponse(")
append("aggregateValue=$aggregateValue,")
append("aggregationStatistic=$aggregationStatistic,")
append("approximateUniqueCount=$approximateUniqueCount,")
append("contributors=$contributors,")
append("keyLabels=$keyLabels,")
append("metricDatapoints=$metricDatapoints")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregateValue?.hashCode() ?: 0
result = 31 * result + (aggregationStatistic?.hashCode() ?: 0)
result = 31 * result + (approximateUniqueCount?.hashCode() ?: 0)
result = 31 * result + (contributors?.hashCode() ?: 0)
result = 31 * result + (keyLabels?.hashCode() ?: 0)
result = 31 * result + (metricDatapoints?.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 GetInsightRuleReportResponse
if (aggregateValue != other.aggregateValue) return false
if (aggregationStatistic != other.aggregationStatistic) return false
if (approximateUniqueCount != other.approximateUniqueCount) return false
if (contributors != other.contributors) return false
if (keyLabels != other.keyLabels) return false
if (metricDatapoints != other.metricDatapoints) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.cloudwatch.model.GetInsightRuleReportResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The sum of the values from all individual contributors that match the rule.
*/
public var aggregateValue: kotlin.Double? = null
/**
* Specifies whether this rule aggregates contributor data by COUNT or SUM.
*/
public var aggregationStatistic: kotlin.String? = null
/**
* An approximate count of the unique contributors found by this rule in this time period.
*/
public var approximateUniqueCount: kotlin.Long? = null
/**
* An array of the unique contributors found by this rule in this time period. If the rule contains multiple keys, each combination of values for the keys counts as a unique contributor.
*/
public var contributors: List? = null
/**
* An array of the strings used as the keys for this rule. The keys are the dimensions used to classify contributors. If the rule contains more than one key, then each unique combination of values for the keys is counted as a unique contributor.
*/
public var keyLabels: List? = null
/**
* A time series of metric data points that matches the time period in the rule request.
*/
public var metricDatapoints: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.cloudwatch.model.GetInsightRuleReportResponse) : this() {
this.aggregateValue = x.aggregateValue
this.aggregationStatistic = x.aggregationStatistic
this.approximateUniqueCount = x.approximateUniqueCount
this.contributors = x.contributors
this.keyLabels = x.keyLabels
this.metricDatapoints = x.metricDatapoints
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.cloudwatch.model.GetInsightRuleReportResponse = GetInsightRuleReportResponse(this)
internal fun correctErrors(): Builder {
return this
}
}
}