commonMain.aws.sdk.kotlin.services.iotwireless.model.FuotaTaskLogOption.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 fuota tasks and can be used to set log levels for a specific type of fuota task.
*/
public class FuotaTaskLogOption private constructor(builder: Builder) {
/**
* The list of FUOTA task 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 fuota task type.
*/
public val type: aws.sdk.kotlin.services.iotwireless.model.FuotaTaskType = 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.FuotaTaskLogOption = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("FuotaTaskLogOption(")
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 FuotaTaskLogOption
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.FuotaTaskLogOption = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* The list of FUOTA task 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 fuota task type.
*/
public var type: aws.sdk.kotlin.services.iotwireless.model.FuotaTaskType? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.iotwireless.model.FuotaTaskLogOption) : this() {
this.events = x.events
this.logLevel = x.logLevel
this.type = x.type
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.iotwireless.model.FuotaTaskLogOption = FuotaTaskLogOption(this)
internal fun correctErrors(): Builder {
if (logLevel == null) logLevel = LogLevel.SdkUnknown("no value provided")
if (type == null) type = FuotaTaskType.SdkUnknown("no value provided")
return this
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy