aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayFirmwareInformationResponse.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.iotwireless.model
class GetWirelessGatewayFirmwareInformationResponse private constructor(builder: Builder) {
/**
* Information about the wireless gateway's firmware.
*/
val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayCurrentVersion? = builder.loRaWan
companion object {
operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayFirmwareInformationResponse = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("GetWirelessGatewayFirmwareInformationResponse(")
append("loRaWan=$loRaWan)")
}
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 (javaClass != other?.javaClass) return false
other as GetWirelessGatewayFirmwareInformationResponse
if (loRaWan != other.loRaWan) return false
return true
}
inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayFirmwareInformationResponse = Builder(this).apply(block).build()
class Builder {
/**
* Information about the wireless gateway's firmware.
*/
var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayCurrentVersion? = null
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayFirmwareInformationResponse) : this() {
this.loRaWan = x.loRaWan
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.GetWirelessGatewayFirmwareInformationResponse = GetWirelessGatewayFirmwareInformationResponse(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayCurrentVersion] inside the given [block]
*/
fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayCurrentVersion.Builder.() -> kotlin.Unit) {
this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanGatewayCurrentVersion.invoke(block)
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy