NetworkSecurityGroupRule Class
- java.
lang. Object - com.
microsoft. azure. batch. protocol. models. NetworkSecurityGroupRule
- com.
public class NetworkSecurityGroupRule
A network security group rule to apply to an inbound endpoint.
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
access()
Get possible values include: 'allow', 'deny'. |
int |
priority()
Get priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or duplicate values are provided the request fails with HTTP status code 400. |
String |
sourceAddressPrefix()
Get valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400. |
Network |
withAccess(NetworkSecurityGroupRuleAccess access)
Set possible values include: 'allow', 'deny'. |
Network |
withPriority(int priority)
Set priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or duplicate values are provided the request fails with HTTP status code 400. |
Network |
withSourceAddressPrefix(String sourceAddressPrefix)
Set valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400. |
Method Details
access
public NetworkSecurityGroupRuleAccess access()
Get possible values include: 'allow', 'deny'.
Returns:
priority
public int priority()
Get priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or duplicate values are provided the request fails with HTTP status code 400.
Returns:
sourceAddressPrefix
public String sourceAddressPrefix()
Get valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.
Returns:
withAccess
public NetworkSecurityGroupRule withAccess(NetworkSecurityGroupRuleAccess access)
Set possible values include: 'allow', 'deny'.
Parameters:
Returns:
withPriority
public NetworkSecurityGroupRule withPriority(int priority)
Set priorities within a pool must be unique and are evaluated in order of priority. The lower the number the higher the priority. For example, rules could be specified with order numbers of 150, 250, and 350. The rule with the order number of 150 takes precedence over the rule that has an order of 250. Allowed priorities are 150 to 3500. If any reserved or duplicate values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
withSourceAddressPrefix
public NetworkSecurityGroupRule withSourceAddressPrefix(String sourceAddressPrefix)
Set valid values are a single IP address (i.e. 10.10.10.10), IP subnet (i.e. 192.168.1.0/24), default tag, or * (for all addresses). If any other values are provided the request fails with HTTP status code 400.
Parameters:
Returns:
Applies to
Azure SDK for Java