共用方式為


IpAddressGroup Class

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

Implements

public final class IpAddressGroup
implements JsonSerializable<IpAddressGroup>

CDN Ip address group.

Constructor Summary

Constructor Description
IpAddressGroup()

Creates an instance of IpAddressGroup class.

Method Summary

Modifier and Type Method and Description
String deliveryRegion()

Get the deliveryRegion property: The delivery region of the ip address group.

static IpAddressGroup fromJson(JsonReader jsonReader)

Reads an instance of IpAddressGroup from the JsonReader.

List<CidrIpAddress> ipv4Addresses()

Get the ipv4Addresses property: The list of ip v4 addresses.

List<CidrIpAddress> ipv6Addresses()

Get the ipv6Addresses property: The list of ip v6 addresses.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

IpAddressGroup withDeliveryRegion(String deliveryRegion)

Set the deliveryRegion property: The delivery region of the ip address group.

IpAddressGroup withIpv4Addresses(List<CidrIpAddress> ipv4Addresses)

Set the ipv4Addresses property: The list of ip v4 addresses.

IpAddressGroup withIpv6Addresses(List<CidrIpAddress> ipv6Addresses)

Set the ipv6Addresses property: The list of ip v6 addresses.

Methods inherited from java.lang.Object

Constructor Details

IpAddressGroup

public IpAddressGroup()

Creates an instance of IpAddressGroup class.

Method Details

deliveryRegion

public String deliveryRegion()

Get the deliveryRegion property: The delivery region of the ip address group.

Returns:

the deliveryRegion value.

fromJson

public static IpAddressGroup fromJson(JsonReader jsonReader)

Reads an instance of IpAddressGroup from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

ipv4Addresses

public List ipv4Addresses()

Get the ipv4Addresses property: The list of ip v4 addresses.

Returns:

the ipv4Addresses value.

ipv6Addresses

public List ipv6Addresses()

Get the ipv6Addresses property: The list of ip v6 addresses.

Returns:

the ipv6Addresses value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withDeliveryRegion

public IpAddressGroup withDeliveryRegion(String deliveryRegion)

Set the deliveryRegion property: The delivery region of the ip address group.

Parameters:

deliveryRegion - the deliveryRegion value to set.

Returns:

the IpAddressGroup object itself.

withIpv4Addresses

public IpAddressGroup withIpv4Addresses(List ipv4Addresses)

Set the ipv4Addresses property: The list of ip v4 addresses.

Parameters:

ipv4Addresses - the ipv4Addresses value to set.

Returns:

the IpAddressGroup object itself.

withIpv6Addresses

public IpAddressGroup withIpv6Addresses(List ipv6Addresses)

Set the ipv6Addresses property: The list of ip v6 addresses.

Parameters:

ipv6Addresses - the ipv6Addresses value to set.

Returns:

the IpAddressGroup object itself.

Applies to