commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessDeviceRequest.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
public class UpdateWirelessDeviceRequest private constructor(builder: Builder) {
/**
* A new description of the resource.
*/
public val description: kotlin.String? = builder.description
/**
* The name of the new destination for the device.
*/
public val destinationName: kotlin.String? = builder.destinationName
/**
* The ID of the resource to update.
*/
public val id: kotlin.String? = builder.id
/**
* The updated wireless device's configuration.
*/
public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateDevice? = builder.loRaWan
/**
* The new name of the resource.
*/
public val name: kotlin.String? = builder.name
/**
* FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
*/
public val positioning: aws.sdk.kotlin.services.iotwireless.model.PositioningConfigStatus? = builder.positioning
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessDeviceRequest = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateWirelessDeviceRequest(")
append("description=$description,")
append("destinationName=$destinationName,")
append("id=$id,")
append("loRaWan=$loRaWan,")
append("name=$name,")
append("positioning=$positioning")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = description?.hashCode() ?: 0
result = 31 * result + (destinationName?.hashCode() ?: 0)
result = 31 * result + (id?.hashCode() ?: 0)
result = 31 * result + (loRaWan?.hashCode() ?: 0)
result = 31 * result + (name?.hashCode() ?: 0)
result = 31 * result + (positioning?.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 UpdateWirelessDeviceRequest
if (description != other.description) return false
if (destinationName != other.destinationName) return false
if (id != other.id) return false
if (loRaWan != other.loRaWan) return false
if (name != other.name) return false
if (positioning != other.positioning) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessDeviceRequest = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* A new description of the resource.
*/
public var description: kotlin.String? = null
/**
* The name of the new destination for the device.
*/
public var destinationName: kotlin.String? = null
/**
* The ID of the resource to update.
*/
public var id: kotlin.String? = null
/**
* The updated wireless device's configuration.
*/
public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateDevice? = null
/**
* The new name of the resource.
*/
public var name: kotlin.String? = null
/**
* FPort values for the GNSS, stream, and ClockSync functions of the positioning information.
*/
public var positioning: aws.sdk.kotlin.services.iotwireless.model.PositioningConfigStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessDeviceRequest) : this() {
this.description = x.description
this.destinationName = x.destinationName
this.id = x.id
this.loRaWan = x.loRaWan
this.name = x.name
this.positioning = x.positioning
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.UpdateWirelessDeviceRequest = UpdateWirelessDeviceRequest(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateDevice] inside the given [block]
*/
public fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateDevice.Builder.() -> kotlin.Unit) {
this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanUpdateDevice.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy