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.json.JsonSerializable<VirtualMachineNetworkInterfaceConfiguration>com.azure.core.management.SubResourcefromJson(com.azure.json.JsonReader jsonReader) name()com.azure.core.management.SubResourceprimary()tags()com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode) withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku) withDeleteOption(DeleteOptions deleteOption) withDisableTcpStateTracking(Boolean disableTcpStateTracking) withDscpConfiguration(com.azure.core.management.SubResource dscpConfiguration) withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) withEnableFpga(Boolean enableFpga) withEnableIpForwarding(Boolean enableIpForwarding) withIpConfigurations(List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations) withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup) withPrimary(Boolean primary) clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waittoJson, toJson, toJsonBytes, toJsonStringname - the name value to set.tags - the tags value to set.primary - the primary value to set.deleteOption - the deleteOption value to set.enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.disableTcpStateTracking - the disableTcpStateTracking value to set.enableFpga - the enableFpga value to set.enableIpForwarding - the enableIpForwarding value to set.networkSecurityGroup - the networkSecurityGroup value to set.dnsSettings - the dnsSettings value to set.ipConfigurations - the ipConfigurations value to set.dscpConfiguration - the dscpConfiguration value to set.auxiliaryMode - the auxiliaryMode value to set.auxiliarySku - the auxiliarySku value to set.IllegalArgumentException - thrown if the instance is not valid.toJson in interface com.azure.json.JsonSerializable<VirtualMachineNetworkInterfaceConfiguration>IOExceptionjsonReader - The JsonReader being read.IllegalStateException - If the deserialized JSON object was missing any required properties.IOException - If an error occurs while reading the VirtualMachineNetworkInterfaceConfiguration.