commonMain.aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEventLogOption.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
/**
* The log options for a wireless gateway event and can be used to set log levels for a specific wireless gateway event.
*
* For a LoRaWAN gateway, possible events for a log message are `CUPS_Request` and `Certificate`.
*/
public class WirelessGatewayEventLogOption private constructor(builder: Builder) {
/**
* The event for a log message, if the log message is tied to a wireless gateway.
*/
public val event: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEvent = requireNotNull(builder.event) { "A non-null value must be provided for event" }
/**
* The log level for a log message. The log levels can be disabled, or set to `ERROR` to display less verbose logs containing only error information, or to `INFO` for more detailed logs.
*/
public val logLevel: aws.sdk.kotlin.services.iotwireless.model.LogLevel = requireNotNull(builder.logLevel) { "A non-null value must be provided for logLevel" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEventLogOption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WirelessGatewayEventLogOption(")
append("event=$event,")
append("logLevel=$logLevel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = event.hashCode()
result = 31 * result + (logLevel.hashCode())
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 WirelessGatewayEventLogOption
if (event != other.event) return false
if (logLevel != other.logLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEventLogOption = Builder(this).apply(block).build()
public class Builder {
/**
* The event for a log message, if the log message is tied to a wireless gateway.
*/
public var event: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEvent? = null
/**
* The log level for a log message. The log levels can be disabled, or set to `ERROR` to display less verbose logs containing only error information, or to `INFO` for more detailed logs.
*/
public var logLevel: aws.sdk.kotlin.services.iotwireless.model.LogLevel? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEventLogOption) : this() {
this.event = x.event
this.logLevel = x.logLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayEventLogOption = WirelessGatewayEventLogOption(this)
internal fun correctErrors(): Builder {
if (event == null) event = WirelessGatewayEvent.SdkUnknown("no value provided")
if (logLevel == null) logLevel = LogLevel.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy