com.pulumi.azure.mobile.kotlin.inputs.NetworkServicePccRuleArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.azure.mobile.kotlin.inputs
import com.pulumi.azure.mobile.inputs.NetworkServicePccRuleArgs.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 com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Int
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.List
import kotlin.jvm.JvmName
/**
*
* @property name Specifies the name of the rule. This must be unique within the parent service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
* @property precedence A precedence value that is used to decide between data flow policy rules when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all data flow policy rules configured in the mobile network. Must be between `0` and `255`.
* @property qosPolicy A `qos_policy` block as defined below. The QoS policy to use for packets matching this rule. If this field is not specified then the Service will define the QoS settings.
* @property serviceDataFlowTemplates A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
* @property trafficControlEnabled Determines whether flows that match this data flow policy rule are permitted. Defaults to `true`.
*/
public data class NetworkServicePccRuleArgs(
public val name: Output,
public val precedence: Output,
public val qosPolicy: Output? = null,
public val serviceDataFlowTemplates: Output>,
public val trafficControlEnabled: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.azure.mobile.inputs.NetworkServicePccRuleArgs =
com.pulumi.azure.mobile.inputs.NetworkServicePccRuleArgs.builder()
.name(name.applyValue({ args0 -> args0 }))
.precedence(precedence.applyValue({ args0 -> args0 }))
.qosPolicy(qosPolicy?.applyValue({ args0 -> args0.let({ args0 -> args0.toJava() }) }))
.serviceDataFlowTemplates(
serviceDataFlowTemplates.applyValue({ args0 ->
args0.map({ args0 ->
args0.let({ args0 -> args0.toJava() })
})
}),
)
.trafficControlEnabled(trafficControlEnabled?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [NetworkServicePccRuleArgs].
*/
@PulumiTagMarker
public class NetworkServicePccRuleArgsBuilder internal constructor() {
private var name: Output? = null
private var precedence: Output? = null
private var qosPolicy: Output? = null
private var serviceDataFlowTemplates:
Output>? = null
private var trafficControlEnabled: Output? = null
/**
* @param value Specifies the name of the rule. This must be unique within the parent service. You must not use any of the following reserved strings - `default`, `requested` or `service`.
*/
@JvmName("ipnflysgjijduxkl")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value A precedence value that is used to decide between data flow policy rules when identifying the QoS values to use for a particular SIM. A lower value means a higher priority. This value should be unique among all data flow policy rules configured in the mobile network. Must be between `0` and `255`.
*/
@JvmName("qgikjdktixqreblo")
public suspend fun precedence(`value`: Output) {
this.precedence = value
}
/**
* @param value A `qos_policy` block as defined below. The QoS policy to use for packets matching this rule. If this field is not specified then the Service will define the QoS settings.
*/
@JvmName("bdokxeybgivragyj")
public suspend fun qosPolicy(`value`: Output) {
this.qosPolicy = value
}
/**
* @param value A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
*/
@JvmName("buamjgcnuewdkpcm")
public suspend fun serviceDataFlowTemplates(`value`: Output>) {
this.serviceDataFlowTemplates = value
}
@JvmName("glqebvixlqkcunyf")
public suspend fun serviceDataFlowTemplates(vararg values: Output) {
this.serviceDataFlowTemplates = Output.all(values.asList())
}
/**
* @param values A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
*/
@JvmName("avffkuwievucsyam")
public suspend fun serviceDataFlowTemplates(values: List