public final class IpSecurityRestriction extends Object
| Constructor and Description |
|---|
IpSecurityRestriction() |
| Modifier and Type | Method and Description |
|---|---|
String |
action()
Get the action property: Allow or Deny access for this IP range.
|
String |
description()
Get the description property: IP restriction rule description.
|
Map<String,List<String>> |
headers()
Get the headers property: IP restriction rule headers.
|
String |
ipAddress()
Get the ipAddress property: IP address the security restriction is valid for.
|
String |
name()
Get the name property: IP restriction rule name.
|
Integer |
priority()
Get the priority property: Priority of IP restriction rule.
|
String |
subnetMask()
Get the subnetMask property: Subnet mask for the range of IP addresses the restriction is valid for.
|
Integer |
subnetTrafficTag()
Get the subnetTrafficTag property: (internal) Subnet traffic tag.
|
IpFilterTag |
tag()
Get the tag property: Defines what this IP filter will be used for.
|
void |
validate()
Validates the instance.
|
String |
vnetSubnetResourceId()
Get the vnetSubnetResourceId property: Virtual network resource id.
|
Integer |
vnetTrafficTag()
Get the vnetTrafficTag property: (internal) Vnet traffic tag.
|
IpSecurityRestriction |
withAction(String action)
Set the action property: Allow or Deny access for this IP range.
|
IpSecurityRestriction |
withDescription(String description)
Set the description property: IP restriction rule description.
|
IpSecurityRestriction |
withHeaders(Map<String,List<String>> headers)
Set the headers property: IP restriction rule headers.
|
IpSecurityRestriction |
withIpAddress(String ipAddress)
Set the ipAddress property: IP address the security restriction is valid for.
|
IpSecurityRestriction |
withName(String name)
Set the name property: IP restriction rule name.
|
IpSecurityRestriction |
withPriority(Integer priority)
Set the priority property: Priority of IP restriction rule.
|
IpSecurityRestriction |
withSubnetMask(String subnetMask)
Set the subnetMask property: Subnet mask for the range of IP addresses the restriction is valid for.
|
IpSecurityRestriction |
withSubnetTrafficTag(Integer subnetTrafficTag)
Set the subnetTrafficTag property: (internal) Subnet traffic tag.
|
IpSecurityRestriction |
withTag(IpFilterTag tag)
Set the tag property: Defines what this IP filter will be used for.
|
IpSecurityRestriction |
withVnetSubnetResourceId(String vnetSubnetResourceId)
Set the vnetSubnetResourceId property: Virtual network resource id.
|
IpSecurityRestriction |
withVnetTrafficTag(Integer vnetTrafficTag)
Set the vnetTrafficTag property: (internal) Vnet traffic tag.
|
public String ipAddress()
public IpSecurityRestriction withIpAddress(String ipAddress)
ipAddress - the ipAddress value to set.public String subnetMask()
public IpSecurityRestriction withSubnetMask(String subnetMask)
subnetMask - the subnetMask value to set.public String vnetSubnetResourceId()
public IpSecurityRestriction withVnetSubnetResourceId(String vnetSubnetResourceId)
vnetSubnetResourceId - the vnetSubnetResourceId value to set.public Integer vnetTrafficTag()
public IpSecurityRestriction withVnetTrafficTag(Integer vnetTrafficTag)
vnetTrafficTag - the vnetTrafficTag value to set.public Integer subnetTrafficTag()
public IpSecurityRestriction withSubnetTrafficTag(Integer subnetTrafficTag)
subnetTrafficTag - the subnetTrafficTag value to set.public String action()
public IpSecurityRestriction withAction(String action)
action - the action value to set.public IpFilterTag tag()
public IpSecurityRestriction withTag(IpFilterTag tag)
tag - the tag value to set.public Integer priority()
public IpSecurityRestriction withPriority(Integer priority)
priority - the priority value to set.public String name()
public IpSecurityRestriction withName(String name)
name - the name value to set.public String description()
public IpSecurityRestriction withDescription(String description)
description - the description value to set.public Map<String,List<String>> headers()
X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property.
X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match.
public IpSecurityRestriction withHeaders(Map<String,List<String>> headers)
X-Forwarded-For (https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/X-Forwarded-For#Examples). The matching logic is .. - If the property is null or empty (default), any forwarded-for chains (or lack of) are allowed. - If any address (excluding port number) in the chain (comma separated) matches the CIDR defined by the property.
X-Azure-FDID and X-FD-HealthProbe. The matching logic is exact match.
headers - the headers value to set.public void validate()
IllegalArgumentException - thrown if the instance is not valid.Copyright © 2021 Microsoft Corporation. All rights reserved.