IpFilterRule Class
- java.
lang. Object - com.
azure. resourcemanager. deviceprovisioningservices. models. IpFilterRule
- com.
Implements
public final class IpFilterRule
implements JsonSerializable<IpFilterRule>
The IP filter rules for a provisioning Service.
Constructor Summary
| Constructor | Description |
|---|---|
| IpFilterRule() |
Creates an instance of Ip |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Ip |
action()
Get the action property: The desired action for requests captured by this rule. |
| String |
filterName()
Get the filter |
|
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
| String |
ipMask()
Get the ip |
|
Ip |
target()
Get the target property: Target for requests captured by this rule. |
|
Json |
toJson(JsonWriter jsonWriter) |
|
Ip |
withAction(IpFilterActionType action)
Set the action property: The desired action for requests captured by this rule. |
|
Ip |
withFilterName(String filterName)
Set the filter |
|
Ip |
withIpMask(String ipMask)
Set the ip |
|
Ip |
withTarget(IpFilterTargetType target)
Set the target property: Target for requests captured by this rule. |
Methods inherited from java.lang.Object
Constructor Details
IpFilterRule
public IpFilterRule()
Creates an instance of IpFilterRule class.
Method Details
action
public IpFilterActionType action()
Get the action property: The desired action for requests captured by this rule.
Returns:
filterName
public String filterName()
Get the filterName property: The name of the IP filter rule.
Returns:
fromJson
public static IpFilterRule fromJson(JsonReader jsonReader)
Reads an instance of IpFilterRule from the JsonReader.
Parameters:
Returns:
Throws:
ipMask
public String ipMask()
Get the ipMask property: A string that contains the IP address range in CIDR notation for the rule.
Returns:
target
public IpFilterTargetType target()
Get the target property: Target for requests captured by this rule.
Returns:
toJson
withAction
public IpFilterRule withAction(IpFilterActionType action)
Set the action property: The desired action for requests captured by this rule.
Parameters:
Returns:
withFilterName
public IpFilterRule withFilterName(String filterName)
Set the filterName property: The name of the IP filter rule.
Parameters:
Returns:
withIpMask
public IpFilterRule withIpMask(String ipMask)
Set the ipMask property: A string that contains the IP address range in CIDR notation for the rule.
Parameters:
Returns:
withTarget
public IpFilterRule withTarget(IpFilterTargetType target)
Set the target property: Target for requests captured by this rule.
Parameters:
Returns: