Class IpRule
- java.lang.Object
-
- com.azure.resourcemanager.storage.models.IpRule
-
public final class IpRule extends Object
IP rule with specific IP or IP range in CIDR format.
-
-
Constructor Summary
Constructors Constructor Description IpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Actionaction()Get the action property: The action of IP ACL rule.StringipAddressOrRange()Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format.voidvalidate()Validates the instance.IpRulewithAction(Action action)Set the action property: The action of IP ACL rule.IpRulewithIpAddressOrRange(String ipAddressOrRange)Set the ipAddressOrRange property: Specifies the IP or IP range in CIDR format.
-
-
-
Method Detail
-
ipAddressOrRange
public String ipAddressOrRange()
Get the ipAddressOrRange property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.- Returns:
- the ipAddressOrRange value.
-
withIpAddressOrRange
public IpRule withIpAddressOrRange(String ipAddressOrRange)
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.
-
action
public Action action()
Get the action property: The action of IP ACL rule.- Returns:
- the action value.
-
withAction
public IpRule withAction(Action action)
Set the action property: The action of IP ACL rule.- Parameters:
action- the action value to set.- Returns:
- the IpRule object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-