Class IpRule
java.lang.Object
com.azure.resourcemanager.network.models.IpRule
The IpRule model.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the addressPrefix property: Specifies the IP or IP range in CIDR format.voidvalidate()Validates the instance.withAddressPrefix(String addressPrefix) Set the addressPrefix property: Specifies the IP or IP range in CIDR format.
-
Constructor Details
-
IpRule
public IpRule()Creates an instance of IpRule class.
-
-
Method Details
-
addressPrefix
Get the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.- Returns:
- the addressPrefix value.
-
withAddressPrefix
Set the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.- Parameters:
addressPrefix- the addressPrefix value to set.- Returns:
- the IpRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-