com.pulumi.gcp.networkservices.kotlin.inputs.GrpcRouteRuleActionDestinationArgs.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.networkservices.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionDestinationArgs.builder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
*
* @property serviceName The URL of a BackendService to route traffic to.
* @property weight Specifies the proportion of requests forwarded to the backend referenced by the serviceName field.
*/
public data class GrpcRouteRuleActionDestinationArgs(
public val serviceName: Output? = null,
public val weight: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionDestinationArgs =
com.pulumi.gcp.networkservices.inputs.GrpcRouteRuleActionDestinationArgs.builder()
.serviceName(serviceName?.applyValue({ args0 -> args0 }))
.weight(weight?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [GrpcRouteRuleActionDestinationArgs].
*/
@PulumiTagMarker
public class GrpcRouteRuleActionDestinationArgsBuilder internal constructor() {
private var serviceName: Output? = null
private var weight: Output? = null
/**
* @param value The URL of a BackendService to route traffic to.
*/
@JvmName("gkluysvnstmynqot")
public suspend fun serviceName(`value`: Output) {
this.serviceName = value
}
/**
* @param value Specifies the proportion of requests forwarded to the backend referenced by the serviceName field.
*/
@JvmName("gkhuhaosqdgddhtv")
public suspend fun weight(`value`: Output) {
this.weight = value
}
/**
* @param value The URL of a BackendService to route traffic to.
*/
@JvmName("mcmysoqunwpwofmc")
public suspend fun serviceName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.serviceName = mapped
}
/**
* @param value Specifies the proportion of requests forwarded to the backend referenced by the serviceName field.
*/
@JvmName("lqirckxwigqtosjr")
public suspend fun weight(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.weight = mapped
}
internal fun build(): GrpcRouteRuleActionDestinationArgs = GrpcRouteRuleActionDestinationArgs(
serviceName = serviceName,
weight = weight,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy