Class IpAddressOrRange
java.lang.Object
com.azure.resourcemanager.cosmos.models.IpAddressOrRange
IpAddressOrRange object.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.voidvalidate()Validates the instance.withIpAddressOrRange(String ipAddressOrRange) Set the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.
-
Constructor Details
-
IpAddressOrRange
public IpAddressOrRange()Creates an instance of IpAddressOrRange class.
-
-
Method Details
-
ipAddressOrRange
Get the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.- Returns:
- the ipAddressOrRange value.
-
withIpAddressOrRange
Set the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format. Provided IPs must be well-formatted and cannot be contained in one of the following ranges: 10.0.0.0/8, 100.64.0.0/10, 172.16.0.0/12, 192.168.0.0/16, since these are not enforceable by the IP address filter. Example of valid inputs: “23.40.210.245” or “23.40.210.0/8”.- Parameters:
ipAddressOrRange- the ipAddressOrRange value to set.- Returns:
- the IpAddressOrRange object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-