Class ServiceDataFlowTemplate
java.lang.Object
com.azure.resourcemanager.mobilenetwork.models.ServiceDataFlowTemplate
Data flow template.
-
Constructor Summary
ConstructorDescriptionCreates an instance of ServiceDataFlowTemplate class. -
Method Summary
Modifier and TypeMethodDescriptionGet the direction property: The direction of this flow.ports()
Get the ports property: The port(s) to which UEs will connect for this flow.protocol()
Get the protocol property: A list of the allowed protocol(s) for this flow.Get the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow.Get the templateName property: The name of the data flow template.void
validate()
Validates the instance.withDirection
(SdfDirection direction) Set the direction property: The direction of this flow.Set the ports property: The port(s) to which UEs will connect for this flow.withProtocol
(List<String> protocol) Set the protocol property: A list of the allowed protocol(s) for this flow.withRemoteIpList
(List<String> remoteIpList) Set the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow.withTemplateName
(String templateName) Set the templateName property: The name of the data flow template.
-
Constructor Details
-
ServiceDataFlowTemplate
public ServiceDataFlowTemplate()Creates an instance of ServiceDataFlowTemplate class.
-
-
Method Details
-
templateName
Get the templateName property: The name of the data flow template. This must be unique within the parent data flow policy rule. You must not use any of the following reserved strings - `default`, `requested` or `service`.- Returns:
- the templateName value.
-
withTemplateName
Set the templateName property: The name of the data flow template. This must be unique within the parent data flow policy rule. You must not use any of the following reserved strings - `default`, `requested` or `service`.- Parameters:
templateName
- the templateName value to set.- Returns:
- the ServiceDataFlowTemplate object itself.
-
direction
Get the direction property: The direction of this flow.- Returns:
- the direction value.
-
withDirection
Set the direction property: The direction of this flow.- Parameters:
direction
- the direction value to set.- Returns:
- the ServiceDataFlowTemplate object itself.
-
protocol
Get the protocol property: A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. If you use the value `ip` then you must leave the field `port` unspecified.- Returns:
- the protocol value.
-
withProtocol
Set the protocol property: A list of the allowed protocol(s) for this flow. If you want this flow to be able to use any protocol within the internet protocol suite, use the value `ip`. If you only want to allow a selection of protocols, you must use the corresponding IANA Assigned Internet Protocol Number for each protocol, as described in https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml. For example, for UDP, you must use 17. If you use the value `ip` then you must leave the field `port` unspecified.- Parameters:
protocol
- the protocol value to set.- Returns:
- the ServiceDataFlowTemplate object itself.
-
remoteIpList
Get the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow. If you want to allow connections on any IP address, use the value `any`. Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).- Returns:
- the remoteIpList value.
-
withRemoteIpList
Set the remoteIpList property: The remote IP address(es) to which UEs will connect for this flow. If you want to allow connections on any IP address, use the value `any`. Otherwise, you must provide each of the remote IP addresses to which the packet core instance will connect for this flow. You must provide each IP address in CIDR notation, including the netmask (for example, 192.0.2.54/24).- Parameters:
remoteIpList
- the remoteIpList value to set.- Returns:
- the ServiceDataFlowTemplate object itself.
-
ports
Get the ports property: The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges must be specified as <FirstPort>-<LastPort>. For example: [`8080`, `8082-8085`].- Returns:
- the ports value.
-
withPorts
Set the ports property: The port(s) to which UEs will connect for this flow. You can specify zero or more ports or port ranges. If you specify one or more ports or port ranges then you must specify a value other than `ip` in the `protocol` field. This is an optional setting. If you do not specify it then connections will be allowed on all ports. Port ranges must be specified as <FirstPort>-<LastPort>. For example: [`8080`, `8082-8085`].- Parameters:
ports
- the ports value to set.- Returns:
- the ServiceDataFlowTemplate object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-