Class IpSecurityRestriction

java.lang.Object
com.microsoft.azure.management.appservice.IpSecurityRestriction

public class IpSecurityRestriction extends Object
IP security restriction on an app.
  • Constructor Details

    • IpSecurityRestriction

      public IpSecurityRestriction()
  • Method Details

    • 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.