java.lang.Object
com.azure.resourcemanager.compute.fluent.models.NetworkInterfaceReferenceProperties
-
Constructor Summary
Constructors
Creates an instance of NetworkInterfaceReferenceProperties class.
-
Method Summary
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
fromJson(com.azure.json.JsonReader jsonReader)
Reads an instance of NetworkInterfaceReferenceProperties from the JsonReader.
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1
network interface.
com.azure.json.JsonWriter
toJson(com.azure.json.JsonWriter jsonWriter)
void
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1
network interface.
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
-
NetworkInterfaceReferenceProperties
public NetworkInterfaceReferenceProperties()
Creates an instance of NetworkInterfaceReferenceProperties class.
-
Method Details
-
primary
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1
network interface.
- Returns:
- the primary value.
-
withPrimary
Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1
network interface.
- Parameters:
primary - the primary value to set.
- Returns:
- the NetworkInterfaceReferenceProperties object itself.
-
deleteOption
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
- Returns:
- the deleteOption value.
-
withDeleteOption
Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
- Parameters:
deleteOption - the deleteOption value to set.
- Returns:
- the NetworkInterfaceReferenceProperties object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.
-
-
fromJson
Reads an instance of NetworkInterfaceReferenceProperties from the JsonReader.
- Parameters:
jsonReader - The JsonReader being read.
- Returns:
- An instance of NetworkInterfaceReferenceProperties 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 NetworkInterfaceReferenceProperties.