IpAddressOrRange Class
- java.
lang. Object - com.
azure. resourcemanager. cosmos. models. IpAddressOrRange
- com.
public final class IpAddressOrRange
IpAddressOrRange object.
Constructor Summary
Constructor | Description |
---|---|
IpAddressOrRange() |
Creates an instance of Ip |
Method Summary
Modifier and Type | Method and Description |
---|---|
String |
ipAddressOrRange()
Get the ip |
void |
validate()
Validates the instance. |
Ip |
withIpAddressOrRange(String ipAddressOrRange)
Set the ip |
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:
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:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for