Class InboundIpRule
- java.lang.Object
-
- com.azure.resourcemanager.eventgrid.models.InboundIpRule
-
public final class InboundIpRule extends Object
The InboundIpRule model.
-
-
Constructor Summary
Constructors Constructor Description InboundIpRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IpActionTypeaction()Get the action property: Action to perform based on the match or no match of the IpMask.StringipMask()Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.voidvalidate()Validates the instance.InboundIpRulewithAction(IpActionType action)Set the action property: Action to perform based on the match or no match of the IpMask.InboundIpRulewithIpMask(String ipMask)Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
-
-
-
Method Detail
-
ipMask
public String ipMask()
Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.- Returns:
- the ipMask value.
-
withIpMask
public InboundIpRule withIpMask(String ipMask)
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
public IpActionType action()
Get the action property: Action to perform based on the match or no match of the IpMask.- Returns:
- the action value.
-
withAction
public InboundIpRule withAction(IpActionType action)
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.
-
-