All Downloads are FREE. Search and download functionalities are using the official Maven repository.

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>) {
        this.serviceDataFlowTemplates = Output.all(values)
    }

    /**
     * @param value Determines whether flows that match this data flow policy rule are permitted. Defaults to `true`.
     */
    @JvmName("mgcoxqykdytqntlw")
    public suspend fun trafficControlEnabled(`value`: Output) {
        this.trafficControlEnabled = value
    }

    /**
     * @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("xwotjbhrslamojcv")
    public suspend fun name(`value`: String) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.name = mapped
    }

    /**
     * @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("tmdjnondkpngssnc")
    public suspend fun precedence(`value`: Int) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.precedence = mapped
    }

    /**
     * @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("dwrfwypfwatjajpw")
    public suspend fun qosPolicy(`value`: NetworkServicePccRuleQosPolicyArgs?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.qosPolicy = mapped
    }

    /**
     * @param argument 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("tvfqycflggnevlrk")
    public suspend fun qosPolicy(argument: suspend NetworkServicePccRuleQosPolicyArgsBuilder.() -> Unit) {
        val toBeMapped = NetworkServicePccRuleQosPolicyArgsBuilder().applySuspend { argument() }.build()
        val mapped = of(toBeMapped)
        this.qosPolicy = mapped
    }

    /**
     * @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("qssqwruvgqumkouf")
    public suspend fun serviceDataFlowTemplates(`value`: List) {
        val toBeMapped = value
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceDataFlowTemplates = mapped
    }

    /**
     * @param argument A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
     */
    @JvmName("avguvxvpcdouqckd")
    public suspend fun serviceDataFlowTemplates(argument: List Unit>) {
        val toBeMapped = argument.toList().map {
            NetworkServicePccRuleServiceDataFlowTemplateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceDataFlowTemplates = mapped
    }

    /**
     * @param argument A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
     */
    @JvmName("kmqvkekqwnevsetq")
    public suspend fun serviceDataFlowTemplates(vararg argument: suspend NetworkServicePccRuleServiceDataFlowTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = argument.toList().map {
            NetworkServicePccRuleServiceDataFlowTemplateArgsBuilder().applySuspend { it() }.build()
        }
        val mapped = of(toBeMapped)
        this.serviceDataFlowTemplates = mapped
    }

    /**
     * @param argument A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
     */
    @JvmName("vsnmsopfqvnmfphn")
    public suspend fun serviceDataFlowTemplates(argument: suspend NetworkServicePccRuleServiceDataFlowTemplateArgsBuilder.() -> Unit) {
        val toBeMapped = listOf(
            NetworkServicePccRuleServiceDataFlowTemplateArgsBuilder().applySuspend {
                argument()
            }.build(),
        )
        val mapped = of(toBeMapped)
        this.serviceDataFlowTemplates = mapped
    }

    /**
     * @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("tfinqdidnfohvryd")
    public suspend fun serviceDataFlowTemplates(vararg values: NetworkServicePccRuleServiceDataFlowTemplateArgs) {
        val toBeMapped = values.toList()
        val mapped = toBeMapped.let({ args0 -> of(args0) })
        this.serviceDataFlowTemplates = mapped
    }

    /**
     * @param value Determines whether flows that match this data flow policy rule are permitted. Defaults to `true`.
     */
    @JvmName("arxceyfmxfbulhhy")
    public suspend fun trafficControlEnabled(`value`: Boolean?) {
        val toBeMapped = value
        val mapped = toBeMapped?.let({ args0 -> of(args0) })
        this.trafficControlEnabled = mapped
    }

    internal fun build(): NetworkServicePccRuleArgs = NetworkServicePccRuleArgs(
        name = name ?: throw PulumiNullFieldException("name"),
        precedence = precedence ?: throw PulumiNullFieldException("precedence"),
        qosPolicy = qosPolicy,
        serviceDataFlowTemplates = serviceDataFlowTemplates ?: throw
            PulumiNullFieldException("serviceDataFlowTemplates"),
        trafficControlEnabled = trafficControlEnabled,
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy