primary
Get the primary property: Whether this is a primary network interface on a virtual machine.
- Returns:
- the primary value.
com.azure.core.management.SubResourceetag()id()nicType()primary()voidvalidate()com.azure.core.management.SubResourcewithAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode) withDisableTcpStateTracking(Boolean disableTcpStateTracking) withDnsSettings(NetworkInterfaceDnsSettings dnsSettings) withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) withEnableIpForwarding(Boolean enableIpForwarding) withExtendedLocation(ExtendedLocation extendedLocation) withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations) withLocation(String location) withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase) withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup) withNicType(NetworkInterfaceNicType nicType) withPrivateLinkService(PrivateLinkServiceInner privateLinkService) withWorkloadType(String workloadType) location, tagsname, typeextendedLocation - the extendedLocation value to set.id in class com.azure.core.management.ProxyResourceid - the id value to set.withLocation in class com.azure.core.management.ResourcewithTags in class com.azure.core.management.ResourcenetworkSecurityGroup - 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.