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

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

/**
 * Wireless metadata that is to be sent to multicast group.
 */
public class MulticastWirelessMetadata private constructor(builder: Builder) {
    /**
     * The metadata information of the LoRaWAN multicast group.
     */
    public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastMetadata? = builder.loRaWan

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

    override fun toString(): kotlin.String = buildString {
        append("MulticastWirelessMetadata(")
        append("loRaWan=$loRaWan")
        append(")")
    }

    override fun hashCode(): kotlin.Int {
        var result = loRaWan?.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 MulticastWirelessMetadata

        if (loRaWan != other.loRaWan) return false

        return true
    }

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

    @SdkDsl
    public class Builder {
        /**
         * The metadata information of the LoRaWAN multicast group.
         */
        public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastMetadata? = null

        @PublishedApi
        internal constructor()
        @PublishedApi
        internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.MulticastWirelessMetadata) : this() {
            this.loRaWan = x.loRaWan
        }

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

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

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




© 2015 - 2024 Weber Informatics LLC | Privacy Policy