Class IpAddressGroup
java.lang.Object
com.azure.resourcemanager.cdn.models.IpAddressGroup
- All Implemented Interfaces:
com.azure.json.JsonSerializable<IpAddressGroup>
public final class IpAddressGroup
extends Object
implements com.azure.json.JsonSerializable<IpAddressGroup>
CDN Ip address group.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the deliveryRegion property: The delivery region of the ip address group.static IpAddressGroupfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of IpAddressGroup from the JsonReader.Get the ipv4Addresses property: The list of ip v4 addresses.Get the ipv6Addresses property: The list of ip v6 addresses.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withDeliveryRegion(String deliveryRegion) Set the deliveryRegion property: The delivery region of the ip address group.withIpv4Addresses(List<CidrIpAddress> ipv4Addresses) Set the ipv4Addresses property: The list of ip v4 addresses.withIpv6Addresses(List<CidrIpAddress> ipv6Addresses) Set the ipv6Addresses property: The list of ip v6 addresses.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
IpAddressGroup
public IpAddressGroup()Creates an instance of IpAddressGroup class.
-
-
Method Details
-
deliveryRegion
Get the deliveryRegion property: The delivery region of the ip address group.- Returns:
- the deliveryRegion value.
-
withDeliveryRegion
Set the deliveryRegion property: The delivery region of the ip address group.- Parameters:
deliveryRegion- the deliveryRegion value to set.- Returns:
- the IpAddressGroup object itself.
-
ipv4Addresses
Get the ipv4Addresses property: The list of ip v4 addresses.- Returns:
- the ipv4Addresses value.
-
withIpv4Addresses
Set the ipv4Addresses property: The list of ip v4 addresses.- Parameters:
ipv4Addresses- the ipv4Addresses value to set.- Returns:
- the IpAddressGroup object itself.
-
ipv6Addresses
Get the ipv6Addresses property: The list of ip v6 addresses.- Returns:
- the ipv6Addresses value.
-
withIpv6Addresses
Set the ipv6Addresses property: The list of ip v6 addresses.- Parameters:
ipv6Addresses- the ipv6Addresses value to set.- Returns:
- the IpAddressGroup object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<IpAddressGroup>- Throws:
IOException
-
fromJson
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.
-