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.
com.azure.core.management.SubResourceprimary()voidvalidate()withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode) withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku) withDeleteOption(DeleteOptions deleteOption) withDisableTcpStateTracking(Boolean disableTcpStateTracking) withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) withEnableFpga(Boolean enableFpga) withEnableIpForwarding(Boolean enableIpForwarding) withIpConfigurations(List<VirtualMachineScaleSetIpConfiguration> ipConfigurations) withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup) withPrimary(Boolean primary) primary - the primary value to set.enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.disableTcpStateTracking - the disableTcpStateTracking value to set.enableFpga - the enableFpga value to set.networkSecurityGroup - the networkSecurityGroup value to set.dnsSettings - the dnsSettings value to set.ipConfigurations - the ipConfigurations value to set.enableIpForwarding - the enableIpForwarding value to set.deleteOption - the deleteOption value to set.auxiliaryMode - the auxiliaryMode value to set.auxiliarySku - the auxiliarySku value to set.IllegalArgumentException - thrown if the instance is not valid.