
commonMain.aws.sdk.kotlin.services.eks.model.LogSetup.kt Maven / Gradle / Ivy
// Code generated by smithy-kotlin-codegen. DO NOT EDIT!
package aws.sdk.kotlin.services.eks.model
import aws.smithy.kotlin.runtime.SdkDsl
/**
* An object representing the enabled or disabled Kubernetes control plane logs for your cluster.
*/
public class LogSetup private constructor(builder: Builder) {
/**
* If a log type is enabled, that log type exports its control plane logs to CloudWatch Logs. If a log type isn't enabled, that log type doesn't export its control plane logs. Each individual log type can be enabled or disabled independently.
*/
public val enabled: kotlin.Boolean? = builder.enabled
/**
* The available cluster control plane log types.
*/
public val types: List? = builder.types
public companion object {
public operator fun invoke(block: Builder.() -> kotlin.Unit): aws.sdk.kotlin.services.eks.model.LogSetup = Builder().apply(block).build()
}
override fun toString(): kotlin.String = buildString {
append("LogSetup(")
append("enabled=$enabled,")
append("types=$types")
append(")")
}
override fun hashCode(): kotlin.Int {
var result = enabled?.hashCode() ?: 0
result = 31 * result + (types?.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 LogSetup
if (enabled != other.enabled) return false
if (types != other.types) return false
return true
}
public inline fun copy(block: Builder.() -> kotlin.Unit = {}): aws.sdk.kotlin.services.eks.model.LogSetup = Builder(this).apply(block).build()
@SdkDsl
public class Builder {
/**
* If a log type is enabled, that log type exports its control plane logs to CloudWatch Logs. If a log type isn't enabled, that log type doesn't export its control plane logs. Each individual log type can be enabled or disabled independently.
*/
public var enabled: kotlin.Boolean? = null
/**
* The available cluster control plane log types.
*/
public var types: List? = null
@PublishedApi
internal constructor()
@PublishedApi
internal constructor(x: aws.sdk.kotlin.services.eks.model.LogSetup) : this() {
this.enabled = x.enabled
this.types = x.types
}
@PublishedApi
internal fun build(): aws.sdk.kotlin.services.eks.model.LogSetup = LogSetup(this)
internal fun correctErrors(): Builder {
return this
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy