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

com.pulumi.azurenative.mobilenetwork.inputs.PccRuleConfigurationArgs Maven / Gradle / Ivy

There is a newer version: 2.82.0
Show newest version
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***

package com.pulumi.azurenative.mobilenetwork.inputs;

import com.pulumi.azurenative.mobilenetwork.enums.TrafficControlPermission;
import com.pulumi.azurenative.mobilenetwork.inputs.PccRuleQosPolicyArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.ServiceDataFlowTemplateArgs;
import com.pulumi.core.Either;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.core.internal.Codegen;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


/**
 * Data flow policy rule configuration
 * 
 */
public final class PccRuleConfigurationArgs extends com.pulumi.resources.ResourceArgs {

    public static final PccRuleConfigurationArgs Empty = new PccRuleConfigurationArgs();

    /**
     * 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`.
     * 
     */
    @Import(name="ruleName", required=true)
    private Output ruleName;

    /**
     * @return 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`.
     * 
     */
    public Output ruleName() {
        return this.ruleName;
    }

    /**
     * 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.
     * 
     */
    @Import(name="rulePrecedence", required=true)
    private Output rulePrecedence;

    /**
     * @return 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.
     * 
     */
    public Output rulePrecedence() {
        return this.rulePrecedence;
    }

    /**
     * The QoS policy to use for packets matching this rule. If this field is null then the parent service will define the QoS settings.
     * 
     */
    @Import(name="ruleQosPolicy")
    private @Nullable Output ruleQosPolicy;

    /**
     * @return The QoS policy to use for packets matching this rule. If this field is null then the parent service will define the QoS settings.
     * 
     */
    public Optional> ruleQosPolicy() {
        return Optional.ofNullable(this.ruleQosPolicy);
    }

    /**
     * The set of data flow templates to use for this data flow policy rule.
     * 
     */
    @Import(name="serviceDataFlowTemplates", required=true)
    private Output> serviceDataFlowTemplates;

    /**
     * @return The set of data flow templates to use for this data flow policy rule.
     * 
     */
    public Output> serviceDataFlowTemplates() {
        return this.serviceDataFlowTemplates;
    }

    /**
     * Determines whether flows that match this data flow policy rule are permitted.
     * 
     */
    @Import(name="trafficControl")
    private @Nullable Output> trafficControl;

    /**
     * @return Determines whether flows that match this data flow policy rule are permitted.
     * 
     */
    public Optional>> trafficControl() {
        return Optional.ofNullable(this.trafficControl);
    }

    private PccRuleConfigurationArgs() {}

    private PccRuleConfigurationArgs(PccRuleConfigurationArgs $) {
        this.ruleName = $.ruleName;
        this.rulePrecedence = $.rulePrecedence;
        this.ruleQosPolicy = $.ruleQosPolicy;
        this.serviceDataFlowTemplates = $.serviceDataFlowTemplates;
        this.trafficControl = $.trafficControl;
    }

    public static Builder builder() {
        return new Builder();
    }
    public static Builder builder(PccRuleConfigurationArgs defaults) {
        return new Builder(defaults);
    }

    public static final class Builder {
        private PccRuleConfigurationArgs $;

        public Builder() {
            $ = new PccRuleConfigurationArgs();
        }

        public Builder(PccRuleConfigurationArgs defaults) {
            $ = new PccRuleConfigurationArgs(Objects.requireNonNull(defaults));
        }

        /**
         * @param ruleName 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`.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(Output ruleName) {
            $.ruleName = ruleName;
            return this;
        }

        /**
         * @param ruleName 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`.
         * 
         * @return builder
         * 
         */
        public Builder ruleName(String ruleName) {
            return ruleName(Output.of(ruleName));
        }

        /**
         * @param rulePrecedence 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.
         * 
         * @return builder
         * 
         */
        public Builder rulePrecedence(Output rulePrecedence) {
            $.rulePrecedence = rulePrecedence;
            return this;
        }

        /**
         * @param rulePrecedence 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.
         * 
         * @return builder
         * 
         */
        public Builder rulePrecedence(Integer rulePrecedence) {
            return rulePrecedence(Output.of(rulePrecedence));
        }

        /**
         * @param ruleQosPolicy The QoS policy to use for packets matching this rule. If this field is null then the parent service will define the QoS settings.
         * 
         * @return builder
         * 
         */
        public Builder ruleQosPolicy(@Nullable Output ruleQosPolicy) {
            $.ruleQosPolicy = ruleQosPolicy;
            return this;
        }

        /**
         * @param ruleQosPolicy The QoS policy to use for packets matching this rule. If this field is null then the parent service will define the QoS settings.
         * 
         * @return builder
         * 
         */
        public Builder ruleQosPolicy(PccRuleQosPolicyArgs ruleQosPolicy) {
            return ruleQosPolicy(Output.of(ruleQosPolicy));
        }

        /**
         * @param serviceDataFlowTemplates The set of data flow templates to use for this data flow policy rule.
         * 
         * @return builder
         * 
         */
        public Builder serviceDataFlowTemplates(Output> serviceDataFlowTemplates) {
            $.serviceDataFlowTemplates = serviceDataFlowTemplates;
            return this;
        }

        /**
         * @param serviceDataFlowTemplates The set of data flow templates to use for this data flow policy rule.
         * 
         * @return builder
         * 
         */
        public Builder serviceDataFlowTemplates(List serviceDataFlowTemplates) {
            return serviceDataFlowTemplates(Output.of(serviceDataFlowTemplates));
        }

        /**
         * @param serviceDataFlowTemplates The set of data flow templates to use for this data flow policy rule.
         * 
         * @return builder
         * 
         */
        public Builder serviceDataFlowTemplates(ServiceDataFlowTemplateArgs... serviceDataFlowTemplates) {
            return serviceDataFlowTemplates(List.of(serviceDataFlowTemplates));
        }

        /**
         * @param trafficControl Determines whether flows that match this data flow policy rule are permitted.
         * 
         * @return builder
         * 
         */
        public Builder trafficControl(@Nullable Output> trafficControl) {
            $.trafficControl = trafficControl;
            return this;
        }

        /**
         * @param trafficControl Determines whether flows that match this data flow policy rule are permitted.
         * 
         * @return builder
         * 
         */
        public Builder trafficControl(Either trafficControl) {
            return trafficControl(Output.of(trafficControl));
        }

        /**
         * @param trafficControl Determines whether flows that match this data flow policy rule are permitted.
         * 
         * @return builder
         * 
         */
        public Builder trafficControl(String trafficControl) {
            return trafficControl(Either.ofLeft(trafficControl));
        }

        /**
         * @param trafficControl Determines whether flows that match this data flow policy rule are permitted.
         * 
         * @return builder
         * 
         */
        public Builder trafficControl(TrafficControlPermission trafficControl) {
            return trafficControl(Either.ofRight(trafficControl));
        }

        public PccRuleConfigurationArgs build() {
            if ($.ruleName == null) {
                throw new MissingRequiredPropertyException("PccRuleConfigurationArgs", "ruleName");
            }
            if ($.rulePrecedence == null) {
                throw new MissingRequiredPropertyException("PccRuleConfigurationArgs", "rulePrecedence");
            }
            if ($.serviceDataFlowTemplates == null) {
                throw new MissingRequiredPropertyException("PccRuleConfigurationArgs", "serviceDataFlowTemplates");
            }
            $.trafficControl = Codegen.stringProp("trafficControl").left(TrafficControlPermission.class).output().arg($.trafficControl).def("Enabled").getNullable();
            return $;
        }
    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy