com.pulumi.gcp.compute.kotlin.inputs.BackendServiceLocalityLbPolicyArgs.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.compute.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.compute.inputs.BackendServiceLocalityLbPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
*
* @property customPolicy The configuration for a custom policy implemented by the user and
* deployed with the client.
* Structure is documented below.
* @property policy The configuration for a built-in load balancing policy.
* Structure is documented below.
*/
public data class BackendServiceLocalityLbPolicyArgs(
public val customPolicy: Output? = null,
public val policy: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceLocalityLbPolicyArgs =
com.pulumi.gcp.compute.inputs.BackendServiceLocalityLbPolicyArgs.builder()
.customPolicy(customPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.policy(policy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) })).build()
}
/**
* Builder for [BackendServiceLocalityLbPolicyArgs].
*/
@PulumiTagMarker
public class BackendServiceLocalityLbPolicyArgsBuilder internal constructor() {
private var customPolicy: Output? = null
private var policy: Output? = null
/**
* @param value The configuration for a custom policy implemented by the user and
* deployed with the client.
* Structure is documented below.
*/
@JvmName("wwrtjatrdelnqpye")
public suspend fun customPolicy(`value`: Output) {
this.customPolicy = value
}
/**
* @param value The configuration for a built-in load balancing policy.
* Structure is documented below.
*/
@JvmName("arfoxfeknkluayih")
public suspend fun policy(`value`: Output) {
this.policy = value
}
/**
* @param value The configuration for a custom policy implemented by the user and
* deployed with the client.
* Structure is documented below.
*/
@JvmName("wrwwvcfsxlvnikse")
public suspend fun customPolicy(`value`: BackendServiceLocalityLbPolicyCustomPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.customPolicy = mapped
}
/**
* @param argument The configuration for a custom policy implemented by the user and
* deployed with the client.
* Structure is documented below.
*/
@JvmName("kydpsiwkgbpuqywo")
public suspend fun customPolicy(argument: suspend BackendServiceLocalityLbPolicyCustomPolicyArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceLocalityLbPolicyCustomPolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.customPolicy = mapped
}
/**
* @param value The configuration for a built-in load balancing policy.
* Structure is documented below.
*/
@JvmName("ojkatjfmqsxxmeii")
public suspend fun policy(`value`: BackendServiceLocalityLbPolicyPolicyArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.policy = mapped
}
/**
* @param argument The configuration for a built-in load balancing policy.
* Structure is documented below.
*/
@JvmName("agggdyosifbphiui")
public suspend fun policy(argument: suspend BackendServiceLocalityLbPolicyPolicyArgsBuilder.() -> Unit) {
val toBeMapped = BackendServiceLocalityLbPolicyPolicyArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.policy = mapped
}
internal fun build(): BackendServiceLocalityLbPolicyArgs = BackendServiceLocalityLbPolicyArgs(
customPolicy = customPolicy,
policy = policy,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy