IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. webpubsub. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
An IP rule.
Constructor Summary
| Constructor | Description |
|---|---|
| IpRule() |
Creates an instance of Ip |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
Acl |
action()
Get the action property: Azure Networking ACL Action. |
|
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: An IP or CIDR or Service |
|
Ip |
withAction(AclAction action)
Set the action property: Azure Networking ACL Action. |
|
Ip |
withValue(String value)
Set the value property: An IP or CIDR or Service |
Methods inherited from java.lang.Object
Constructor Details
IpRule
public IpRule()
Creates an instance of IpRule class.
Method Details
action
public AclAction action()
Get the action property: Azure Networking ACL Action.
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: An IP or CIDR or ServiceTag.
Returns:
withAction
public IpRule withAction(AclAction action)
Set the action property: Azure Networking ACL Action.
Parameters:
Returns:
withValue
public IpRule withValue(String value)
Set the value property: An IP or CIDR or ServiceTag.
Parameters:
Returns: