NetworkInterfaceInner Class

public final class NetworkInterfaceInner
extends Resource

A network interface in a resource group.

Constructor Summary

Constructor Description
NetworkInterfaceInner()

Creates an instance of NetworkInterfaceInner class.

Method Summary

Modifier and Type Method and Description
NetworkInterfaceAuxiliaryMode auxiliaryMode()

Get the auxiliaryMode property: Auxiliary mode of Network Interface resource.

NetworkInterfaceAuxiliarySku auxiliarySku()

Get the auxiliarySku property: Auxiliary sku of Network Interface resource.

Boolean disableTcpStateTracking()

Get the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.

NetworkInterfaceDnsSettings dnsSettings()

Get the dnsSettings property: The DNS settings in network interface.

SubResource dscpConfiguration()

Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.

Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking.

Boolean enableIpForwarding()

Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.

String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the network interface.

static NetworkInterfaceInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceInner from the JsonReader.

List<String> hostedWorkloads()

Get the hostedWorkloads property: A list of references to linked BareMetal resources.

String id()

Get the id property: Resource ID.

List<NetworkInterfaceIpConfigurationInner> ipConfigurations()

Get the ipConfigurations property: A list of IPConfigurations of the network interface.

String macAddress()

Get the macAddress property: The MAC address of the network interface.

NetworkInterfaceMigrationPhase migrationPhase()

Get the migrationPhase property: Migration phase of Network Interface resource.

String name()

Get the name property: The name of the resource.

NetworkSecurityGroupInner networkSecurityGroup()

Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.

NetworkInterfaceNicType nicType()

Get the nicType property: Type of Network Interface resource.

Boolean primary()

Get the primary property: Whether this is a primary network interface on a virtual machine.

PrivateEndpointInner privateEndpoint()

Get the privateEndpoint property: A reference to the private endpoint to which the network interface is linked.

PrivateLinkServiceInner privateLinkService()

Get the privateLinkService property: Privatelinkservice of the network interface resource.

ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the network interface resource.

String resourceGuid()

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.

JsonWriter toJson(JsonWriter jsonWriter)
String type()

Get the type property: The type of the resource.

void validate()

Validates the instance.

SubResource virtualMachine()

Get the virtualMachine property: The reference to a virtual machine.

Boolean vnetEncryptionSupported()

Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.

NetworkInterfaceInner withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)

Set the auxiliaryMode property: Auxiliary mode of Network Interface resource.

NetworkInterfaceInner withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)

Set the auxiliarySku property: Auxiliary sku of Network Interface resource.

NetworkInterfaceInner withDisableTcpStateTracking(Boolean disableTcpStateTracking)

Set the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.

NetworkInterfaceInner withDnsSettings(NetworkInterfaceDnsSettings dnsSettings)

Set the dnsSettings property: The DNS settings in network interface.

NetworkInterfaceInner withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking.

NetworkInterfaceInner withEnableIpForwarding(Boolean enableIpForwarding)

Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.

NetworkInterfaceInner withExtendedLocation(ExtendedLocation extendedLocation)

Set the extendedLocation property: The extended location of the network interface.

NetworkInterfaceInner withId(String id)

Set the id property: Resource ID.

NetworkInterfaceInner withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations)

Set the ipConfigurations property: A list of IPConfigurations of the network interface.

NetworkInterfaceInner withLocation(String location)
NetworkInterfaceInner withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)

Set the migrationPhase property: Migration phase of Network Interface resource.

NetworkInterfaceInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)

Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.

NetworkInterfaceInner withNicType(NetworkInterfaceNicType nicType)

Set the nicType property: Type of Network Interface resource.

NetworkInterfaceInner withPrivateLinkService(PrivateLinkServiceInner privateLinkService)

Set the privateLinkService property: Privatelinkservice of the network interface resource.

NetworkInterfaceInner withTags(Map<String,String> tags)
NetworkInterfaceInner withWorkloadType(String workloadType)

Set the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.

String workloadType()

Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.

Methods inherited from ProxyResource

Methods inherited from Resource

Methods inherited from java.lang.Object

Constructor Details

NetworkInterfaceInner

public NetworkInterfaceInner()

Creates an instance of NetworkInterfaceInner class.

Method Details

auxiliaryMode

public NetworkInterfaceAuxiliaryMode auxiliaryMode()

Get the auxiliaryMode property: Auxiliary mode of Network Interface resource.

Returns:

the auxiliaryMode value.

auxiliarySku

public NetworkInterfaceAuxiliarySku auxiliarySku()

Get the auxiliarySku property: Auxiliary sku of Network Interface resource.

Returns:

the auxiliarySku value.

disableTcpStateTracking

public Boolean disableTcpStateTracking()

Get the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.

Returns:

the disableTcpStateTracking value.

dnsSettings

public NetworkInterfaceDnsSettings dnsSettings()

Get the dnsSettings property: The DNS settings in network interface.

Returns:

the dnsSettings value.

dscpConfiguration

public SubResource dscpConfiguration()

Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.

Returns:

the dscpConfiguration value.

enableAcceleratedNetworking

public Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.

Returns:

the enableAcceleratedNetworking value.

enableIpForwarding

public Boolean enableIpForwarding()

Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.

Returns:

the enableIpForwarding value.

etag

public String etag()

Get the etag property: A unique read-only string that changes whenever the resource is updated.

Returns:

the etag value.

extendedLocation

public ExtendedLocation extendedLocation()

Get the extendedLocation property: The extended location of the network interface.

Returns:

the extendedLocation value.

fromJson

public static NetworkInterfaceInner fromJson(JsonReader jsonReader)

Reads an instance of NetworkInterfaceInner from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkInterfaceInner if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

hostedWorkloads

public List hostedWorkloads()

Get the hostedWorkloads property: A list of references to linked BareMetal resources.

Returns:

the hostedWorkloads value.

id

public String id()

Get the id property: Resource ID.

Overrides:

NetworkInterfaceInner.id()

Returns:

the id value.

ipConfigurations

public List ipConfigurations()

Get the ipConfigurations property: A list of IPConfigurations of the network interface.

Returns:

the ipConfigurations value.

macAddress

public String macAddress()

Get the macAddress property: The MAC address of the network interface.

Returns:

the macAddress value.

migrationPhase

public NetworkInterfaceMigrationPhase migrationPhase()

Get the migrationPhase property: Migration phase of Network Interface resource.

Returns:

the migrationPhase value.

name

public String name()

Get the name property: The name of the resource.

Overrides:

NetworkInterfaceInner.name()

Returns:

the name value.

networkSecurityGroup

public NetworkSecurityGroupInner networkSecurityGroup()

Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.

Returns:

the networkSecurityGroup value.

nicType

public NetworkInterfaceNicType nicType()

Get the nicType property: Type of Network Interface resource.

Returns:

the nicType value.

primary

public Boolean primary()

Get the primary property: Whether this is a primary network interface on a virtual machine.

Returns:

the primary value.

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.

privateLinkService

public PrivateLinkServiceInner privateLinkService()

Get the privateLinkService property: Privatelinkservice of the network interface resource.

Returns:

the privateLinkService value.

provisioningState

public ProvisioningState provisioningState()

Get the provisioningState property: The provisioning state of the network interface resource.

Returns:

the provisioningState value.

resourceGuid

public String resourceGuid()

Get the resourceGuid property: The resource GUID property of the network interface resource.

Returns:

the resourceGuid value.

tapConfigurations

public List tapConfigurations()

Get the tapConfigurations property: A list of TapConfigurations of the network interface.

Returns:

the tapConfigurations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Overrides:

NetworkInterfaceInner.toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

type

public String type()

Get the type property: The type of the resource.

Overrides:

NetworkInterfaceInner.type()

Returns:

the type value.

validate

public void validate()

Validates the instance.

virtualMachine

public SubResource virtualMachine()

Get the virtualMachine property: The reference to a virtual machine.

Returns:

the virtualMachine value.

vnetEncryptionSupported

public Boolean vnetEncryptionSupported()

Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.

Returns:

the vnetEncryptionSupported value.

withAuxiliaryMode

public NetworkInterfaceInner withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)

Set the auxiliaryMode property: Auxiliary mode of Network Interface resource.

Parameters:

auxiliaryMode - the auxiliaryMode value to set.

Returns:

the NetworkInterfaceInner object itself.

withAuxiliarySku

public NetworkInterfaceInner withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)

Set the auxiliarySku property: Auxiliary sku of Network Interface resource.

Parameters:

auxiliarySku - the auxiliarySku value to set.

Returns:

the NetworkInterfaceInner object itself.

withDisableTcpStateTracking

public NetworkInterfaceInner withDisableTcpStateTracking(Boolean disableTcpStateTracking)

Set the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.

Parameters:

disableTcpStateTracking - the disableTcpStateTracking value to set.

Returns:

the NetworkInterfaceInner object itself.

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.

withEnableAcceleratedNetworking

public NetworkInterfaceInner withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: If the network interface is configured for accelerated networking. Not applicable to VM sizes which require accelerated networking.

Parameters:

enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.

Returns:

the NetworkInterfaceInner object itself.

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.

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.

withId

public NetworkInterfaceInner withId(String id)

Set the id property: Resource ID.

Parameters:

id - the id value to set.

Returns:

the NetworkInterfaceInner object itself.

withIpConfigurations

public NetworkInterfaceInner withIpConfigurations(List 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.

withLocation

public NetworkInterfaceInner withLocation(String location)

Overrides:

NetworkInterfaceInner.withLocation(String location)

Parameters:

location

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.

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.

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.

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.

withTags

public NetworkInterfaceInner withTags(Map tags)

Overrides:

NetworkInterfaceInner.withTags(Map<String,String> tags)

Parameters:

tags

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.

workloadType

public String workloadType()

Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.

Returns:

the workloadType value.

Applies to