public class NetworkSecurityGroupRule extends Object
| Constructor and Description |
|---|
NetworkSecurityGroupRule() |
| Modifier and Type | Method and Description |
|---|---|
NetworkSecurityGroupRuleAccess |
access()
Get possible values include: 'Allow', 'Deny'.
|
int |
priority()
Get priorities within a pool must be unique and are evaluated in order of priority.
|
String |
sourceAddressPrefix()
Get valid values are a single IP address (i.e.
|
List<String> |
sourcePortRanges()
Get valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e.
|
NetworkSecurityGroupRule |
withAccess(NetworkSecurityGroupRuleAccess access)
Set possible values include: 'Allow', 'Deny'.
|
NetworkSecurityGroupRule |
withPriority(int priority)
Set priorities within a pool must be unique and are evaluated in order of priority.
|
NetworkSecurityGroupRule |
withSourceAddressPrefix(String sourceAddressPrefix)
Set valid values are a single IP address (i.e.
|
NetworkSecurityGroupRule |
withSourcePortRanges(List<String> sourcePortRanges)
Set valid values are '*' (for all ports 0 - 65535) or arrays of ports or port ranges (i.e.
|
public int priority()
public NetworkSecurityGroupRule withPriority(int priority)
priority - the priority value to setpublic NetworkSecurityGroupRuleAccess access()
public NetworkSecurityGroupRule withAccess(NetworkSecurityGroupRuleAccess access)
access - the access value to setpublic String sourceAddressPrefix()
public NetworkSecurityGroupRule withSourceAddressPrefix(String sourceAddressPrefix)
sourceAddressPrefix - the sourceAddressPrefix value to setpublic List<String> sourcePortRanges()
public NetworkSecurityGroupRule withSourcePortRanges(List<String> sourcePortRanges)
sourcePortRanges - the sourcePortRanges value to set/**
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for
* license information.
*/