### YamlMime:JavaType uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule" name: "NsgSecurityRule" nameWithType: "NsgSecurityRule" summary: "Security Rule data model for Network Security Groups." inheritances: - "" inheritedClassMethods: - classRef: "" methodsRef: - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" - "" syntax: "public class **NsgSecurityRule**" constructors: - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.NsgSecurityRule()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.NsgSecurityRule()" name: "NsgSecurityRule()" nameWithType: "NsgSecurityRule.NsgSecurityRule()" syntax: "public NsgSecurityRule()" methods: - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.access()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.access()" name: "access()" nameWithType: "NsgSecurityRule.access()" summary: "Get gets or sets whether network traffic is allowed or denied." syntax: "public String access()" desc: "Get gets or sets whether network traffic is allowed or denied. Possible values are \\\\u201cAllow\\\\u201d and \\\\u201cDeny\\\\u201d." returns: description: "the access value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.description()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.description()" name: "description()" nameWithType: "NsgSecurityRule.description()" summary: "Get gets or sets a description for this rule." syntax: "public String description()" desc: "Get gets or sets a description for this rule. Restricted to 140 chars." returns: description: "the description value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationAddressPrefix()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationAddressPrefix()" name: "destinationAddressPrefix()" nameWithType: "NsgSecurityRule.destinationAddressPrefix()" summary: "Get gets or sets destination address prefix." syntax: "public String destinationAddressPrefix()" desc: "Get gets or sets destination address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used." returns: description: "the destinationAddressPrefix value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationPortRange()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.destinationPortRange()" name: "destinationPortRange()" nameWithType: "NsgSecurityRule.destinationPortRange()" summary: "Get gets or sets Destination Port or Range." syntax: "public String destinationPortRange()" desc: "Get gets or sets Destination Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports." returns: description: "the destinationPortRange value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.direction()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.direction()" name: "direction()" nameWithType: "NsgSecurityRule.direction()" summary: "Get gets or sets the direction of the rule.InBound or Outbound." syntax: "public String direction()" desc: "Get gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic." returns: description: "the direction value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.name()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.name()" name: "name()" nameWithType: "NsgSecurityRule.name()" summary: "Get gets or sets the Security rule name." syntax: "public String name()" desc: "Get gets or sets the Security rule name." returns: description: "the name value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.priority()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.priority()" name: "priority()" nameWithType: "NsgSecurityRule.priority()" summary: "Get gets or sets the priority of the rule." syntax: "public Integer priority()" desc: "Get gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." returns: description: "the priority value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.protocol()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.protocol()" name: "protocol()" nameWithType: "NsgSecurityRule.protocol()" summary: "Get gets or sets Network protocol this rule applies to." syntax: "public String protocol()" desc: "Get gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(\\*)." returns: description: "the protocol value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourceAddressPrefix()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourceAddressPrefix()" name: "sourceAddressPrefix()" nameWithType: "NsgSecurityRule.sourceAddressPrefix()" summary: "Get gets or sets source address prefix." syntax: "public String sourceAddressPrefix()" desc: "Get gets or sets source address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used. If this is an ingress rule, specifies where network traffic originates from." returns: description: "the sourceAddressPrefix value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourcePortRange()" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.sourcePortRange()" name: "sourcePortRange()" nameWithType: "NsgSecurityRule.sourcePortRange()" summary: "Get gets or sets Source Port or Range." syntax: "public String sourcePortRange()" desc: "Get gets or sets Source Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports." returns: description: "the sourcePortRange value" type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withAccess(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withAccess(String access)" name: "withAccess(String access)" nameWithType: "NsgSecurityRule.withAccess(String access)" summary: "Set gets or sets whether network traffic is allowed or denied." parameters: - description: "the access value to set" name: "access" type: "" syntax: "public NsgSecurityRule withAccess(String access)" desc: "Set gets or sets whether network traffic is allowed or denied. Possible values are \\\\u201cAllow\\\\u201d and \\\\u201cDeny\\\\u201d." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDescription(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDescription(String description)" name: "withDescription(String description)" nameWithType: "NsgSecurityRule.withDescription(String description)" summary: "Set gets or sets a description for this rule." parameters: - description: "the description value to set" name: "description" type: "" syntax: "public NsgSecurityRule withDescription(String description)" desc: "Set gets or sets a description for this rule. Restricted to 140 chars." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationAddressPrefix(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationAddressPrefix(String destinationAddressPrefix)" name: "withDestinationAddressPrefix(String destinationAddressPrefix)" nameWithType: "NsgSecurityRule.withDestinationAddressPrefix(String destinationAddressPrefix)" summary: "Set gets or sets destination address prefix." parameters: - description: "the destinationAddressPrefix value to set" name: "destinationAddressPrefix" type: "" syntax: "public NsgSecurityRule withDestinationAddressPrefix(String destinationAddressPrefix)" desc: "Set gets or sets destination address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationPortRange(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDestinationPortRange(String destinationPortRange)" name: "withDestinationPortRange(String destinationPortRange)" nameWithType: "NsgSecurityRule.withDestinationPortRange(String destinationPortRange)" summary: "Set gets or sets Destination Port or Range." parameters: - description: "the destinationPortRange value to set" name: "destinationPortRange" type: "" syntax: "public NsgSecurityRule withDestinationPortRange(String destinationPortRange)" desc: "Set gets or sets Destination Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDirection(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withDirection(String direction)" name: "withDirection(String direction)" nameWithType: "NsgSecurityRule.withDirection(String direction)" summary: "Set gets or sets the direction of the rule.InBound or Outbound." parameters: - description: "the direction value to set" name: "direction" type: "" syntax: "public NsgSecurityRule withDirection(String direction)" desc: "Set gets or sets the direction of the rule.InBound or Outbound. The direction specifies if rule will be evaluated on incoming or outgoing traffic." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withName(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withName(String name)" name: "withName(String name)" nameWithType: "NsgSecurityRule.withName(String name)" summary: "Set gets or sets the Security rule name." parameters: - description: "the name value to set" name: "name" type: "" syntax: "public NsgSecurityRule withName(String name)" desc: "Set gets or sets the Security rule name." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withPriority(java.lang.Integer)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withPriority(Integer priority)" name: "withPriority(Integer priority)" nameWithType: "NsgSecurityRule.withPriority(Integer priority)" summary: "Set gets or sets the priority of the rule." parameters: - description: "the priority value to set" name: "priority" type: "" syntax: "public NsgSecurityRule withPriority(Integer priority)" desc: "Set gets or sets the priority of the rule. The value can be between 100 and 4096. The priority number must be unique for each rule in the collection. The lower the priority number, the higher the priority of the rule." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withProtocol(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withProtocol(String protocol)" name: "withProtocol(String protocol)" nameWithType: "NsgSecurityRule.withProtocol(String protocol)" summary: "Set gets or sets Network protocol this rule applies to." parameters: - description: "the protocol value to set" name: "protocol" type: "" syntax: "public NsgSecurityRule withProtocol(String protocol)" desc: "Set gets or sets Network protocol this rule applies to. Can be Tcp, Udp or All(\\*)." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourceAddressPrefix(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourceAddressPrefix(String sourceAddressPrefix)" name: "withSourceAddressPrefix(String sourceAddressPrefix)" nameWithType: "NsgSecurityRule.withSourceAddressPrefix(String sourceAddressPrefix)" summary: "Set gets or sets source address prefix." parameters: - description: "the sourceAddressPrefix value to set" name: "sourceAddressPrefix" type: "" syntax: "public NsgSecurityRule withSourceAddressPrefix(String sourceAddressPrefix)" desc: "Set gets or sets source address prefix. CIDR or source IP range. A \\\\u201c\\*\\\\u201d can also be used to match all source IPs. Default tags such as \\\\u2018VirtualNetwork\\\\u2019, \\\\u2018AzureLoadBalancer\\\\u2019 and \\\\u2018Internet\\\\u2019 can also be used. If this is an ingress rule, specifies where network traffic originates from." returns: description: "the NsgSecurityRule object itself." type: "" - uid: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourcePortRange(java.lang.String)" fullName: "com.microsoft.azure.management.resourcemover.v2021_01_01.NsgSecurityRule.withSourcePortRange(String sourcePortRange)" name: "withSourcePortRange(String sourcePortRange)" nameWithType: "NsgSecurityRule.withSourcePortRange(String sourcePortRange)" summary: "Set gets or sets Source Port or Range." parameters: - description: "the sourcePortRange value to set" name: "sourcePortRange" type: "" syntax: "public NsgSecurityRule withSourcePortRange(String sourcePortRange)" desc: "Set gets or sets Source Port or Range. Integer or range between 0 and 65535. A \\\\u201c\\*\\\\u201d can also be used to match all ports." returns: description: "the NsgSecurityRule object itself." type: "" type: "class" desc: "Security Rule data model for Network Security Groups." metadata: {} package: "com.microsoft.azure.management.resourcemover.v2021_01_01" artifact: com.microsoft.azure.resourcemover.v2021_01_01:azure-mgmt-resourcemover:1.0.0