共用方式為


CidrIpAddress Class

  • java.lang.Object
    • com.azure.resourcemanager.cdn.models.CidrIpAddress

Implements

public final class CidrIpAddress
implements JsonSerializable<CidrIpAddress>

CIDR Ip address.

Constructor Summary

Constructor Description
CidrIpAddress()

Creates an instance of CidrIpAddress class.

Method Summary

Modifier and Type Method and Description
String baseIpAddress()

Get the baseIpAddress property: Ip address itself.

static CidrIpAddress fromJson(JsonReader jsonReader)

Reads an instance of CidrIpAddress from the JsonReader.

Integer prefixLength()

Get the prefixLength property: The length of the prefix of the ip address.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

CidrIpAddress withBaseIpAddress(String baseIpAddress)

Set the baseIpAddress property: Ip address itself.

CidrIpAddress withPrefixLength(Integer prefixLength)

Set the prefixLength property: The length of the prefix of the ip address.

Methods inherited from java.lang.Object

Constructor Details

CidrIpAddress

public CidrIpAddress()

Creates an instance of CidrIpAddress class.

Method Details

baseIpAddress

public String baseIpAddress()

Get the baseIpAddress property: Ip address itself.

Returns:

the baseIpAddress value.

fromJson

public static CidrIpAddress fromJson(JsonReader jsonReader)

Reads an instance of CidrIpAddress from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of CidrIpAddress 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 CidrIpAddress.

prefixLength

public Integer prefixLength()

Get the prefixLength property: The length of the prefix of the ip address.

Returns:

the prefixLength value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withBaseIpAddress

public CidrIpAddress withBaseIpAddress(String baseIpAddress)

Set the baseIpAddress property: Ip address itself.

Parameters:

baseIpAddress - the baseIpAddress value to set.

Returns:

the CidrIpAddress object itself.

withPrefixLength

public CidrIpAddress withPrefixLength(Integer prefixLength)

Set the prefixLength property: The length of the prefix of the ip address.

Parameters:

prefixLength - the prefixLength value to set.

Returns:

the CidrIpAddress object itself.

Applies to