primary
Get the primary property: Whether this is a primary network interface on a virtual machine.
- Returns:
- the primary value.
com.azure.core.management.SubResourcenicType()primary()voidvalidate()com.azure.core.management.SubResourcewithAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode) withDisableTcpStateTracking(Boolean disableTcpStateTracking) withDnsSettings(NetworkInterfaceDnsSettings dnsSettings) withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) withEnableIpForwarding(Boolean enableIpForwarding) withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations) withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase) withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup) withNicType(NetworkInterfaceNicType nicType) withPrivateLinkService(PrivateLinkServiceInner privateLinkService) withWorkloadType(String workloadType) networkSecurityGroup - the networkSecurityGroup value to set.ipConfigurations - the ipConfigurations value to set.dnsSettings - the dnsSettings value to set.enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.disableTcpStateTracking - the disableTcpStateTracking value to set.enableIpForwarding - the enableIpForwarding value to set.workloadType - the workloadType value to set.nicType - the nicType value to set.privateLinkService - the privateLinkService value to set.migrationPhase - the migrationPhase value to set.auxiliaryMode - the auxiliaryMode value to set.IllegalArgumentException - thrown if the instance is not valid.