All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pulumi.gcp.compute.kotlin.inputs.BackendServiceLogConfigArgs.kt Maven / Gradle / Ivy

Go to download

Build cloud applications and infrastructure by combining the safety and reliability of infrastructure as code with the power of the Kotlin programming language.

There is a newer version: 8.10.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.gcp.compute.kotlin.inputs

import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.BackendServiceLogConfigArgs.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 Whether to enable logging for the load balancer traffic served by this backend service.
 * @property sampleRate This field can only be specified if logging is enabled for this backend service. The value of
 * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
 * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
 * The default value is 1.0.
 */
public data class BackendServiceLogConfigArgs(
    public val enable: Output? = null,
    public val sampleRate: Output? = null,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceLogConfigArgs =
        com.pulumi.gcp.compute.inputs.BackendServiceLogConfigArgs.builder()
            .enable(enable?.applyValue({ args0 -> args0 }))
            .sampleRate(sampleRate?.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [BackendServiceLogConfigArgs].
 */
@PulumiTagMarker
public class BackendServiceLogConfigArgsBuilder internal constructor() {
    private var enable: Output? = null

    private var sampleRate: Output? = null

    /**
     * @param value Whether to enable logging for the load balancer traffic served by this backend service.
     */
    @JvmName("imyachyfrthdehns")
    public suspend fun enable(`value`: Output) {
        this.enable = value
    }

    /**
     * @param value This field can only be specified if logging is enabled for this backend service. The value of
     * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
     * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
     * The default value is 1.0.
     */
    @JvmName("qsbbelxsijvflamr")
    public suspend fun sampleRate(`value`: Output) {
        this.sampleRate = value
    }

    /**
     * @param value Whether to enable logging for the load balancer traffic served by this backend service.
     */
    @JvmName("tcjvtvtekyaagrtm")
    public suspend fun enable(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.enable = mapped
    }

    /**
     * @param value This field can only be specified if logging is enabled for this backend service. The value of
     * the field must be in [0, 1]. This configures the sampling rate of requests to the load balancer
     * where 1.0 means all logged requests are reported and 0.0 means no logged requests are reported.
     * The default value is 1.0.
     */
    @JvmName("ninokljndnjjihvs")
    public suspend fun sampleRate(`value`: Double?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.sampleRate = mapped
    }

    internal fun build(): BackendServiceLogConfigArgs = BackendServiceLogConfigArgs(
        enable = enable,
        sampleRate = sampleRate,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy