Class VirtualApplianceNetworkInterfaceConfiguration
java.lang.Object
com.azure.resourcemanager.network.models.VirtualApplianceNetworkInterfaceConfiguration
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualApplianceNetworkInterfaceConfiguration>
public final class VirtualApplianceNetworkInterfaceConfiguration
extends Object
implements com.azure.json.JsonSerializable<VirtualApplianceNetworkInterfaceConfiguration>
Represents a single NIC configuration.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualApplianceNetworkInterfaceConfiguration class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualApplianceNetworkInterfaceConfiguration from the JsonReader.nicType()Get the nicType property: NIC type.Get the properties property: Represents a single NIC configuration properties.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNicType(NicTypeInRequest nicType) Set the nicType property: NIC type.Set the properties property: Represents a single NIC configuration properties.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
-
VirtualApplianceNetworkInterfaceConfiguration
public VirtualApplianceNetworkInterfaceConfiguration()Creates an instance of VirtualApplianceNetworkInterfaceConfiguration class.
-
-
Method Details
-
nicType
Get the nicType property: NIC type. This should be either PublicNic or PrivateNic.- Returns:
- the nicType value.
-
withNicType
Set the nicType property: NIC type. This should be either PublicNic or PrivateNic.- Parameters:
nicType- the nicType value to set.- Returns:
- the VirtualApplianceNetworkInterfaceConfiguration object itself.
-
properties
Get the properties property: Represents a single NIC configuration properties.- Returns:
- the properties value.
-
withProperties
public VirtualApplianceNetworkInterfaceConfiguration withProperties(VirtualApplianceNetworkInterfaceConfigurationProperties properties) Set the properties property: Represents a single NIC configuration properties.- Parameters:
properties- the properties value to set.- Returns:
- the VirtualApplianceNetworkInterfaceConfiguration 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<VirtualApplianceNetworkInterfaceConfiguration>- Throws:
IOException
-
fromJson
public static VirtualApplianceNetworkInterfaceConfiguration fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualApplianceNetworkInterfaceConfiguration from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualApplianceNetworkInterfaceConfiguration 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 VirtualApplianceNetworkInterfaceConfiguration.
-