com.pulumi.azurenative.app.kotlin.inputs.TrafficWeightArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azurenative.app.kotlin.inputs
import com.pulumi.azurenative.app.inputs.TrafficWeightArgs.builder
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.jvm.JvmName
/**
* Traffic weight assigned to a revision
* @property label Associates a traffic label with a revision
* @property latestRevision Indicates that the traffic weight belongs to a latest stable revision
* @property revisionName Name of a revision
* @property weight Traffic weight assigned to a revision
*/
public data class TrafficWeightArgs(
public val label: Output? = null,
public val latestRevision: Output? = null,
public val revisionName: Output? = null,
public val weight: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.app.inputs.TrafficWeightArgs =
com.pulumi.azurenative.app.inputs.TrafficWeightArgs.builder()
.label(label?.applyValue({ args0 -> args0 }))
.latestRevision(latestRevision?.applyValue({ args0 -> args0 }))
.revisionName(revisionName?.applyValue({ args0 -> args0 }))
.weight(weight?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [TrafficWeightArgs].
*/
@PulumiTagMarker
public class TrafficWeightArgsBuilder internal constructor() {
private var label: Output? = null
private var latestRevision: Output? = null
private var revisionName: Output? = null
private var weight: Output? = null
/**
* @param value Associates a traffic label with a revision
*/
@JvmName("wtoaoqccpdvcubhs")
public suspend fun label(`value`: Output) {
this.label = value
}
/**
* @param value Indicates that the traffic weight belongs to a latest stable revision
*/
@JvmName("ngwtmtuyupsbsiwa")
public suspend fun latestRevision(`value`: Output) {
this.latestRevision = value
}
/**
* @param value Name of a revision
*/
@JvmName("qqtmuvphaffuolky")
public suspend fun revisionName(`value`: Output) {
this.revisionName = value
}
/**
* @param value Traffic weight assigned to a revision
*/
@JvmName("ibdspmpogqgxjmpw")
public suspend fun weight(`value`: Output) {
this.weight = value
}
/**
* @param value Associates a traffic label with a revision
*/
@JvmName("mllqgjwtyxtoggja")
public suspend fun label(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.label = mapped
}
/**
* @param value Indicates that the traffic weight belongs to a latest stable revision
*/
@JvmName("nmiasmlxakbvfuhp")
public suspend fun latestRevision(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.latestRevision = mapped
}
/**
* @param value Name of a revision
*/
@JvmName("yohlbsdpjjyhkgco")
public suspend fun revisionName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.revisionName = mapped
}
/**
* @param value Traffic weight assigned to a revision
*/
@JvmName("kkscinfdakufcktr")
public suspend fun weight(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.weight = mapped
}
internal fun build(): TrafficWeightArgs = TrafficWeightArgs(
label = label,
latestRevision = latestRevision,
revisionName = revisionName,
weight = weight,
)
}