Condividi tramite


IpRule Class

  • java.lang.Object
    • com.azure.resourcemanager.network.models.IpRule

Implements

public final class IpRule
implements JsonSerializable<IpRule>

The IpRule model.

Constructor Summary

Constructor Description
IpRule()

Creates an instance of IpRule class.

Method Summary

Modifier and Type Method and Description
String addressPrefix()

Get the addressPrefix property: Specifies the IP or IP range in CIDR format.

static IpRule fromJson(JsonReader jsonReader)

Reads an instance of IpRule from the JsonReader.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpRule withAddressPrefix(String addressPrefix)

Set the addressPrefix property: Specifies the IP or IP range in CIDR format.

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:

the addressPrefix value.

fromJson

public static IpRule fromJson(JsonReader jsonReader)

Reads an instance of IpRule from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of IpRule if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the IpRule.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

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:

addressPrefix - the addressPrefix value to set.

Returns:

the IpRule object itself.

Applies to