Class NetworkInterfaceInner
- java.lang.Object
-
- com.azure.core.management.ProxyResource
-
- com.azure.core.management.Resource
-
- com.azure.resourcemanager.network.fluent.models.NetworkInterfaceInner
-
public final class NetworkInterfaceInner extends com.azure.core.management.ResourceA network interface in a resource group.
-
-
Constructor Summary
Constructors Constructor Description NetworkInterfaceInner()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description NetworkInterfaceDnsSettingsdnsSettings()Get the dnsSettings property: The DNS settings in network interface.com.azure.core.management.SubResourcedscpConfiguration()Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.BooleanenableAcceleratedNetworking()Get the enableAcceleratedNetworking property: If the network interface is accelerated networking enabled.BooleanenableIpForwarding()Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.Stringetag()Get the etag property: A unique read-only string that changes whenever the resource is updated.ExtendedLocationextendedLocation()Get the extendedLocation property: The extended location of the network interface.List<String>hostedWorkloads()Get the hostedWorkloads property: A list of references to linked BareMetal resources.Stringid()Get the id property: Resource ID.List<NetworkInterfaceIpConfigurationInner>ipConfigurations()Get the ipConfigurations property: A list of IPConfigurations of the network interface.StringmacAddress()Get the macAddress property: The MAC address of the network interface.NetworkInterfaceMigrationPhasemigrationPhase()Get the migrationPhase property: Migration phase of Network Interface resource.NetworkSecurityGroupInnernetworkSecurityGroup()Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.NetworkInterfaceNicTypenicType()Get the nicType property: Type of Network Interface resource.Booleanprimary()Get the primary property: Whether this is a primary network interface on a virtual machine.PrivateEndpointInnerprivateEndpoint()Get the privateEndpoint property: A reference to the private endpoint to which the network interface is linked.PrivateLinkServiceInnerprivateLinkService()Get the privateLinkService property: Privatelinkservice of the network interface resource.ProvisioningStateprovisioningState()Get the provisioningState property: The provisioning state of the network interface resource.StringresourceGuid()Get the resourceGuid property: The resource GUID property of the network interface resource.List<NetworkInterfaceTapConfigurationInner>tapConfigurations()Get the tapConfigurations property: A list of TapConfigurations of the network interface.voidvalidate()Validates the instance.com.azure.core.management.SubResourcevirtualMachine()Get the virtualMachine property: The reference to a virtual machine.BooleanvnetEncryptionSupported()Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.NetworkInterfaceInnerwithDnsSettings(NetworkInterfaceDnsSettings dnsSettings)Set the dnsSettings property: The DNS settings in network interface.NetworkInterfaceInnerwithEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)Set the enableAcceleratedNetworking property: If the network interface is accelerated networking enabled.NetworkInterfaceInnerwithEnableIpForwarding(Boolean enableIpForwarding)Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.NetworkInterfaceInnerwithExtendedLocation(ExtendedLocation extendedLocation)Set the extendedLocation property: The extended location of the network interface.NetworkInterfaceInnerwithId(String id)Set the id property: Resource ID.NetworkInterfaceInnerwithIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations)Set the ipConfigurations property: A list of IPConfigurations of the network interface.NetworkInterfaceInnerwithLocation(String location)NetworkInterfaceInnerwithMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)Set the migrationPhase property: Migration phase of Network Interface resource.NetworkInterfaceInnerwithNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.NetworkInterfaceInnerwithNicType(NetworkInterfaceNicType nicType)Set the nicType property: Type of Network Interface resource.NetworkInterfaceInnerwithPrivateLinkService(PrivateLinkServiceInner privateLinkService)Set the privateLinkService property: Privatelinkservice of the network interface resource.NetworkInterfaceInnerwithTags(Map<String,String> tags)NetworkInterfaceInnerwithWorkloadType(String workloadType)Set the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.StringworkloadType()Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.
-
-
-
Method Detail
-
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the network interface.- Returns:
- the extendedLocation value.
-
withExtendedLocation
public NetworkInterfaceInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of the network interface.- Parameters:
extendedLocation- the extendedLocation value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.- Returns:
- the etag value.
-
id
public String id()
Get the id property: Resource ID.- Overrides:
idin classcom.azure.core.management.ProxyResource- Returns:
- the id value.
-
withId
public NetworkInterfaceInner withId(String id)
Set the id property: Resource ID.- Parameters:
id- the id value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
withLocation
public NetworkInterfaceInner withLocation(String location)
- Overrides:
withLocationin classcom.azure.core.management.Resource
-
withTags
public NetworkInterfaceInner withTags(Map<String,String> tags)
- Overrides:
withTagsin classcom.azure.core.management.Resource
-
virtualMachine
public com.azure.core.management.SubResource virtualMachine()
Get the virtualMachine property: The reference to a virtual machine.- Returns:
- the virtualMachine value.
-
networkSecurityGroup
public NetworkSecurityGroupInner networkSecurityGroup()
Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.- Returns:
- the networkSecurityGroup value.
-
withNetworkSecurityGroup
public NetworkInterfaceInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.- Parameters:
networkSecurityGroup- the networkSecurityGroup value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
privateEndpoint
public PrivateEndpointInner privateEndpoint()
Get the privateEndpoint property: A reference to the private endpoint to which the network interface is linked.- Returns:
- the privateEndpoint value.
-
ipConfigurations
public List<NetworkInterfaceIpConfigurationInner> ipConfigurations()
Get the ipConfigurations property: A list of IPConfigurations of the network interface.- Returns:
- the ipConfigurations value.
-
withIpConfigurations
public NetworkInterfaceInner withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations)
Set the ipConfigurations property: A list of IPConfigurations of the network interface.- Parameters:
ipConfigurations- the ipConfigurations value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
tapConfigurations
public List<NetworkInterfaceTapConfigurationInner> tapConfigurations()
Get the tapConfigurations property: A list of TapConfigurations of the network interface.- Returns:
- the tapConfigurations value.
-
dnsSettings
public NetworkInterfaceDnsSettings dnsSettings()
Get the dnsSettings property: The DNS settings in network interface.- Returns:
- the dnsSettings value.
-
withDnsSettings
public NetworkInterfaceInner withDnsSettings(NetworkInterfaceDnsSettings dnsSettings)
Set the dnsSettings property: The DNS settings in network interface.- Parameters:
dnsSettings- the dnsSettings value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
macAddress
public String macAddress()
Get the macAddress property: The MAC address of the network interface.- Returns:
- the macAddress value.
-
primary
public Boolean primary()
Get the primary property: Whether this is a primary network interface on a virtual machine.- Returns:
- the primary value.
-
vnetEncryptionSupported
public Boolean vnetEncryptionSupported()
Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.- Returns:
- the vnetEncryptionSupported value.
-
enableAcceleratedNetworking
public Boolean enableAcceleratedNetworking()
Get the enableAcceleratedNetworking property: If the network interface is accelerated networking enabled.- Returns:
- the enableAcceleratedNetworking value.
-
withEnableAcceleratedNetworking
public NetworkInterfaceInner withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enableAcceleratedNetworking property: If the network interface is accelerated networking enabled.- Parameters:
enableAcceleratedNetworking- the enableAcceleratedNetworking value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
enableIpForwarding
public Boolean enableIpForwarding()
Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.- Returns:
- the enableIpForwarding value.
-
withEnableIpForwarding
public NetworkInterfaceInner withEnableIpForwarding(Boolean enableIpForwarding)
Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.- Parameters:
enableIpForwarding- the enableIpForwarding value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
hostedWorkloads
public List<String> hostedWorkloads()
Get the hostedWorkloads property: A list of references to linked BareMetal resources.- Returns:
- the hostedWorkloads value.
-
dscpConfiguration
public com.azure.core.management.SubResource dscpConfiguration()
Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.- Returns:
- the dscpConfiguration value.
-
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the network interface resource.- Returns:
- the resourceGuid value.
-
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the network interface resource.- Returns:
- the provisioningState value.
-
workloadType
public String workloadType()
Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.- Returns:
- the workloadType value.
-
withWorkloadType
public NetworkInterfaceInner withWorkloadType(String workloadType)
Set the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.- Parameters:
workloadType- the workloadType value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
nicType
public NetworkInterfaceNicType nicType()
Get the nicType property: Type of Network Interface resource.- Returns:
- the nicType value.
-
withNicType
public NetworkInterfaceInner withNicType(NetworkInterfaceNicType nicType)
Set the nicType property: Type of Network Interface resource.- Parameters:
nicType- the nicType value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
privateLinkService
public PrivateLinkServiceInner privateLinkService()
Get the privateLinkService property: Privatelinkservice of the network interface resource.- Returns:
- the privateLinkService value.
-
withPrivateLinkService
public NetworkInterfaceInner withPrivateLinkService(PrivateLinkServiceInner privateLinkService)
Set the privateLinkService property: Privatelinkservice of the network interface resource.- Parameters:
privateLinkService- the privateLinkService value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
migrationPhase
public NetworkInterfaceMigrationPhase migrationPhase()
Get the migrationPhase property: Migration phase of Network Interface resource.- Returns:
- the migrationPhase value.
-
withMigrationPhase
public NetworkInterfaceInner withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)
Set the migrationPhase property: Migration phase of Network Interface resource.- Parameters:
migrationPhase- the migrationPhase value to set.- Returns:
- the NetworkInterfaceInner object itself.
-
validate
public void validate()
Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
-