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

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

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

/**
 * LoRaWAN application configuration, which can be used to perform geolocation.
 */
public class ApplicationConfig private constructor(builder: Builder) {
    /**
     * The name of the position data destination that describes the AWS IoT rule that processes the device's position data for use by AWS IoT Core for LoRaWAN.
     */
    public val destinationName: kotlin.String? = builder.destinationName
    /**
     * The Fport value.
     */
    public val fPort: kotlin.Int? = builder.fPort
    /**
     * Application type, which can be specified to obtain real-time position information of your LoRaWAN device.
     */
    public val type: aws.sdk.kotlin.services.iotwireless.model.ApplicationConfigType? = builder.type

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

    override fun toString(): kotlin.String = buildString {
        append("ApplicationConfig(")
        append("destinationName=$destinationName,")
        append("fPort=$fPort,")
        append("type=$type")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = destinationName?.hashCode() ?: 0
        result = 31 * result + (fPort ?: 0)
        result = 31 * result + (type?.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 ApplicationConfig

        if (destinationName != other.destinationName) return false
        if (fPort != other.fPort) return false
        if (type != other.type) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The name of the position data destination that describes the AWS IoT rule that processes the device's position data for use by AWS IoT Core for LoRaWAN.
         */
        public var destinationName: kotlin.String? = null
        /**
         * The Fport value.
         */
        public var fPort: kotlin.Int? = null
        /**
         * Application type, which can be specified to obtain real-time position information of your LoRaWAN device.
         */
        public var type: aws.sdk.kotlin.services.iotwireless.model.ApplicationConfigType? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.ApplicationConfig) : this() {
            this.destinationName = x.destinationName
            this.fPort = x.fPort
            this.type = x.type
        }

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy