commonMain.aws.sdk.kotlin.services.mwaa.model.ModuleLoggingConfigurationInput.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mwaa-jvm Show documentation
Show all versions of mwaa-jvm Show documentation
The AWS SDK for Kotlin client for MWAA
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.mwaa.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* Enables the Apache Airflow log type (e.g. `DagProcessingLogs`) and defines the log level to send to CloudWatch Logs (e.g. `INFO`).
*/
public class ModuleLoggingConfigurationInput private constructor(builder: Builder) {
/**
* Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs`).
*/
public val enabled: kotlin.Boolean = requireNotNull(builder.enabled) { "A non-null value must be provided for enabled" }
/**
* Defines the Apache Airflow log level (e.g. `INFO`) to send to CloudWatch Logs.
*/
public val logLevel: aws.sdk.kotlin.services.mwaa.model.LoggingLevel = 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.mwaa.model.ModuleLoggingConfigurationInput = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("ModuleLoggingConfigurationInput(")
append("enabled=$enabled,")
append("logLevel=$logLevel")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled.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 ModuleLoggingConfigurationInput
if (enabled != other.enabled) return false
if (logLevel != other.logLevel) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.mwaa.model.ModuleLoggingConfigurationInput = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* Indicates whether to enable the Apache Airflow log type (e.g. `DagProcessingLogs`).
*/
public var enabled: kotlin.Boolean? = null
/**
* Defines the Apache Airflow log level (e.g. `INFO`) to send to CloudWatch Logs.
*/
public var logLevel: aws.sdk.kotlin.services.mwaa.model.LoggingLevel? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.mwaa.model.ModuleLoggingConfigurationInput) : this() {
this.enabled = x.enabled
this.logLevel = x.logLevel
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.mwaa.model.ModuleLoggingConfigurationInput = ModuleLoggingConfigurationInput(this)
internal fun correctErrors(): Builder {
if (enabled == null) enabled = false
if (logLevel == null) logLevel = LoggingLevel.SdkUnknown("no value provided")
return this
}
}
}