
commonMain.aws.sdk.kotlin.services.iot.model.Statistics.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
/**
* A map of key-value pairs for all supported statistics. For issues with missing or unexpected values for this API, consult [ Fleet indexing troubleshooting guide](https://docs.aws.amazon.com/iot/latest/developerguide/fleet-indexing-troubleshooting.html).
*/
public class Statistics private constructor(builder: Builder) {
/**
* The average of the aggregated field values.
*/
public val average: kotlin.Double? = builder.average
/**
* The count of things that match the query string criteria and contain a valid aggregation field value.
*/
public val count: kotlin.Int = builder.count
/**
* The maximum aggregated field value.
*/
public val maximum: kotlin.Double? = builder.maximum
/**
* The minimum aggregated field value.
*/
public val minimum: kotlin.Double? = builder.minimum
/**
* The standard deviation of the aggregated field values.
*/
public val stdDeviation: kotlin.Double? = builder.stdDeviation
/**
* The sum of the aggregated field values.
*/
public val sum: kotlin.Double? = builder.sum
/**
* The sum of the squares of the aggregated field values.
*/
public val sumOfSquares: kotlin.Double? = builder.sumOfSquares
/**
* The variance of the aggregated field values.
*/
public val variance: kotlin.Double? = builder.variance
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.Statistics = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("Statistics(")
append("average=$average,")
append("count=$count,")
append("maximum=$maximum,")
append("minimum=$minimum,")
append("stdDeviation=$stdDeviation,")
append("sum=$sum,")
append("sumOfSquares=$sumOfSquares,")
append("variance=$variance")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = average?.hashCode() ?: 0
result = 31 * result + (count)
result = 31 * result + (maximum?.hashCode() ?: 0)
result = 31 * result + (minimum?.hashCode() ?: 0)
result = 31 * result + (stdDeviation?.hashCode() ?: 0)
result = 31 * result + (sum?.hashCode() ?: 0)
result = 31 * result + (sumOfSquares?.hashCode() ?: 0)
result = 31 * result + (variance?.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 Statistics
if (average != other.average) return false
if (count != other.count) return false
if (maximum != other.maximum) return false
if (minimum != other.minimum) return false
if (stdDeviation != other.stdDeviation) return false
if (sum != other.sum) return false
if (sumOfSquares != other.sumOfSquares) return false
if (variance != other.variance) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.Statistics = Builder(this).apply(block).build()
public class Builder {
/**
* The average of the aggregated field values.
*/
public var average: kotlin.Double? = null
/**
* The count of things that match the query string criteria and contain a valid aggregation field value.
*/
public var count: kotlin.Int = 0
/**
* The maximum aggregated field value.
*/
public var maximum: kotlin.Double? = null
/**
* The minimum aggregated field value.
*/
public var minimum: kotlin.Double? = null
/**
* The standard deviation of the aggregated field values.
*/
public var stdDeviation: kotlin.Double? = null
/**
* The sum of the aggregated field values.
*/
public var sum: kotlin.Double? = null
/**
* The sum of the squares of the aggregated field values.
*/
public var sumOfSquares: kotlin.Double? = null
/**
* The variance of the aggregated field values.
*/
public var variance: kotlin.Double? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.Statistics) : this() {
this.average = x.average
this.count = x.count
this.maximum = x.maximum
this.minimum = x.minimum
this.stdDeviation = x.stdDeviation
this.sum = x.sum
this.sumOfSquares = x.sumOfSquares
this.variance = x.variance
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.Statistics = Statistics(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy