commonMain.aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastSession.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of iotwireless-jvm Show documentation
Show all versions of iotwireless-jvm Show documentation
The AWS Kotlin client for IoT Wireless
// 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 LoRaWAN information used with the multicast session.
*/
public class LoRaWanMulticastSession private constructor(builder: Builder) {
/**
* Downlink data rate.
*/
public val dlDr: kotlin.Int? = builder.dlDr
/**
* Downlink frequency.
*/
public val dlFreq: kotlin.Int? = builder.dlFreq
/**
* The PingSlotPeriod value.
*/
public val pingSlotPeriod: kotlin.Int? = builder.pingSlotPeriod
/**
* Timestamp of when the multicast group session is to start.
*/
public val sessionStartTime: aws.smithy.kotlin.runtime.time.Instant? = builder.sessionStartTime
/**
* How long before a multicast group session is to timeout.
*/
public val sessionTimeout: kotlin.Int? = builder.sessionTimeout
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastSession = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LoRaWanMulticastSession(")
append("dlDr=$dlDr,")
append("dlFreq=$dlFreq,")
append("pingSlotPeriod=$pingSlotPeriod,")
append("sessionStartTime=$sessionStartTime,")
append("sessionTimeout=$sessionTimeout")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = dlDr ?: 0
result = 31 * result + (dlFreq ?: 0)
result = 31 * result + (pingSlotPeriod ?: 0)
result = 31 * result + (sessionStartTime?.hashCode() ?: 0)
result = 31 * result + (sessionTimeout ?: 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 LoRaWanMulticastSession
if (dlDr != other.dlDr) return false
if (dlFreq != other.dlFreq) return false
if (pingSlotPeriod != other.pingSlotPeriod) return false
if (sessionStartTime != other.sessionStartTime) return false
if (sessionTimeout != other.sessionTimeout) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastSession = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Downlink data rate.
*/
public var dlDr: kotlin.Int? = null
/**
* Downlink frequency.
*/
public var dlFreq: kotlin.Int? = null
/**
* The PingSlotPeriod value.
*/
public var pingSlotPeriod: kotlin.Int? = null
/**
* Timestamp of when the multicast group session is to start.
*/
public var sessionStartTime: aws.smithy.kotlin.runtime.time.Instant? = null
/**
* How long before a multicast group session is to timeout.
*/
public var sessionTimeout: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastSession) : this() {
this.dlDr = x.dlDr
this.dlFreq = x.dlFreq
this.pingSlotPeriod = x.pingSlotPeriod
this.sessionStartTime = x.sessionStartTime
this.sessionTimeout = x.sessionTimeout
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.LoRaWanMulticastSession = LoRaWanMulticastSession(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy