commonMain.aws.sdk.kotlin.services.iotwireless.model.SidewalkSendDataToDevice.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
/**
* Information about a Sidewalk router.
*/
public class SidewalkSendDataToDevice private constructor(builder: Builder) {
/**
* The duration of time in seconds to retry sending the ACK.
*/
public val ackModeRetryDurationSecs: kotlin.Int? = builder.ackModeRetryDurationSecs
/**
* Sidewalk device message type. Default value is `CUSTOM_COMMAND_ID_NOTIFY`.
*/
public val messageType: aws.sdk.kotlin.services.iotwireless.model.MessageType? = builder.messageType
/**
* The sequence number.
*/
public val seq: kotlin.Int? = builder.seq
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SidewalkSendDataToDevice = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SidewalkSendDataToDevice(")
append("ackModeRetryDurationSecs=$ackModeRetryDurationSecs,")
append("messageType=$messageType,")
append("seq=$seq")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = ackModeRetryDurationSecs ?: 0
result = 31 * result + (messageType?.hashCode() ?: 0)
result = 31 * result + (seq ?: 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 SidewalkSendDataToDevice
if (ackModeRetryDurationSecs != other.ackModeRetryDurationSecs) return false
if (messageType != other.messageType) return false
if (seq != other.seq) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SidewalkSendDataToDevice = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The duration of time in seconds to retry sending the ACK.
*/
public var ackModeRetryDurationSecs: kotlin.Int? = null
/**
* Sidewalk device message type. Default value is `CUSTOM_COMMAND_ID_NOTIFY`.
*/
public var messageType: aws.sdk.kotlin.services.iotwireless.model.MessageType? = null
/**
* The sequence number.
*/
public var seq: kotlin.Int? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SidewalkSendDataToDevice) : this() {
this.ackModeRetryDurationSecs = x.ackModeRetryDurationSecs
this.messageType = x.messageType
this.seq = x.seq
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SidewalkSendDataToDevice = SidewalkSendDataToDevice(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy