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

com.pulumi.azurenative.mobilenetwork.ServiceArgs Maven / Gradle / Ivy

The 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;

import com.pulumi.azurenative.mobilenetwork.inputs.PccRuleConfigurationArgs;
import com.pulumi.azurenative.mobilenetwork.inputs.QosPolicyArgs;
import com.pulumi.core.Output;
import com.pulumi.core.annotations.Import;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;


public final class ServiceArgs extends com.pulumi.resources.ResourceArgs {

    public static final ServiceArgs Empty = new ServiceArgs();

    /**
     * The geo-location where the resource lives
     * 
     */
    @Import(name="location")
    private @Nullable Output location;

    /**
     * @return The geo-location where the resource lives
     * 
     */
    public Optional> location() {
        return Optional.ofNullable(this.location);
    }

    /**
     * The name of the mobile network.
     * 
     */
    @Import(name="mobileNetworkName", required=true)
    private Output mobileNetworkName;

    /**
     * @return The name of the mobile network.
     * 
     */
    public Output mobileNetworkName() {
        return this.mobileNetworkName;
    }

    /**
     * The set of data flow policy rules that make up this service.
     * 
     */
    @Import(name="pccRules", required=true)
    private Output> pccRules;

    /**
     * @return The set of data flow policy rules that make up this service.
     * 
     */
    public Output> pccRules() {
        return this.pccRules;
    }

    /**
     * The name of the resource group. The name is case insensitive.
     * 
     */
    @Import(name="resourceGroupName", required=true)
    private Output resourceGroupName;

    /**
     * @return The name of the resource group. The name is case insensitive.
     * 
     */
    public Output resourceGroupName() {
        return this.resourceGroupName;
    }

    /**
     * The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`
     * 
     */
    @Import(name="serviceName")
    private @Nullable Output serviceName;

    /**
     * @return The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`
     * 
     */
    public Optional> serviceName() {
        return Optional.ofNullable(this.serviceName);
    }

    /**
     * A precedence value that is used to decide between services 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 services configured in the mobile network.
     * 
     */
    @Import(name="servicePrecedence", required=true)
    private Output servicePrecedence;

    /**
     * @return A precedence value that is used to decide between services 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 services configured in the mobile network.
     * 
     */
    public Output servicePrecedence() {
        return this.servicePrecedence;
    }

    /**
     * The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings.
     * 
     */
    @Import(name="serviceQosPolicy")
    private @Nullable Output serviceQosPolicy;

    /**
     * @return The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings.
     * 
     */
    public Optional> serviceQosPolicy() {
        return Optional.ofNullable(this.serviceQosPolicy);
    }

    /**
     * Resource tags.
     * 
     */
    @Import(name="tags")
    private @Nullable Output> tags;

    /**
     * @return Resource tags.
     * 
     */
    public Optional>> tags() {
        return Optional.ofNullable(this.tags);
    }

    private ServiceArgs() {}

    private ServiceArgs(ServiceArgs $) {
        this.location = $.location;
        this.mobileNetworkName = $.mobileNetworkName;
        this.pccRules = $.pccRules;
        this.resourceGroupName = $.resourceGroupName;
        this.serviceName = $.serviceName;
        this.servicePrecedence = $.servicePrecedence;
        this.serviceQosPolicy = $.serviceQosPolicy;
        this.tags = $.tags;
    }

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

    public static final class Builder {
        private ServiceArgs $;

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

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

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(@Nullable Output location) {
            $.location = location;
            return this;
        }

        /**
         * @param location The geo-location where the resource lives
         * 
         * @return builder
         * 
         */
        public Builder location(String location) {
            return location(Output.of(location));
        }

        /**
         * @param mobileNetworkName The name of the mobile network.
         * 
         * @return builder
         * 
         */
        public Builder mobileNetworkName(Output mobileNetworkName) {
            $.mobileNetworkName = mobileNetworkName;
            return this;
        }

        /**
         * @param mobileNetworkName The name of the mobile network.
         * 
         * @return builder
         * 
         */
        public Builder mobileNetworkName(String mobileNetworkName) {
            return mobileNetworkName(Output.of(mobileNetworkName));
        }

        /**
         * @param pccRules The set of data flow policy rules that make up this service.
         * 
         * @return builder
         * 
         */
        public Builder pccRules(Output> pccRules) {
            $.pccRules = pccRules;
            return this;
        }

        /**
         * @param pccRules The set of data flow policy rules that make up this service.
         * 
         * @return builder
         * 
         */
        public Builder pccRules(List pccRules) {
            return pccRules(Output.of(pccRules));
        }

        /**
         * @param pccRules The set of data flow policy rules that make up this service.
         * 
         * @return builder
         * 
         */
        public Builder pccRules(PccRuleConfigurationArgs... pccRules) {
            return pccRules(List.of(pccRules));
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(Output resourceGroupName) {
            $.resourceGroupName = resourceGroupName;
            return this;
        }

        /**
         * @param resourceGroupName The name of the resource group. The name is case insensitive.
         * 
         * @return builder
         * 
         */
        public Builder resourceGroupName(String resourceGroupName) {
            return resourceGroupName(Output.of(resourceGroupName));
        }

        /**
         * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`
         * 
         * @return builder
         * 
         */
        public Builder serviceName(@Nullable Output serviceName) {
            $.serviceName = serviceName;
            return this;
        }

        /**
         * @param serviceName The name of the service. You must not use any of the following reserved strings - `default`, `requested` or `service`
         * 
         * @return builder
         * 
         */
        public Builder serviceName(String serviceName) {
            return serviceName(Output.of(serviceName));
        }

        /**
         * @param servicePrecedence A precedence value that is used to decide between services 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 services configured in the mobile network.
         * 
         * @return builder
         * 
         */
        public Builder servicePrecedence(Output servicePrecedence) {
            $.servicePrecedence = servicePrecedence;
            return this;
        }

        /**
         * @param servicePrecedence A precedence value that is used to decide between services 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 services configured in the mobile network.
         * 
         * @return builder
         * 
         */
        public Builder servicePrecedence(Integer servicePrecedence) {
            return servicePrecedence(Output.of(servicePrecedence));
        }

        /**
         * @param serviceQosPolicy The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings.
         * 
         * @return builder
         * 
         */
        public Builder serviceQosPolicy(@Nullable Output serviceQosPolicy) {
            $.serviceQosPolicy = serviceQosPolicy;
            return this;
        }

        /**
         * @param serviceQosPolicy The QoS policy to use for packets matching this service. This can be overridden for particular flows using the ruleQosPolicy field in a PccRuleConfiguration. If this field is null then the UE's SIM policy will define the QoS settings.
         * 
         * @return builder
         * 
         */
        public Builder serviceQosPolicy(QosPolicyArgs serviceQosPolicy) {
            return serviceQosPolicy(Output.of(serviceQosPolicy));
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(@Nullable Output> tags) {
            $.tags = tags;
            return this;
        }

        /**
         * @param tags Resource tags.
         * 
         * @return builder
         * 
         */
        public Builder tags(Map tags) {
            return tags(Output.of(tags));
        }

        public ServiceArgs build() {
            if ($.mobileNetworkName == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "mobileNetworkName");
            }
            if ($.pccRules == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "pccRules");
            }
            if ($.resourceGroupName == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "resourceGroupName");
            }
            if ($.servicePrecedence == null) {
                throw new MissingRequiredPropertyException("ServiceArgs", "servicePrecedence");
            }
            return $;
        }
    }

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy