Class VirtualApplianceAdditionalNicProperties
java.lang.Object
com.azure.resourcemanager.network.models.VirtualApplianceAdditionalNicProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualApplianceAdditionalNicProperties>
public final class VirtualApplianceAdditionalNicProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualApplianceAdditionalNicProperties>
Network Virtual Appliance Additional Nic Properties
Network Virtual Appliance Additional NIC properties.
-
Constructor Summary
ConstructorDescriptionCreates an instance of VirtualApplianceAdditionalNicProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson
(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualApplianceAdditionalNicProperties from the JsonReader.Get the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.name()
Get the name property: Name of additional nic.com.azure.json.JsonWriter
toJson
(com.azure.json.JsonWriter jsonWriter) void
validate()
Validates the instance.withHasPublicIp
(Boolean hasPublicIp) Set the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.Set the name property: Name of additional nic.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
-
VirtualApplianceAdditionalNicProperties
public VirtualApplianceAdditionalNicProperties()Creates an instance of VirtualApplianceAdditionalNicProperties class.
-
-
Method Details
-
name
Get the name property: Name of additional nic.- Returns:
- the name value.
-
withName
Set the name property: Name of additional nic.- Parameters:
name
- the name value to set.- Returns:
- the VirtualApplianceAdditionalNicProperties object itself.
-
hasPublicIp
Get the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.- Returns:
- the hasPublicIp value.
-
withHasPublicIp
Set the hasPublicIp property: Flag (true or false) for Intent for Public Ip on additional nic.- Parameters:
hasPublicIp
- the hasPublicIp value to set.- Returns:
- the VirtualApplianceAdditionalNicProperties 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<VirtualApplianceAdditionalNicProperties>
- Throws:
IOException
-
fromJson
public static VirtualApplianceAdditionalNicProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualApplianceAdditionalNicProperties from the JsonReader.- Parameters:
jsonReader
- The JsonReader being read.- Returns:
- An instance of VirtualApplianceAdditionalNicProperties 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 VirtualApplianceAdditionalNicProperties.
-