Class IpRange
java.lang.Object
com.azure.resourcemanager.mediaservices.models.IpRange
The IP address range in the CIDR scheme.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaddress()
Get the address property: The IP address.name()
Get the name property: The friendly name for the IP address range.Get the subnetPrefixLength property: The subnet mask prefix length (see CIDR notation).void
validate()
Validates the instance.withAddress
(String address) Set the address property: The IP address.Set the name property: The friendly name for the IP address range.withSubnetPrefixLength
(Integer subnetPrefixLength) Set the subnetPrefixLength property: The subnet mask prefix length (see CIDR notation).
-
Constructor Details
-
IpRange
public IpRange()Creates an instance of IpRange class.
-
-
Method Details
-
name
Get the name property: The friendly name for the IP address range.- Returns:
- the name value.
-
withName
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
Get the address property: The IP address.- Returns:
- the address value.
-
withAddress
Set the address property: The IP address.- Parameters:
address
- the address value to set.- Returns:
- the IpRange object itself.
-
subnetPrefixLength
Get the subnetPrefixLength property: The subnet mask prefix length (see CIDR notation).- Returns:
- the subnetPrefixLength value.
-
withSubnetPrefixLength
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.
-