commonMain.aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQueryResult.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
import aws.smithy.kotlin.runtime.SdkDsl
import aws.smithy.kotlin.runtime.time.Instant
/**
* The result of the summary metrics aggregation operation.
*/
public class SummaryMetricQueryResult private constructor(builder: Builder) {
/**
* The aggregation period of the metric.
*/
public val aggregationPeriod: aws.sdk.kotlin.services.iotwireless.model.AggregationPeriod? = builder.aggregationPeriod
/**
* The dimensions of the metric.
*/
public val dimensions: List? = builder.dimensions
/**
* The end timestamp for the summary metric query.
*/
public val endTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.endTimestamp
/**
* The error message for the summary metric query result.
*/
public val error: kotlin.String? = builder.error
/**
* The name of the summary metric query result.
*/
public val metricName: aws.sdk.kotlin.services.iotwireless.model.MetricName? = builder.metricName
/**
* The ID of the summary metric results query operation.
*/
public val queryId: kotlin.String? = builder.queryId
/**
* The status of the summary metric query result.
*/
public val queryStatus: aws.sdk.kotlin.services.iotwireless.model.MetricQueryStatus? = builder.queryStatus
/**
* The start timestamp for the summary metric query.
*/
public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp
/**
* The timestamp of each aggregation result.
*/
public val timestamps: List? = builder.timestamps
/**
* The units of measurement to be used for interpreting the aggregation result.
*/
public val unit: kotlin.String? = builder.unit
/**
* The list of aggregated summary metric query results.
*/
public val values: List? = builder.values
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQueryResult = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SummaryMetricQueryResult(")
append("aggregationPeriod=$aggregationPeriod,")
append("dimensions=$dimensions,")
append("endTimestamp=$endTimestamp,")
append("error=$error,")
append("metricName=$metricName,")
append("queryId=$queryId,")
append("queryStatus=$queryStatus,")
append("startTimestamp=$startTimestamp,")
append("timestamps=$timestamps,")
append("unit=$unit,")
append("values=$values")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = aggregationPeriod?.hashCode() ?: 0
result = 31 * result + (dimensions?.hashCode() ?: 0)
result = 31 * result + (endTimestamp?.hashCode() ?: 0)
result = 31 * result + (error?.hashCode() ?: 0)
result = 31 * result + (metricName?.hashCode() ?: 0)
result = 31 * result + (queryId?.hashCode() ?: 0)
result = 31 * result + (queryStatus?.hashCode() ?: 0)
result = 31 * result + (startTimestamp?.hashCode() ?: 0)
result = 31 * result + (timestamps?.hashCode() ?: 0)
result = 31 * result + (unit?.hashCode() ?: 0)
result = 31 * result + (values?.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 SummaryMetricQueryResult
if (aggregationPeriod != other.aggregationPeriod) return false
if (dimensions != other.dimensions) return false
if (endTimestamp != other.endTimestamp) return false
if (error != other.error) return false
if (metricName != other.metricName) return false
if (queryId != other.queryId) return false
if (queryStatus != other.queryStatus) return false
if (startTimestamp != other.startTimestamp) return false
if (timestamps != other.timestamps) return false
if (unit != other.unit) return false
if (values != other.values) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQueryResult = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The aggregation period of the metric.
*/
public var aggregationPeriod: aws.sdk.kotlin.services.iotwireless.model.AggregationPeriod? = null
/**
* The dimensions of the metric.
*/
public var dimensions: List? = null
/**
* The end timestamp for the summary metric query.
*/
public var endTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The error message for the summary metric query result.
*/
public var error: kotlin.String? = null
/**
* The name of the summary metric query result.
*/
public var metricName: aws.sdk.kotlin.services.iotwireless.model.MetricName? = null
/**
* The ID of the summary metric results query operation.
*/
public var queryId: kotlin.String? = null
/**
* The status of the summary metric query result.
*/
public var queryStatus: aws.sdk.kotlin.services.iotwireless.model.MetricQueryStatus? = null
/**
* The start timestamp for the summary metric query.
*/
public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* The timestamp of each aggregation result.
*/
public var timestamps: List? = null
/**
* The units of measurement to be used for interpreting the aggregation result.
*/
public var unit: kotlin.String? = null
/**
* The list of aggregated summary metric query results.
*/
public var values: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQueryResult) : this() {
this.aggregationPeriod = x.aggregationPeriod
this.dimensions = x.dimensions
this.endTimestamp = x.endTimestamp
this.error = x.error
this.metricName = x.metricName
this.queryId = x.queryId
this.queryStatus = x.queryStatus
this.startTimestamp = x.startTimestamp
this.timestamps = x.timestamps
this.unit = x.unit
this.values = x.values
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQueryResult = SummaryMetricQueryResult(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy