com.pulumi.azure.mobile.outputs.GetNetworkServicePccRule Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.mobile.outputs;
import com.pulumi.azure.mobile.outputs.GetNetworkServicePccRuleQosPolicy;
import com.pulumi.azure.mobile.outputs.GetNetworkServicePccRuleServiceDataFlowTemplate;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.Objects;
@CustomType
public final class GetNetworkServicePccRule {
/**
* @return Specifies the name which should be used for this Mobile Network Service.
*
*/
private String name;
/**
* @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.
*
*/
private Integer precedence;
/**
* @return A `rule_qos_policy` block as defined below. The QoS policy to use for packets matching this rule.
*
*/
private List qosPolicies;
/**
* @return A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
*
*/
private List serviceDataFlowTemplates;
/**
* @return Determines whether flows that match this data flow policy rule are permitted.
*
*/
private Boolean trafficControlEnabled;
private GetNetworkServicePccRule() {}
/**
* @return Specifies the name which should be used for this Mobile Network Service.
*
*/
public String name() {
return this.name;
}
/**
* @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.
*
*/
public Integer precedence() {
return this.precedence;
}
/**
* @return A `rule_qos_policy` block as defined below. The QoS policy to use for packets matching this rule.
*
*/
public List qosPolicies() {
return this.qosPolicies;
}
/**
* @return A `service_data_flow_template` block as defined below. The set of service data flow templates to use for this PCC rule.
*
*/
public List serviceDataFlowTemplates() {
return this.serviceDataFlowTemplates;
}
/**
* @return Determines whether flows that match this data flow policy rule are permitted.
*
*/
public Boolean trafficControlEnabled() {
return this.trafficControlEnabled;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetNetworkServicePccRule defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String name;
private Integer precedence;
private List qosPolicies;
private List serviceDataFlowTemplates;
private Boolean trafficControlEnabled;
public Builder() {}
public Builder(GetNetworkServicePccRule defaults) {
Objects.requireNonNull(defaults);
this.name = defaults.name;
this.precedence = defaults.precedence;
this.qosPolicies = defaults.qosPolicies;
this.serviceDataFlowTemplates = defaults.serviceDataFlowTemplates;
this.trafficControlEnabled = defaults.trafficControlEnabled;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetNetworkServicePccRule", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder precedence(Integer precedence) {
if (precedence == null) {
throw new MissingRequiredPropertyException("GetNetworkServicePccRule", "precedence");
}
this.precedence = precedence;
return this;
}
@CustomType.Setter
public Builder qosPolicies(List qosPolicies) {
if (qosPolicies == null) {
throw new MissingRequiredPropertyException("GetNetworkServicePccRule", "qosPolicies");
}
this.qosPolicies = qosPolicies;
return this;
}
public Builder qosPolicies(GetNetworkServicePccRuleQosPolicy... qosPolicies) {
return qosPolicies(List.of(qosPolicies));
}
@CustomType.Setter
public Builder serviceDataFlowTemplates(List serviceDataFlowTemplates) {
if (serviceDataFlowTemplates == null) {
throw new MissingRequiredPropertyException("GetNetworkServicePccRule", "serviceDataFlowTemplates");
}
this.serviceDataFlowTemplates = serviceDataFlowTemplates;
return this;
}
public Builder serviceDataFlowTemplates(GetNetworkServicePccRuleServiceDataFlowTemplate... serviceDataFlowTemplates) {
return serviceDataFlowTemplates(List.of(serviceDataFlowTemplates));
}
@CustomType.Setter
public Builder trafficControlEnabled(Boolean trafficControlEnabled) {
if (trafficControlEnabled == null) {
throw new MissingRequiredPropertyException("GetNetworkServicePccRule", "trafficControlEnabled");
}
this.trafficControlEnabled = trafficControlEnabled;
return this;
}
public GetNetworkServicePccRule build() {
final var _resultValue = new GetNetworkServicePccRule();
_resultValue.name = name;
_resultValue.precedence = precedence;
_resultValue.qosPolicies = qosPolicies;
_resultValue.serviceDataFlowTemplates = serviceDataFlowTemplates;
_resultValue.trafficControlEnabled = trafficControlEnabled;
return _resultValue;
}
}
}