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

commonMain.aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayStatisticsResponse.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

public class GetWirelessGatewayStatisticsResponse private constructor(builder: Builder) {
    /**
     * The connection status of the wireless gateway.
     */
    public val connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatus? = builder.connectionStatus
    /**
     * The date and time when the most recent uplink was received.
     *
     * This value is only valid for 3 months.
     */
    public val lastUplinkReceivedAt: kotlin.String? = builder.lastUplinkReceivedAt
    /**
     * The ID of the wireless gateway.
     */
    public val wirelessGatewayId: kotlin.String? = builder.wirelessGatewayId

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

    override fun toString(): kotlin.String = buildString {
        append("GetWirelessGatewayStatisticsResponse(")
        append("connectionStatus=$connectionStatus,")
        append("lastUplinkReceivedAt=$lastUplinkReceivedAt,")
        append("wirelessGatewayId=$wirelessGatewayId")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = connectionStatus?.hashCode() ?: 0
        result = 31 * result + (lastUplinkReceivedAt?.hashCode() ?: 0)
        result = 31 * result + (wirelessGatewayId?.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 GetWirelessGatewayStatisticsResponse

        if (connectionStatus != other.connectionStatus) return false
        if (lastUplinkReceivedAt != other.lastUplinkReceivedAt) return false
        if (wirelessGatewayId != other.wirelessGatewayId) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The connection status of the wireless gateway.
         */
        public var connectionStatus: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatus? = null
        /**
         * The date and time when the most recent uplink was received.
         *
         * This value is only valid for 3 months.
         */
        public var lastUplinkReceivedAt: kotlin.String? = null
        /**
         * The ID of the wireless gateway.
         */
        public var wirelessGatewayId: kotlin.String? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayStatisticsResponse) : this() {
            this.connectionStatus = x.connectionStatus
            this.lastUplinkReceivedAt = x.lastUplinkReceivedAt
            this.wirelessGatewayId = x.wirelessGatewayId
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy