commonMain.aws.sdk.kotlin.services.iotwireless.model.UpdateFPorts.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
/**
* Object for updating the FPorts information.
*/
public class UpdateFPorts private constructor(builder: Builder) {
/**
* LoRaWAN application, which can be used for geolocation by activating positioning.
*/
public val applications: List? = builder.applications
/**
* Positioning FPorts for the ClockSync, Stream, and GNSS functions.
*/
public val positioning: aws.sdk.kotlin.services.iotwireless.model.Positioning? = builder.positioning
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.UpdateFPorts = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("UpdateFPorts(")
append("applications=$applications,")
append("positioning=$positioning")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = applications?.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 UpdateFPorts
if (applications != other.applications) return false
if (positioning != other.positioning) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.UpdateFPorts = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* LoRaWAN application, which can be used for geolocation by activating positioning.
*/
public var applications: List? = null
/**
* Positioning FPorts for the ClockSync, Stream, and GNSS functions.
*/
public var positioning: aws.sdk.kotlin.services.iotwireless.model.Positioning? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.UpdateFPorts) : this() {
this.applications = x.applications
this.positioning = x.positioning
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.UpdateFPorts = UpdateFPorts(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.Positioning] inside the given [block]
*/
public fun positioning(block: aws.sdk.kotlin.services.iotwireless.model.Positioning.Builder.() -> kotlin.Unit) {
this.positioning = aws.sdk.kotlin.services.iotwireless.model.Positioning.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy