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

com.pulumi.azure.servicefabric.kotlin.inputs.ManagedClusterLbRuleArgs.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: 6.15.0.0
Show newest version
@file:Suppress("NAME_SHADOWING", "DEPRECATION")

package com.pulumi.azure.servicefabric.kotlin.inputs

import com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs.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.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName

/**
 *
 * @property backendPort LB Backend port.
 * @property frontendPort LB Frontend port.
 * @property probeProtocol Protocol for the probe. Can be one of `tcp`, `udp`, `http`, or `https`.
 * @property probeRequestPath Path for the probe to check, when probe protocol is set to `http`.
 * @property protocol The transport protocol used in this rule. Can be one of `tcp` or `udp`.
 */
public data class ManagedClusterLbRuleArgs(
    public val backendPort: Output,
    public val frontendPort: Output,
    public val probeProtocol: Output,
    public val probeRequestPath: Output? = null,
    public val protocol: Output,
) : ConvertibleToJava {
    override fun toJava(): com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs =
        com.pulumi.azure.servicefabric.inputs.ManagedClusterLbRuleArgs.builder()
            .backendPort(backendPort.applyValue({ args0 -> args0 }))
            .frontendPort(frontendPort.applyValue({ args0 -> args0 }))
            .probeProtocol(probeProtocol.applyValue({ args0 -> args0 }))
            .probeRequestPath(probeRequestPath?.applyValue({ args0 -> args0 }))
            .protocol(protocol.applyValue({ args0 -> args0 })).build()
}

/**
 * Builder for [ManagedClusterLbRuleArgs].
 */
@PulumiTagMarker
public class ManagedClusterLbRuleArgsBuilder internal constructor() {
    private var backendPort: Output? = null

    private var frontendPort: Output? = null

    private var probeProtocol: Output? = null

    private var probeRequestPath: Output? = null

    private var protocol: Output? = null

    /**
     * @param value LB Backend port.
     */
    @JvmName("irbrnnklmyrtbspx")
    public suspend fun backendPort(`value`: Output) {
        this.backendPort = value
    }

    /**
     * @param value LB Frontend port.
     */
    @JvmName("ltxyllyvebbvsljp")
    public suspend fun frontendPort(`value`: Output) {
        this.frontendPort = value
    }

    /**
     * @param value Protocol for the probe. Can be one of `tcp`, `udp`, `http`, or `https`.
     */
    @JvmName("edvnlsvjmcgtcqru")
    public suspend fun probeProtocol(`value`: Output) {
        this.probeProtocol = value
    }

    /**
     * @param value Path for the probe to check, when probe protocol is set to `http`.
     */
    @JvmName("egukqpuaxbmbopmb")
    public suspend fun probeRequestPath(`value`: Output) {
        this.probeRequestPath = value
    }

    /**
     * @param value The transport protocol used in this rule. Can be one of `tcp` or `udp`.
     */
    @JvmName("wtgmkyxahxxxbwoa")
    public suspend fun protocol(`value`: Output) {
        this.protocol = value
    }

    /**
     * @param value LB Backend port.
     */
    @JvmName("vnaghfoowchggyjn")
    public suspend fun backendPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.backendPort = mapped
    }

    /**
     * @param value LB Frontend port.
     */
    @JvmName("uejhmdmlnscjgqay")
    public suspend fun frontendPort(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.frontendPort = mapped
    }

    /**
     * @param value Protocol for the probe. Can be one of `tcp`, `udp`, `http`, or `https`.
     */
    @JvmName("hmuogcjuwbwieswy")
    public suspend fun probeProtocol(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.probeProtocol = mapped
    }

    /**
     * @param value Path for the probe to check, when probe protocol is set to `http`.
     */
    @JvmName("juidmgvkdrutxlyo")
    public suspend fun probeRequestPath(`value`: String?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.probeRequestPath = mapped
    }

    /**
     * @param value The transport protocol used in this rule. Can be one of `tcp` or `udp`.
     */
    @JvmName("odavwoqovvldxaji")
    public suspend fun protocol(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.protocol = mapped
    }

    internal fun build(): ManagedClusterLbRuleArgs = ManagedClusterLbRuleArgs(
        backendPort = backendPort ?: throw PulumiNullFieldException("backendPort"),
        frontendPort = frontendPort ?: throw PulumiNullFieldException("frontendPort"),
        probeProtocol = probeProtocol ?: throw PulumiNullFieldException("probeProtocol"),
        probeRequestPath = probeRequestPath,
        protocol = protocol ?: throw PulumiNullFieldException("protocol"),
    )
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy