com.pulumi.gcp.compute.kotlin.inputs.BackendServiceLocalityLbPolicyCustomPolicyArgs.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.BackendServiceLocalityLbPolicyCustomPolicyArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiNullFieldException
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property data An optional, arbitrary JSON object with configuration data, understood
* by a locally installed custom policy implementation.
* @property name Identifies the custom policy.
* The value should match the type the custom implementation is registered
* with on the gRPC clients. It should follow protocol buffer
* message naming conventions and include the full path (e.g.
* myorg.CustomLbPolicy). The maximum length is 256 characters.
* Note that specifying the same custom policy more than once for a
* backend is not a valid configuration and will be rejected.
*/
public data class BackendServiceLocalityLbPolicyCustomPolicyArgs(
public val `data`: Output? = null,
public val name: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.compute.inputs.BackendServiceLocalityLbPolicyCustomPolicyArgs =
com.pulumi.gcp.compute.inputs.BackendServiceLocalityLbPolicyCustomPolicyArgs.builder()
.`data`(`data`?.applyValue({ args0 -> args0 }))
.name(name.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [BackendServiceLocalityLbPolicyCustomPolicyArgs].
*/
@PulumiTagMarker
public class BackendServiceLocalityLbPolicyCustomPolicyArgsBuilder internal constructor() {
private var `data`: Output? = null
private var name: Output? = null
/**
* @param value An optional, arbitrary JSON object with configuration data, understood
* by a locally installed custom policy implementation.
*/
@JvmName("asnbggivehwssjrx")
public suspend fun `data`(`value`: Output) {
this.`data` = value
}
/**
* @param value Identifies the custom policy.
* The value should match the type the custom implementation is registered
* with on the gRPC clients. It should follow protocol buffer
* message naming conventions and include the full path (e.g.
* myorg.CustomLbPolicy). The maximum length is 256 characters.
* Note that specifying the same custom policy more than once for a
* backend is not a valid configuration and will be rejected.
*/
@JvmName("avskjvfnsnilkgkc")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value An optional, arbitrary JSON object with configuration data, understood
* by a locally installed custom policy implementation.
*/
@JvmName("whotrlmobdhvcqeg")
public suspend fun `data`(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.`data` = mapped
}
/**
* @param value Identifies the custom policy.
* The value should match the type the custom implementation is registered
* with on the gRPC clients. It should follow protocol buffer
* message naming conventions and include the full path (e.g.
* myorg.CustomLbPolicy). The maximum length is 256 characters.
* Note that specifying the same custom policy more than once for a
* backend is not a valid configuration and will be rejected.
*/
@JvmName("auvtwbgibodcqire")
public suspend fun name(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.name = mapped
}
internal fun build(): BackendServiceLocalityLbPolicyCustomPolicyArgs =
BackendServiceLocalityLbPolicyCustomPolicyArgs(
`data` = `data`,
name = name ?: throw PulumiNullFieldException("name"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy