IpAddressOrRange Class

  • java.lang.Object
    • com.azure.resourcemanager.cosmos.models.IpAddressOrRange

public final class IpAddressOrRange

IpAddressOrRange object.

Constructor Summary

Constructor Description
IpAddressOrRange()

Creates an instance of IpAddressOrRange class.

Method Summary

Modifier and Type Method and Description
String ipAddressOrRange()

Get the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.

void validate()

Validates the instance.

IpAddressOrRange withIpAddressOrRange(String ipAddressOrRange)

Set the ipAddressOrRange property: A single IPv4 address or a single IPv4 address range in CIDR format.

Methods inherited from java.lang.Object

Constructor Details

IpAddressOrRange

public IpAddressOrRange()

Creates an instance of IpAddressOrRange class.

Method Details

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: \u201c23.40.210.245\u201d or \u201c23.40.210.0/8\u201d.

Returns:

the ipAddressOrRange value.

validate

public void validate()

Validates the instance.

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: \u201c23.40.210.245\u201d or \u201c23.40.210.0/8\u201d.

Parameters:

ipAddressOrRange - the ipAddressOrRange value to set.

Returns:

the IpAddressOrRange object itself.

Applies to