com.pulumi.aws.appmesh.kotlin.inputs.RouteSpecHttp2RouteActionWeightedTargetArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-aws-kotlin Show documentation
Show all versions of pulumi-aws-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.aws.appmesh.kotlin.inputs
import com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionWeightedTargetArgs.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 port The targeted port of the weighted object.
* @property virtualNode Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
* @property weight Relative weight of the weighted target. An integer between 0 and 100.
*/
public data class RouteSpecHttp2RouteActionWeightedTargetArgs(
public val port: Output? = null,
public val virtualNode: Output,
public val weight: Output,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionWeightedTargetArgs =
com.pulumi.aws.appmesh.inputs.RouteSpecHttp2RouteActionWeightedTargetArgs.builder()
.port(port?.applyValue({ args0 -> args0 }))
.virtualNode(virtualNode.applyValue({ args0 -> args0 }))
.weight(weight.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [RouteSpecHttp2RouteActionWeightedTargetArgs].
*/
@PulumiTagMarker
public class RouteSpecHttp2RouteActionWeightedTargetArgsBuilder internal constructor() {
private var port: Output? = null
private var virtualNode: Output? = null
private var weight: Output? = null
/**
* @param value The targeted port of the weighted object.
*/
@JvmName("wesfvjhnyrtgymbd")
public suspend fun port(`value`: Output) {
this.port = value
}
/**
* @param value Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
*/
@JvmName("fuogydbveskcegye")
public suspend fun virtualNode(`value`: Output) {
this.virtualNode = value
}
/**
* @param value Relative weight of the weighted target. An integer between 0 and 100.
*/
@JvmName("wxcfsogyqjvcwrdc")
public suspend fun weight(`value`: Output) {
this.weight = value
}
/**
* @param value The targeted port of the weighted object.
*/
@JvmName("lwrktdbwdafikfdm")
public suspend fun port(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.port = mapped
}
/**
* @param value Virtual node to associate with the weighted target. Must be between 1 and 255 characters in length.
*/
@JvmName("fsyeyygvombphkdd")
public suspend fun virtualNode(`value`: String) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.virtualNode = mapped
}
/**
* @param value Relative weight of the weighted target. An integer between 0 and 100.
*/
@JvmName("ylgbgdiighsuxjqm")
public suspend fun weight(`value`: Int) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.weight = mapped
}
internal fun build(): RouteSpecHttp2RouteActionWeightedTargetArgs =
RouteSpecHttp2RouteActionWeightedTargetArgs(
port = port,
virtualNode = virtualNode ?: throw PulumiNullFieldException("virtualNode"),
weight = weight ?: throw PulumiNullFieldException("weight"),
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy