![JAR search and dependency download from the Maven repository](/logo.png)
com.pulumi.azurenative.mobilenetwork.kotlin.inputs.QosPolicyArgs.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of pulumi-azure-native-kotlin Show documentation
Show all versions of pulumi-azure-native-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.azurenative.mobilenetwork.kotlin.inputs
import com.pulumi.azurenative.mobilenetwork.inputs.QosPolicyArgs.builder
import com.pulumi.azurenative.mobilenetwork.kotlin.enums.PreemptionCapability
import com.pulumi.azurenative.mobilenetwork.kotlin.enums.PreemptionVulnerability
import com.pulumi.core.Either
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 com.pulumi.kotlin.applySuspend
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.jvm.JvmName
/**
* QoS policy
* @property allocationAndRetentionPriorityLevel QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
* @property fiveQi 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition the 5QI values.
* @property maximumBitRate The maximum bit rate (MBR) for all service data flows that use this data flow policy rule or service.
* @property preemptionCapability QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
* @property preemptionVulnerability QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
public data class QosPolicyArgs(
public val allocationAndRetentionPriorityLevel: Output? = null,
public val fiveQi: Output? = null,
public val maximumBitRate: Output,
public val preemptionCapability: Output>? = null,
public val preemptionVulnerability: Output>? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azurenative.mobilenetwork.inputs.QosPolicyArgs =
com.pulumi.azurenative.mobilenetwork.inputs.QosPolicyArgs.builder()
.allocationAndRetentionPriorityLevel(
allocationAndRetentionPriorityLevel?.applyValue({ args0 ->
args0
}),
)
.fiveQi(fiveQi?.applyValue({ args0 -> args0 }))
.maximumBitRate(maximumBitRate.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.preemptionCapability(
preemptionCapability?.applyValue({ args0 ->
args0.transform(
{ args0 -> args0 },
{ args0 -> args0.let({ args0 -> args0.toJava() }) },
)
}),
)
.preemptionVulnerability(
preemptionVulnerability?.applyValue({ args0 ->
args0.transform({ args0 ->
args0
}, { args0 -> args0.let({ args0 -> args0.toJava() }) })
}),
).build()
}
/**
* Builder for [QosPolicyArgs].
*/
@PulumiTagMarker
public class QosPolicyArgsBuilder internal constructor() {
private var allocationAndRetentionPriorityLevel: Output? = null
private var fiveQi: Output? = null
private var maximumBitRate: Output? = null
private var preemptionCapability: Output>? = null
private var preemptionVulnerability: Output>? = null
/**
* @param value QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("tuibihrdyqixtlpv")
public suspend fun allocationAndRetentionPriorityLevel(`value`: Output) {
this.allocationAndRetentionPriorityLevel = value
}
/**
* @param value 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition the 5QI values.
*/
@JvmName("uodkwheqbculsrob")
public suspend fun fiveQi(`value`: Output) {
this.fiveQi = value
}
/**
* @param value The maximum bit rate (MBR) for all service data flows that use this data flow policy rule or service.
*/
@JvmName("gubydhmuuswcdlgo")
public suspend fun maximumBitRate(`value`: Output) {
this.maximumBitRate = value
}
/**
* @param value QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("kamixhwpkkdswnfu")
public suspend fun preemptionCapability(`value`: Output>) {
this.preemptionCapability = value
}
/**
* @param value QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("qjyabnuubhobmenm")
public suspend fun preemptionVulnerability(`value`: Output>) {
this.preemptionVulnerability = value
}
/**
* @param value QoS Flow allocation and retention priority (ARP) level. Flows with higher priority preempt flows with lower priority, if the settings of `preemptionCapability` and `preemptionVulnerability` allow it. 1 is the highest level of priority. If this field is not specified then `5qi` is used to derive the ARP value. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("hsmdsixqqsetmimd")
public suspend fun allocationAndRetentionPriorityLevel(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.allocationAndRetentionPriorityLevel = mapped
}
/**
* @param value 5G QoS Flow Indicator value. The 5QI identifies a specific QoS forwarding treatment to be provided to a flow. See 3GPP TS23.501 section 5.7.2.1 for a full description of the 5QI parameter, and table 5.7.4-1 for the definition the 5QI values.
*/
@JvmName("jivmsugqhabnfcca")
public suspend fun fiveQi(`value`: Int?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.fiveQi = mapped
}
/**
* @param value The maximum bit rate (MBR) for all service data flows that use this data flow policy rule or service.
*/
@JvmName("tjtrdkyaumjljphb")
public suspend fun maximumBitRate(`value`: AmbrArgs) {
val toBeMapped = value
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.maximumBitRate = mapped
}
/**
* @param argument The maximum bit rate (MBR) for all service data flows that use this data flow policy rule or service.
*/
@JvmName("fmkyigfrwrtghwcn")
public suspend fun maximumBitRate(argument: suspend AmbrArgsBuilder.() -> Unit) {
val toBeMapped = AmbrArgsBuilder().applySuspend { argument() }.build()
val mapped = of(toBeMapped)
this.maximumBitRate = mapped
}
/**
* @param value QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("kybpsfonulqacheq")
public suspend fun preemptionCapability(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preemptionCapability = mapped
}
/**
* @param value QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("sdkgelrmmmoivkds")
public fun preemptionCapability(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.preemptionCapability = mapped
}
/**
* @param value QoS Flow preemption capability. The preemption capability of a QoS Flow controls whether it can preempt another QoS Flow with a lower priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("gcptxfldprstmbrk")
public fun preemptionCapability(`value`: PreemptionCapability) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.preemptionCapability = mapped
}
/**
* @param value QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("wjybhmimycolipkr")
public suspend fun preemptionVulnerability(`value`: Either?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.preemptionVulnerability = mapped
}
/**
* @param value QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("fhytdbsydbbtpsqx")
public fun preemptionVulnerability(`value`: String) {
val toBeMapped = Either.ofLeft(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.preemptionVulnerability = mapped
}
/**
* @param value QoS Flow preemption vulnerability. The preemption vulnerability of a QoS Flow controls whether it can be preempted by a QoS Flow with a higher priority level. See 3GPP TS23.501 section 5.7.2.2 for a full description of the ARP parameters.
*/
@JvmName("ykgmwoccmnbnenqm")
public fun preemptionVulnerability(`value`: PreemptionVulnerability) {
val toBeMapped = Either.ofRight(value)
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.preemptionVulnerability = mapped
}
internal fun build(): QosPolicyArgs = QosPolicyArgs(
allocationAndRetentionPriorityLevel = allocationAndRetentionPriorityLevel,
fiveQi = fiveQi,
maximumBitRate = maximumBitRate ?: throw PulumiNullFieldException("maximumBitRate"),
preemptionCapability = preemptionCapability,
preemptionVulnerability = preemptionVulnerability,
)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy