Class IpAddressOrRange
- java.lang.Object
-
- com.azure.resourcemanager.cosmos.models.IpAddressOrRange
-
public final class IpAddressOrRange extends Object
IpAddressOrRange object.
-
-
Constructor Summary
Constructors Constructor Description IpAddressOrRange()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringipAddressOrRange()Get the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.voidvalidate()Validates the instance.IpAddressOrRangewithIpAddressOrRange(String ipAddressOrRange)Set the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.
-
-
-
Method Detail
-
ipAddressOrRange
public String 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
public IpAddressOrRange withIpAddressOrRange(String ipAddressOrRange)
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.
-
-