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

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

There is a newer version: 1.3.31
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

/**
 * List of FPort assigned for different LoRaWAN application packages to use
 */
public class FPorts private constructor(builder: Builder) {
    /**
     * Optional LoRaWAN application information, which can be used for geolocation.
     */
    public val applications: List? = builder.applications
    /**
     * The Fport value.
     */
    public val clockSync: kotlin.Int? = builder.clockSync
    /**
     * The Fport value.
     */
    public val fuota: kotlin.Int? = builder.fuota
    /**
     * The Fport value.
     */
    public val multicast: kotlin.Int? = builder.multicast
    /**
     * FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
     */
    public val positioning: aws.sdk.kotlin.services.iotwireless.model.Positioning? = builder.positioning

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

    override fun toString(): kotlin.String = buildString {
        append("FPorts(")
        append("applications=$applications,")
        append("clockSync=$clockSync,")
        append("fuota=$fuota,")
        append("multicast=$multicast,")
        append("positioning=$positioning")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = applications?.hashCode() ?: 0
        result = 31 * result + (clockSync ?: 0)
        result = 31 * result + (fuota ?: 0)
        result = 31 * result + (multicast ?: 0)
        result = 31 * result + (positioning?.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 FPorts

        if (applications != other.applications) return false
        if (clockSync != other.clockSync) return false
        if (fuota != other.fuota) return false
        if (multicast != other.multicast) return false
        if (positioning != other.positioning) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * Optional LoRaWAN application information, which can be used for geolocation.
         */
        public var applications: List? = null
        /**
         * The Fport value.
         */
        public var clockSync: kotlin.Int? = null
        /**
         * The Fport value.
         */
        public var fuota: kotlin.Int? = null
        /**
         * The Fport value.
         */
        public var multicast: kotlin.Int? = null
        /**
         * FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
         */
        public var positioning: aws.sdk.kotlin.services.iotwireless.model.Positioning? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.FPorts) : this() {
            this.applications = x.applications
            this.clockSync = x.clockSync
            this.fuota = x.fuota
            this.multicast = x.multicast
            this.positioning = x.positioning
        }

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

        /**
         * construct an [aws.sdk.kotlin.services.iotwireless.model.Positioning] inside the given [block]
         */
        public fun positioning(block: aws.sdk.kotlin.services.iotwireless.model.Positioning.Builder.() -> kotlin.Unit) {
            this.positioning = aws.sdk.kotlin.services.iotwireless.model.Positioning.invoke(block)
        }

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy