java.lang.Object
com.azure.resourcemanager.mediaservices.models.IpRange

public final class IpRange extends Object
The IP address range in the CIDR scheme.
  • Constructor Details

    • IpRange

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

    • name

      public String name()
      Get the name property: The friendly name for the IP address range.
      Returns:
      the name value.
    • withName

      public IpRange withName(String name)
      Set the name property: The friendly name for the IP address range.
      Parameters:
      name - the name value to set.
      Returns:
      the IpRange object itself.
    • address

      public String address()
      Get the address property: The IP address.
      Returns:
      the address value.
    • withAddress

      public IpRange withAddress(String address)
      Set the address property: The IP address.
      Parameters:
      address - the address value to set.
      Returns:
      the IpRange object itself.
    • subnetPrefixLength

      public Integer subnetPrefixLength()
      Get the subnetPrefixLength property: The subnet mask prefix length (see CIDR notation).
      Returns:
      the subnetPrefixLength value.
    • withSubnetPrefixLength

      public IpRange withSubnetPrefixLength(Integer subnetPrefixLength)
      Set the subnetPrefixLength property: The subnet mask prefix length (see CIDR notation).
      Parameters:
      subnetPrefixLength - the subnetPrefixLength value to set.
      Returns:
      the IpRange object itself.
    • validate

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