IpRule Class
- java.
lang. Object - com.
azure. resourcemanager. network. models. IpRule
- com.
Implements
public final class IpRule
implements JsonSerializable<IpRule>
The IpRule model.
Constructor Summary
| Constructor | Description |
|---|---|
| IpRule() |
Creates an instance of Ip |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
| String |
addressPrefix()
Get the address |
|
static
Ip |
fromJson(JsonReader jsonReader)
Reads an instance of Ip |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Ip |
withAddressPrefix(String addressPrefix)
Set the address |
Methods inherited from java.lang.Object
Constructor Details
IpRule
public IpRule()
Creates an instance of IpRule class.
Method Details
addressPrefix
public String addressPrefix()
Get the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
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.
withAddressPrefix
public IpRule withAddressPrefix(String addressPrefix)
Set the addressPrefix property: Specifies the IP or IP range in CIDR format. Only IPV4 address is allowed.
Parameters:
Returns: