Class IpRule
java.lang.Object
com.azure.resourcemanager.batch.models.IpRule
Rule to filter client IP address.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaction()Get the action property: Action when client IP address is matched.voidvalidate()Validates the instance.value()Get the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR format.withAction(String action) Set the action property: Action when client IP address is matched.Set the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR format.
-
Constructor Details
-
IpRule
public IpRule()Creates an instance of IpRule class.
-
-
Method Details
-
action
Get the action property: Action when client IP address is matched.- Returns:
- the action value.
-
withAction
Set the action property: Action when client IP address is matched.- Parameters:
action- the action value to set.- Returns:
- the IpRule object itself.
-
value
Get the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR format.- Returns:
- the value value.
-
withValue
Set the value property: The IP address or IP address range to filter IPv4 address, or IPv4 address range in CIDR format.- Parameters:
value- the value value to set.- Returns:
- the IpRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-