IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. batch. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
Rule to filter client IP address.
Constructor Summary
| Constructor | Description |
|---|---|
| IpRule() |
Creates an instance of Ip |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
action()
Get the action property: Action when client IP address is matched. |
|
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
| String |
value()
Get the value property: IPv4 address, or IPv4 address range in CIDR format. |
|
Ip |
withAction(String action)
Set the action property: Action when client IP address is matched. |
|
Ip |
withValue(String value)
Set the value property: IPv4 address, or IPv4 address range in CIDR format. |
Methods inherited from java.lang.Object
Constructor Details
IpRule
public IpRule()
Creates an instance of IpRule class.
Method Details
action
public String action()
Get the action property: Action when client IP address is matched.
Returns:
fromJson
public static IpRule fromJson(JsonReader jsonReader)
Reads an instance of IpRule from the JsonReader.
Parameters:
Returns:
Throws:
toJson
validate
public void validate()
Validates the instance.
value
public String value()
Get the value property: IPv4 address, or IPv4 address range in CIDR format.
Returns:
withAction
public IpRule withAction(String action)
Set the action property: Action when client IP address is matched.
Parameters:
Returns:
withValue
public IpRule withValue(String value)
Set the value property: IPv4 address, or IPv4 address range in CIDR format.
Parameters:
Returns: