Class IpSecurityRestriction
- java.lang.Object
-
- com.microsoft.azure.management.appservice.IpSecurityRestriction
-
public class IpSecurityRestriction extends Object
IP security restriction on an app.
-
-
Constructor Summary
Constructors Constructor Description IpSecurityRestriction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Stringaction()Get allow or Deny access for this IP range.Stringdescription()Get iP restriction rule description.StringipAddress()Get iP address the security restriction is valid for.Stringname()Get iP restriction rule name.Integerpriority()Get priority of IP restriction rule.StringsubnetMask()Get subnet mask for the range of IP addresses the restriction is valid for.IntegersubnetTrafficTag()Get (internal) Subnet traffic tag.IpFilterTagtag()Get defines what this IP filter will be used for.StringvnetSubnetResourceId()Get virtual network resource id.IntegervnetTrafficTag()Get (internal) Vnet traffic tag.IpSecurityRestrictionwithAction(String action)Set allow or Deny access for this IP range.IpSecurityRestrictionwithDescription(String description)Set iP restriction rule description.IpSecurityRestrictionwithIpAddress(String ipAddress)Set iP address the security restriction is valid for.IpSecurityRestrictionwithName(String name)Set iP restriction rule name.IpSecurityRestrictionwithPriority(Integer priority)Set priority of IP restriction rule.IpSecurityRestrictionwithSubnetMask(String subnetMask)Set subnet mask for the range of IP addresses the restriction is valid for.IpSecurityRestrictionwithSubnetTrafficTag(Integer subnetTrafficTag)Set (internal) Subnet traffic tag.IpSecurityRestrictionwithTag(IpFilterTag tag)Set defines what this IP filter will be used for.IpSecurityRestrictionwithVnetSubnetResourceId(String vnetSubnetResourceId)Set virtual network resource id.IpSecurityRestrictionwithVnetTrafficTag(Integer vnetTrafficTag)Set (internal) Vnet traffic tag.
-
-
-
Method Detail
-
ipAddress
public String ipAddress()
Get iP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified.- Returns:
- the ipAddress value
-
withIpAddress
public IpSecurityRestriction withIpAddress(String ipAddress)
Set iP address the security restriction is valid for. It can be in form of pure ipv4 address (required SubnetMask property) or CIDR notation such as ipv4/mask (leading bit match). For CIDR, SubnetMask property must not be specified.- Parameters:
ipAddress- the ipAddress value to set- Returns:
- the IpSecurityRestriction object itself.
-
subnetMask
public String subnetMask()
Get subnet mask for the range of IP addresses the restriction is valid for.- Returns:
- the subnetMask value
-
withSubnetMask
public IpSecurityRestriction withSubnetMask(String subnetMask)
Set subnet mask for the range of IP addresses the restriction is valid for.- Parameters:
subnetMask- the subnetMask value to set- Returns:
- the IpSecurityRestriction object itself.
-
vnetSubnetResourceId
public String vnetSubnetResourceId()
Get virtual network resource id.- Returns:
- the vnetSubnetResourceId value
-
withVnetSubnetResourceId
public IpSecurityRestriction withVnetSubnetResourceId(String vnetSubnetResourceId)
Set virtual network resource id.- Parameters:
vnetSubnetResourceId- the vnetSubnetResourceId value to set- Returns:
- the IpSecurityRestriction object itself.
-
vnetTrafficTag
public Integer vnetTrafficTag()
Get (internal) Vnet traffic tag.- Returns:
- the vnetTrafficTag value
-
withVnetTrafficTag
public IpSecurityRestriction withVnetTrafficTag(Integer vnetTrafficTag)
Set (internal) Vnet traffic tag.- Parameters:
vnetTrafficTag- the vnetTrafficTag value to set- Returns:
- the IpSecurityRestriction object itself.
-
subnetTrafficTag
public Integer subnetTrafficTag()
Get (internal) Subnet traffic tag.- Returns:
- the subnetTrafficTag value
-
withSubnetTrafficTag
public IpSecurityRestriction withSubnetTrafficTag(Integer subnetTrafficTag)
Set (internal) Subnet traffic tag.- Parameters:
subnetTrafficTag- the subnetTrafficTag value to set- Returns:
- the IpSecurityRestriction object itself.
-
action
public String action()
Get allow or Deny access for this IP range.- Returns:
- the action value
-
withAction
public IpSecurityRestriction withAction(String action)
Set allow or Deny access for this IP range.- Parameters:
action- the action value to set- Returns:
- the IpSecurityRestriction object itself.
-
tag
public IpFilterTag tag()
Get defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'.- Returns:
- the tag value
-
withTag
public IpSecurityRestriction withTag(IpFilterTag tag)
Set defines what this IP filter will be used for. This is to support IP filtering on proxies. Possible values include: 'Default', 'XffProxy'.- Parameters:
tag- the tag value to set- Returns:
- the IpSecurityRestriction object itself.
-
priority
public Integer priority()
Get priority of IP restriction rule.- Returns:
- the priority value
-
withPriority
public IpSecurityRestriction withPriority(Integer priority)
Set priority of IP restriction rule.- Parameters:
priority- the priority value to set- Returns:
- the IpSecurityRestriction object itself.
-
name
public String name()
Get iP restriction rule name.- Returns:
- the name value
-
withName
public IpSecurityRestriction withName(String name)
Set iP restriction rule name.- Parameters:
name- the name value to set- Returns:
- the IpSecurityRestriction object itself.
-
description
public String description()
Get iP restriction rule description.- Returns:
- the description value
-
withDescription
public IpSecurityRestriction withDescription(String description)
Set iP restriction rule description.- Parameters:
description- the description value to set- Returns:
- the IpSecurityRestriction object itself.
-
-