java.lang.Object
com.azure.core.management.SubResource
com.azure.resourcemanager.compute.models.NetworkInterfaceReference
public final class NetworkInterfaceReference
extends com.azure.core.management.SubResource
Describes a network interface reference.
-
Constructor Summary
Constructors
-
Method Summary
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1
network interface.
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 com.azure.core.management.SubResource
id
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
NetworkInterfaceReference
public NetworkInterfaceReference()
-
Method Details
-
withId
- Overrides:
withId in class com.azure.core.management.SubResource
-
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 NetworkInterfaceReference 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 NetworkInterfaceReference object itself.
-
validate
public void validate()
Validates the instance.
- Throws:
IllegalArgumentException - thrown if the instance is not valid.