Class IpRule
java.lang.Object
com.azure.resourcemanager.containerregistry.models.IpRule
IP rule with specific IP or IP range in CIDR format.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: The action of IP ACL rule.Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format.voidvalidate()Validates the instance.withAction(Action action) Set the action property: The action of IP ACL rule.withIpAddressOrRange(String ipAddressOrRange) Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format.
-
Constructor Details
-
IpRule
public IpRule()Creates an instance of IpRule class.
-
-
Method Details
-
action
Get the action property: The action of IP ACL rule.- Returns:
- the action value.
-
withAction
Set the action property: The action of IP ACL rule.- Parameters:
action- the action value to set.- Returns:
- the IpRule object itself.
-
ipAddressOrRange
Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.- Returns:
- the ipAddressOrRange value.
-
withIpAddressOrRange
Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.- Parameters:
ipAddressOrRange- the ipAddressOrRange value to set.- Returns:
- the IpRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-