Class NetworkInterfaceReferenceProperties
- java.lang.Object
-
- com.azure.resourcemanager.compute.fluent.models.NetworkInterfaceReferenceProperties
-
public final class NetworkInterfaceReferenceProperties extends Object
Describes a network interface reference properties.
-
-
Constructor Summary
Constructors Constructor Description NetworkInterfaceReferenceProperties()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description DeleteOptionsdeleteOption()Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.Booleanprimary()Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.voidvalidate()Validates the instance.NetworkInterfaceReferencePropertieswithDeleteOption(DeleteOptions deleteOption)Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.NetworkInterfaceReferencePropertieswithPrimary(Boolean primary)Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
-
-
-
Method Detail
-
primary
public Boolean 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
public NetworkInterfaceReferenceProperties withPrimary(Boolean primary)
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
public DeleteOptions deleteOption()
Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.- Returns:
- the deleteOption value.
-
withDeleteOption
public NetworkInterfaceReferenceProperties withDeleteOption(DeleteOptions deleteOption)
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.
-
-