All Downloads are FREE. Search and download functionalities are using the official Maven repository.

commonMain.aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQuery.kt Maven / Gradle / Ivy

There is a newer version: 1.3.99
Show newest version
// 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 summary metric query object.
 */
public class SummaryMetricQuery private constructor(builder: Builder) {
    /**
     * The aggregation period of the summary metric.
     */
    public val aggregationPeriod: aws.sdk.kotlin.services.iotwireless.model.AggregationPeriod? = builder.aggregationPeriod
    /**
     * The dimensions of the summary 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 name of the metric.
     */
    public val metricName: aws.sdk.kotlin.services.iotwireless.model.MetricName? = builder.metricName
    /**
     * The id of the summary metric query.
     */
    public val queryId: kotlin.String? = builder.queryId
    /**
     * The start timestamp for the summary metric query.
     */
    public val startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = builder.startTimestamp

    public companion object {
        public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQuery = Builder().apply(block).build()
    }

    override fun toString(): kotlin.String = buildString {
        append("SummaryMetricQuery(")
        append("aggregationPeriod=$aggregationPeriod,")
        append("dimensions=$dimensions,")
        append("endTimestamp=$endTimestamp,")
        append("metricName=$metricName,")
        append("queryId=$queryId,")
        append("startTimestamp=$startTimestamp")
        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 + (metricName?.hashCode() ?: 0)
        result = 31 * result + (queryId?.hashCode() ?: 0)
        result = 31 * result + (startTimestamp?.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 SummaryMetricQuery

        if (aggregationPeriod != other.aggregationPeriod) return false
        if (dimensions != other.dimensions) return false
        if (endTimestamp != other.endTimestamp) return false
        if (metricName != other.metricName) return false
        if (queryId != other.queryId) return false
        if (startTimestamp != other.startTimestamp) return false

        return true
    }

    public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQuery = Builder(this).apply(block).build()

    @SdkDsl
    public class Builder {
        /**
         * The aggregation period of the summary metric.
         */
        public var aggregationPeriod: aws.sdk.kotlin.services.iotwireless.model.AggregationPeriod? = null
        /**
         * The dimensions of the summary 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 name of the metric.
         */
        public var metricName: aws.sdk.kotlin.services.iotwireless.model.MetricName? = null
        /**
         * The id of the summary metric query.
         */
        public var queryId: kotlin.String? = null
        /**
         * The start timestamp for the summary metric query.
         */
        public var startTimestamp: aws.smithy.kotlin.runtime.time.Instant? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQuery) : this() {
            this.aggregationPeriod = x.aggregationPeriod
            this.dimensions = x.dimensions
            this.endTimestamp = x.endTimestamp
            this.metricName = x.metricName
            this.queryId = x.queryId
            this.startTimestamp = x.startTimestamp
        }

        @PublishedApi
        internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SummaryMetricQuery = SummaryMetricQuery(this)

        internal fun correctErrors(): Builder {
            return this
        }
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy