Class InboundIpRule
java.lang.Object
com.azure.resourcemanager.eventgrid.models.InboundIpRule
The InboundIpRule model.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaction()
Get the action property: Action to perform based on the match or no match of the IpMask.ipMask()
Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.void
validate()
Validates the instance.withAction
(IpActionType action) Set the action property: Action to perform based on the match or no match of the IpMask.withIpMask
(String ipMask) Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
-
Constructor Details
-
InboundIpRule
public InboundIpRule()
-
-
Method Details
-
ipMask
Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.- Returns:
- the ipMask value.
-
withIpMask
Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.- Parameters:
ipMask
- the ipMask value to set.- Returns:
- the InboundIpRule object itself.
-
action
Get the action property: Action to perform based on the match or no match of the IpMask.- Returns:
- the action value.
-
withAction
Set the action property: Action to perform based on the match or no match of the IpMask.- Parameters:
action
- the action value to set.- Returns:
- the InboundIpRule object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-