
commonMain.aws.sdk.kotlin.services.iot.model.GetStatisticsResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iot.model
public class GetStatisticsResponse private constructor(builder: Builder) {
/**
* The statistics returned by the Fleet Indexing service based on the query and aggregation field.
*/
public val statistics: aws.sdk.kotlin.services.iot.model.Statistics? = builder.statistics
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iot.model.GetStatisticsResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetStatisticsResponse(")
append("statistics=$statistics")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = statistics?.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 GetStatisticsResponse
if (statistics != other.statistics) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iot.model.GetStatisticsResponse = Builder(this).apply(block).build()
public class Builder {
/**
* The statistics returned by the Fleet Indexing service based on the query and aggregation field.
*/
public var statistics: aws.sdk.kotlin.services.iot.model.Statistics? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iot.model.GetStatisticsResponse) : this() {
this.statistics = x.statistics
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iot.model.GetStatisticsResponse = GetStatisticsResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iot.model.Statistics] inside the given [block]
*/
public fun statistics(block: aws.sdk.kotlin.services.iot.model.Statistics.Builder.() -> kotlin.Unit) {
this.statistics = aws.sdk.kotlin.services.iot.model.Statistics.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy