com.pulumi.azurenative.network.kotlin.inputs.BackendPoolArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.network.kotlin.inputs
import com.pulumi.azurenative.network.inputs.BackendPoolArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
* A backend pool is a collection of backends that can be routed to.
* @property backends The set of backends for this pool
* @property healthProbeSettings L7 health probe settings for a backend pool
* @property id Resource ID.
* @property loadBalancingSettings Load balancing settings for a backend pool
* @property name Resource name.
*/
public data class BackendPoolArgs(
public val backends: Output>? = null,
public val healthProbeSettings: Output? = null,
public val id: Output? = null,
public val loadBalancingSettings: Output? = null,
public val name: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.network.inputs.BackendPoolArgs =
com.pulumi.azurenative.network.inputs.BackendPoolArgs.builder()
.backends(
backends?.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
})
}),
)
.healthProbeSettings(
healthProbeSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.id(id?.applyValue({ args0 -> args0 }))
.loadBalancingSettings(
loadBalancingSettings?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.name(name?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackendPoolArgs].
*/
@PulumiTagMarker
public class BackendPoolArgsBuilder internal constructor() {
private var backends: Output>? = null
private var healthProbeSettings: Output? = null
private var id: Output? = null
private var loadBalancingSettings: Output? = null
private var name: Output? = null
/**
* @param value The set of backends for this pool
*/
@JvmName("jwclfoscangrypip")
public suspend fun backends(`value`: Output>) {
this.backends = value
}
@JvmName("kebgiaesrydwaibf")
public suspend fun backends(vararg values: Output) {
this.backends = Output.all(values.asList())
}
/**
* @param values The set of backends for this pool
*/
@JvmName("kejvuxttixflhtku")
public suspend fun backends(values: List