InboundIpRule Class
- java.
lang. Object - com.
azure. resourcemanager. eventgrid. models. InboundIpRule
- com.
Implements
public final class InboundIpRule
implements JsonSerializable<InboundIpRule>
The InboundIpRule model.
Constructor Summary
| Constructor | Description |
|---|---|
| InboundIpRule() |
Creates an instance of Inbound |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ip |
action()
Get the action property: Action to perform based on the match or no match of the Ip |
|
static
Inbound |
fromJson(JsonReader jsonReader)
Reads an instance of Inbound |
| String |
ipMask()
Get the ip |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Inbound |
withAction(IpActionType action)
Set the action property: Action to perform based on the match or no match of the Ip |
|
Inbound |
withIpMask(String ipMask)
Set the ip |
Methods inherited from java.lang.Object
Constructor Details
InboundIpRule
public InboundIpRule()
Creates an instance of InboundIpRule class.
Method Details
action
public IpActionType action()
Get the action property: Action to perform based on the match or no match of the IpMask.
Returns:
fromJson
public static InboundIpRule fromJson(JsonReader jsonReader)
Reads an instance of InboundIpRule from the JsonReader.
Parameters:
Returns:
Throws:
ipMask
public String ipMask()
Get the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
Returns:
toJson
validate
public void validate()
Validates the instance.
withAction
public InboundIpRule withAction(IpActionType action)
Set the action property: Action to perform based on the match or no match of the IpMask.
Parameters:
Returns:
withIpMask
public InboundIpRule withIpMask(String ipMask)
Set the ipMask property: IP Address in CIDR notation e.g., 10.0.0.0/8.
Parameters:
Returns: