Class HubPublicIpAddresses
java.lang.Object
com.azure.resourcemanager.network.models.HubPublicIpAddresses
- All Implemented Interfaces:
com.azure.json.JsonSerializable<HubPublicIpAddresses>
public final class HubPublicIpAddresses
extends Object
implements com.azure.json.JsonSerializable<HubPublicIpAddresses>
Public IP addresses associated with azure firewall.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.count()
Get the count property: The number of Public IP addresses associated with azure firewall.static HubPublicIpAddresses
fromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of HubPublicIpAddresses from the JsonReader.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withAddresses
(List<AzureFirewallPublicIpAddress> addresses) Set the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.Set the count property: The number of Public IP addresses associated with azure firewall.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
HubPublicIpAddresses
public HubPublicIpAddresses()Creates an instance of HubPublicIpAddresses class.
-
-
Method Details
-
addresses
Get the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.- Returns:
- the addresses value.
-
withAddresses
Set the addresses property: The list of Public IP addresses associated with azure firewall or IP addresses to be retained.- Parameters:
addresses
- the addresses value to set.- Returns:
- the HubPublicIpAddresses object itself.
-
count
Get the count property: The number of Public IP addresses associated with azure firewall.- Returns:
- the count value.
-
withCount
Set the count property: The number of Public IP addresses associated with azure firewall.- Parameters:
count
- the count value to set.- Returns:
- the HubPublicIpAddresses object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException
- thrown if the instance is not valid.
-
toJson
- Specified by:
toJson
in interfacecom.azure.json.JsonSerializable<HubPublicIpAddresses>
- Throws:
IOException
-
fromJson
public static HubPublicIpAddresses fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of HubPublicIpAddresses from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of HubPublicIpAddresses 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 HubPublicIpAddresses.
-