aws.sdk.kotlin.services.iotwireless.model.SendDataToWirelessDeviceRequest.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
class SendDataToWirelessDeviceRequest private constructor(builder: Builder) {
/**
* The ID of the wireless device to receive the data.
*/
val id: kotlin.String? = builder.id
/**
* The binary to be sent to the end device, encoded in base64.
*/
val payloadData: kotlin.String? = builder.payloadData
/**
* The transmit mode to use to send data to the wireless device. Can be: 0 for UM (unacknowledge mode) or 1 for AM (acknowledge mode).
*/
val transmitMode: kotlin.Int? = builder.transmitMode
/**
* Metadata about the message request.
*/
val wirelessMetadata: aws.sdk.kotlin.services.iotwireless.model.WirelessMetadata? = builder.wirelessMetadata
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.SendDataToWirelessDeviceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("SendDataToWirelessDeviceRequest(")
append("id=$id,")
append("payloadData=$payloadData,")
append("transmitMode=$transmitMode,")
append("wirelessMetadata=$wirelessMetadata)")
}
override fun hashCode(): kotlin.Int {
var result = id?.hashCode() ?: 0
result = 31 * result + (payloadData?.hashCode() ?: 0)
result = 31 * result + (transmitMode ?: 0)
result = 31 * result + (wirelessMetadata?.hashCode() ?: 0)
return result
}
override fun equals(other: kotlin.Any?): kotlin.Boolean {
if (this === other) return true
if (javaClass != other?.javaClass) return false
other as SendDataToWirelessDeviceRequest
if (id != other.id) return false
if (payloadData != other.payloadData) return false
if (transmitMode != other.transmitMode) return false
if (wirelessMetadata != other.wirelessMetadata) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.SendDataToWirelessDeviceRequest = Builder(this).apply(block).build()
class Builder {
/**
* The ID of the wireless device to receive the data.
*/
var id: kotlin.String? = null
/**
* The binary to be sent to the end device, encoded in base64.
*/
var payloadData: kotlin.String? = null
/**
* The transmit mode to use to send data to the wireless device. Can be: 0 for UM (unacknowledge mode) or 1 for AM (acknowledge mode).
*/
var transmitMode: kotlin.Int? = null
/**
* Metadata about the message request.
*/
var wirelessMetadata: aws.sdk.kotlin.services.iotwireless.model.WirelessMetadata? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.SendDataToWirelessDeviceRequest) : this() {
this.id = x.id
this.payloadData = x.payloadData
this.transmitMode = x.transmitMode
this.wirelessMetadata = x.wirelessMetadata
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.SendDataToWirelessDeviceRequest = SendDataToWirelessDeviceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.WirelessMetadata] inside the given [block]
*/
fun wirelessMetadata(block: aws.sdk.kotlin.services.iotwireless.model.WirelessMetadata.Builder.() -> kotlin.Unit) {
this.wirelessMetadata = aws.sdk.kotlin.services.iotwireless.model.WirelessMetadata.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy