Class VirtualApplianceNicProperties
java.lang.Object
com.azure.resourcemanager.network.models.VirtualApplianceNicProperties
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualApplianceNicProperties>
public final class VirtualApplianceNicProperties
extends Object
implements com.azure.json.JsonSerializable<VirtualApplianceNicProperties>
Network Virtual Appliance NIC properties.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualApplianceNicProperties class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualApplianceNicProperties from the JsonReader.Get the instanceName property: Instance on which nic is attached.name()Get the name property: NIC name.nicType()Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic.Get the privateIpAddress property: Private IP address.Get the publicIpAddress property: Public IP address.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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
-
VirtualApplianceNicProperties
public VirtualApplianceNicProperties()Creates an instance of VirtualApplianceNicProperties class.
-
-
Method Details
-
nicType
Get the nicType property: NIC type - PublicNic, PrivateNic, or AdditionalNic.- Returns:
- the nicType value.
-
name
Get the name property: NIC name.- Returns:
- the name value.
-
publicIpAddress
Get the publicIpAddress property: Public IP address.- Returns:
- the publicIpAddress value.
-
privateIpAddress
Get the privateIpAddress property: Private IP address.- Returns:
- the privateIpAddress value.
-
instanceName
Get the instanceName property: Instance on which nic is attached.- Returns:
- the instanceName value.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualApplianceNicProperties>- Throws:
IOException
-
fromJson
public static VirtualApplianceNicProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualApplianceNicProperties from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualApplianceNicProperties 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 VirtualApplianceNicProperties.
-