Class VpnNatRuleMapping

java.lang.Object
com.azure.resourcemanager.network.models.VpnNatRuleMapping

public final class VpnNatRuleMapping extends Object
Vpn NatRule mapping.
  • Constructor Details

    • VpnNatRuleMapping

      public VpnNatRuleMapping()
      Creates an instance of VpnNatRuleMapping class.
  • Method Details

    • addressSpace

      public String addressSpace()
      Get the addressSpace property: Address space for Vpn NatRule mapping.
      Returns:
      the addressSpace value.
    • withAddressSpace

      public VpnNatRuleMapping withAddressSpace(String addressSpace)
      Set the addressSpace property: Address space for Vpn NatRule mapping.
      Parameters:
      addressSpace - the addressSpace value to set.
      Returns:
      the VpnNatRuleMapping object itself.
    • portRange

      public String portRange()
      Get the portRange property: Port range for Vpn NatRule mapping.
      Returns:
      the portRange value.
    • withPortRange

      public VpnNatRuleMapping withPortRange(String portRange)
      Set the portRange property: Port range for Vpn NatRule mapping.
      Parameters:
      portRange - the portRange value to set.
      Returns:
      the VpnNatRuleMapping object itself.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.