com.pulumi.gcp.networkservices.kotlin.inputs.EdgeCacheServiceLogConfigArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceLogConfigArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Double
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property enable Specifies whether to enable logging for traffic served by this service.
* @property sampleRate Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1].
* This field can only be specified if logging is enabled for this service.
*/
public data class EdgeCacheServiceLogConfigArgs(
public val enable: Output? = null,
public val sampleRate: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceLogConfigArgs =
com.pulumi.gcp.networkservices.inputs.EdgeCacheServiceLogConfigArgs.builder()
.enable(enable?.applyValue({ args0 -> args0 }))
.sampleRate(sampleRate?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [EdgeCacheServiceLogConfigArgs].
*/
@PulumiTagMarker
public class EdgeCacheServiceLogConfigArgsBuilder internal constructor() {
private var enable: Output? = null
private var sampleRate: Output? = null
/**
* @param value Specifies whether to enable logging for traffic served by this service.
*/
@JvmName("qiiojbgflgskisbm")
public suspend fun enable(`value`: Output) {
this.enable = value
}
/**
* @param value Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1].
* This field can only be specified if logging is enabled for this service.
*/
@JvmName("lwmqgtargmgwttdp")
public suspend fun sampleRate(`value`: Output) {
this.sampleRate = value
}
/**
* @param value Specifies whether to enable logging for traffic served by this service.
*/
@JvmName("wxyccsecbcpyflux")
public suspend fun enable(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.enable = mapped
}
/**
* @param value Configures the sampling rate of requests, where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported. The default value is 1.0, and the value of the field must be in [0, 1].
* This field can only be specified if logging is enabled for this service.
*/
@JvmName("dleldfhvaraoldvd")
public suspend fun sampleRate(`value`: Double?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.sampleRate = mapped
}
internal fun build(): EdgeCacheServiceLogConfigArgs = EdgeCacheServiceLogConfigArgs(
enable = enable,
sampleRate = sampleRate,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy