com.pulumi.gcp.cloudrunv2.kotlin.inputs.ServiceTrafficArgs.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.cloudrunv2.kotlin.inputs
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.cloudrunv2.inputs.ServiceTrafficArgs.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 percent Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
* @property revision Revision to which to send this portion of traffic, if traffic allocation is by revision.
* @property tag Indicates a string to be part of the URI to exclusively reference this target.
* @property type The allocation type for this traffic target.
* Possible values are: `TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST`, `TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION`.
*/
public data class ServiceTrafficArgs(
public val percent: Output? = null,
public val revision: Output? = null,
public val tag: Output? = null,
public val type: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.cloudrunv2.inputs.ServiceTrafficArgs =
com.pulumi.gcp.cloudrunv2.inputs.ServiceTrafficArgs.builder()
.percent(percent?.applyValue({ args0 -> args0 }))
.revision(revision?.applyValue({ args0 -> args0 }))
.tag(tag?.applyValue({ args0 -> args0 }))
.type(type?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [ServiceTrafficArgs].
*/
@PulumiTagMarker
public class ServiceTrafficArgsBuilder internal constructor() {
private var percent: Output? = null
private var revision: Output? = null
private var tag: Output? = null
private var type: Output? = null
/**
* @param value Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
*/
@JvmName("vbyhcmvgncifivor")
public suspend fun percent(`value`: Output) {
this.percent = value
}
/**
* @param value Revision to which to send this portion of traffic, if traffic allocation is by revision.
*/
@JvmName("toghigoffgjsklnr")
public suspend fun revision(`value`: Output) {
this.revision = value
}
/**
* @param value Indicates a string to be part of the URI to exclusively reference this target.
*/
@JvmName("noesqdfoswlmewmv")
public suspend fun tag(`value`: Output) {
this.tag = value
}
/**
* @param value The allocation type for this traffic target.
* Possible values are: `TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST`, `TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION`.
*/
@JvmName("kvgcjywxcxqgxjhb")
public suspend fun type(`value`: Output) {
this.type = value
}
/**
* @param value Specifies percent of the traffic to this Revision. This defaults to zero if unspecified.
*/
@JvmName("ourcxlujvoipmnrx")
public suspend fun percent(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.percent = mapped
}
/**
* @param value Revision to which to send this portion of traffic, if traffic allocation is by revision.
*/
@JvmName("mndmjdwbhcnepjov")
public suspend fun revision(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.revision = mapped
}
/**
* @param value Indicates a string to be part of the URI to exclusively reference this target.
*/
@JvmName("namsdkextoiaratx")
public suspend fun tag(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.tag = mapped
}
/**
* @param value The allocation type for this traffic target.
* Possible values are: `TRAFFIC_TARGET_ALLOCATION_TYPE_LATEST`, `TRAFFIC_TARGET_ALLOCATION_TYPE_REVISION`.
*/
@JvmName("lcdbcfvemcidleaq")
public suspend fun type(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.type = mapped
}
internal fun build(): ServiceTrafficArgs = ServiceTrafficArgs(
percent = percent,
revision = revision,
tag = tag,
type = type,
)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy