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

com.pulumi.cloudflare.kotlin.inputs.LoadBalancerMonitorHeaderArgs.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.

The newest version!
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.cloudflare.kotlin.inputs

import com.pulumi.cloudflare.inputs.LoadBalancerMonitorHeaderArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.collections.List
import kotlin.jvm.JvmName

/**
 *
 * @property header The header name.
 * @property values A list of values for the header.
 */
public data class LoadBalancerMonitorHeaderArgs(
    public val `header`: Output,
    public val values: Output>,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.cloudflare.inputs.LoadBalancerMonitorHeaderArgs =
        com.pulumi.cloudflare.inputs.LoadBalancerMonitorHeaderArgs.builder()
            .`header`(`header`.applyValue({ args0 -> args0 }))
            .values(values.applyValue({ args0 -> args0.map({ args0 -> args0 }) })).build()
}

/**
 * Builder for [LoadBalancerMonitorHeaderArgs].
 */
@PulumiTagMarker
public class LoadBalancerMonitorHeaderArgsBuilder internal constructor() {
    private var `header`: Output? = null

    private var values: Output>? = null

    /**
     * @param value The header name.
     */
    @JvmName("gcqndtquuxasyjxx")
    public suspend fun `header`(`value`: Output) {
        this.`header` = value
    }

    /**
     * @param value A list of values for the header.
     */
    @JvmName("putsxvqhitwkmlwu")
    public suspend fun values(`value`: Output>) {
        this.values = value
    }

    @JvmName("xxepmoilunpjysab")
    public suspend fun values(vararg values: Output) {
        this.values = Output.all(values.asList())
    }

    /**
     * @param values A list of values for the header.
     */
    @JvmName("krveidxnhromtern")
    public suspend fun values(values: List>) {
        this.values = Output.all(values)
    }

    /**
     * @param value The header name.
     */
    @JvmName("sthqftivckjpkpyt")
    public suspend fun `header`(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.`header` = mapped
    }

    /**
     * @param value A list of values for the header.
     */
    @JvmName("ovkrpblmbrnictnf")
    public suspend fun values(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    /**
     * @param values A list of values for the header.
     */
    @JvmName("dhpbyhghdtkollpn")
    public suspend fun values(vararg values: String) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.values = mapped
    }

    internal fun build(): LoadBalancerMonitorHeaderArgs = LoadBalancerMonitorHeaderArgs(
        `header` = `header` ?: throw PulumiNullFieldException("header"),
        values = values ?: throw PulumiNullFieldException("values"),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy