commonMain.aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayLogOption.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
/**
* The log options for wireless gateways and can be used to set log levels for a specific type of wireless gateway.
*/
public class WirelessGatewayLogOption private constructor(builder: Builder) {
/**
* The list of wireless gateway event log options.
*/
public val events: List? = builder.events
/**
* 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" }
/**
* The wireless gateway type.
*/
public val type: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayType = requireNotNull(builder.type) { "A non-null value must be provided for type" }
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayLogOption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("WirelessGatewayLogOption(")
append("events=$events,")
append("logLevel=$logLevel,")
append("type=$type")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = events?.hashCode() ?: 0
result = 31 * result + (logLevel.hashCode())
result = 31 * result + (type.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 WirelessGatewayLogOption
if (events != other.events) return false
if (logLevel != other.logLevel) return false
if (type != other.type) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayLogOption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of wireless gateway event log options.
*/
public var events: List? = 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
/**
* The wireless gateway type.
*/
public var type: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayLogOption) : this() {
this.events = x.events
this.logLevel = x.logLevel
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.WirelessGatewayLogOption = WirelessGatewayLogOption(this)
internal fun correctErrors(): Builder {
if (logLevel == null) logLevel = LogLevel.SdkUnknown("no value provided")
if (type == null) type = WirelessGatewayType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy