commonMain.aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration.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
/**
* Connection status event configuration object for enabling or disabling topic.
*/
public class ConnectionStatusEventConfiguration private constructor(builder: Builder) {
/**
* Connection status event configuration object for enabling or disabling LoRaWAN related event topics.
*/
public val loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanConnectionStatusEventNotificationConfigurations? = builder.loRaWan
/**
* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled.
*/
public val wirelessGatewayIdEventTopic: aws.sdk.kotlin.services.iotwireless.model.EventNotificationTopicStatus? = builder.wirelessGatewayIdEventTopic
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ConnectionStatusEventConfiguration(")
append("loRaWan=$loRaWan,")
append("wirelessGatewayIdEventTopic=$wirelessGatewayIdEventTopic")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = loRaWan?.hashCode() ?: 0
result = 31 * result + (wirelessGatewayIdEventTopic?.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 ConnectionStatusEventConfiguration
if (loRaWan != other.loRaWan) return false
if (wirelessGatewayIdEventTopic != other.wirelessGatewayIdEventTopic) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Connection status event configuration object for enabling or disabling LoRaWAN related event topics.
*/
public var loRaWan: aws.sdk.kotlin.services.iotwireless.model.LoRaWanConnectionStatusEventNotificationConfigurations? = null
/**
* Denotes whether the wireless gateway ID connection status event topic is enabled or disabled.
*/
public var wirelessGatewayIdEventTopic: aws.sdk.kotlin.services.iotwireless.model.EventNotificationTopicStatus? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration) : this() {
this.loRaWan = x.loRaWan
this.wirelessGatewayIdEventTopic = x.wirelessGatewayIdEventTopic
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.ConnectionStatusEventConfiguration = ConnectionStatusEventConfiguration(this)
/**
* construct an [aws.sdk.kotlin.services.iotwireless.model.LoRaWanConnectionStatusEventNotificationConfigurations] inside the given [block]
*/
public fun loRaWan(block: aws.sdk.kotlin.services.iotwireless.model.LoRaWanConnectionStatusEventNotificationConfigurations.Builder.() -> kotlin.Unit) {
this.loRaWan = aws.sdk.kotlin.services.iotwireless.model.LoRaWanConnectionStatusEventNotificationConfigurations.invoke(block)
}
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy