com.pulumi.gcp.gkehub.kotlin.inputs.FeatureSpecFleetobservabilityLoggingConfigArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-gcp-kotlin Show documentation
Show all versions of pulumi-gcp-kotlin Show documentation
Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.gkehub.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.gkehub.inputs.FeatureSpecFleetobservabilityLoggingConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property defaultConfig Specified if applying the default routing config to logs not specified in other configs.
* Structure is documented below.
* @property fleetScopeLogsConfig Specified if applying the routing config to all logs for all fleet scopes.
* Structure is documented below.
*/
public data class FeatureSpecFleetobservabilityLoggingConfigArgs(
public val defaultConfig: Output? =
null,
public val fleetScopeLogsConfig: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.gkehub.inputs.FeatureSpecFleetobservabilityLoggingConfigArgs = com.pulumi.gcp.gkehub.inputs.FeatureSpecFleetobservabilityLoggingConfigArgs.builder()
.defaultConfig(defaultConfig?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.fleetScopeLogsConfig(
fleetScopeLogsConfig?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
).build()
}
/**
* Builder for [FeatureSpecFleetobservabilityLoggingConfigArgs].
*/
@PulumiTagMarker
public class FeatureSpecFleetobservabilityLoggingConfigArgsBuilder internal constructor() {
private var defaultConfig: Output? =
null
private var fleetScopeLogsConfig:
Output? = null
/**
* @param value Specified if applying the default routing config to logs not specified in other configs.
* Structure is documented below.
*/
@JvmName("qgedtoepbfbkmkrc")
public suspend fun defaultConfig(`value`: Output) {
this.defaultConfig = value
}
/**
* @param value Specified if applying the routing config to all logs for all fleet scopes.
* Structure is documented below.
*/
@JvmName("unxedjsbqlacnnom")
public suspend fun fleetScopeLogsConfig(`value`: Output) {
this.fleetScopeLogsConfig = value
}
/**
* @param value Specified if applying the default routing config to logs not specified in other configs.
* Structure is documented below.
*/
@JvmName("mnxkoyfthtvoutrm")
public suspend fun defaultConfig(`value`: FeatureSpecFleetobservabilityLoggingConfigDefaultConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.defaultConfig = mapped
}
/**
* @param argument Specified if applying the default routing config to logs not specified in other configs.
* Structure is documented below.
*/
@JvmName("nmldntdmryrfjgfk")
public suspend fun defaultConfig(argument: suspend FeatureSpecFleetobservabilityLoggingConfigDefaultConfigArgsBuilder.() -> Unit) {
val toBeMapped =
FeatureSpecFleetobservabilityLoggingConfigDefaultConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.defaultConfig = mapped
}
/**
* @param value Specified if applying the routing config to all logs for all fleet scopes.
* Structure is documented below.
*/
@JvmName("jqbhasigkcruhwln")
public suspend fun fleetScopeLogsConfig(`value`: FeatureSpecFleetobservabilityLoggingConfigFleetScopeLogsConfigArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fleetScopeLogsConfig = mapped
}
/**
* @param argument Specified if applying the routing config to all logs for all fleet scopes.
* Structure is documented below.
*/
@JvmName("xnnlxubyyeiusjot")
public suspend fun fleetScopeLogsConfig(argument: suspend FeatureSpecFleetobservabilityLoggingConfigFleetScopeLogsConfigArgsBuilder.() -> Unit) {
val toBeMapped =
FeatureSpecFleetobservabilityLoggingConfigFleetScopeLogsConfigArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.fleetScopeLogsConfig = mapped
}
internal fun build(): FeatureSpecFleetobservabilityLoggingConfigArgs =
FeatureSpecFleetobservabilityLoggingConfigArgs(
defaultConfig = defaultConfig,
fleetScopeLogsConfig = fleetScopeLogsConfig,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy