NetworkInterfaceInner Class
- java.
lang. Object - com.
azure. core. management. ProxyResource - com.
azure. core. management. Resource - com.
azure. resourcemanager. network. fluent. models. NetworkInterfaceInner
- com.
- com.
- com.
public final class NetworkInterfaceInner
extends Resource
A network interface in a resource group.
Constructor Summary
Constructor | Description |
---|---|
NetworkInterfaceInner() |
Creates an instance of Network |
Method Summary
Modifier and Type | Method and Description |
---|---|
Network |
auxiliaryMode()
Get the auxiliary |
Network |
auxiliarySku()
Get the auxiliary |
Boolean |
disableTcpStateTracking()
Get the disable |
Network |
dnsSettings()
Get the dns |
Sub |
dscpConfiguration()
Get the dscp |
Boolean |
enableAcceleratedNetworking()
Get the enable |
Boolean |
enableIpForwarding()
Get the enable |
String |
etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated. |
Extended |
extendedLocation()
Get the extended |
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
List<String> |
hostedWorkloads()
Get the hosted |
String |
id()
Get the id property: Resource ID. |
List<Network |
ipConfigurations()
Get the ip |
String |
macAddress()
Get the mac |
Network |
migrationPhase()
Get the migration |
String |
name()
Get the name property: The name of the resource. |
Network |
networkSecurityGroup()
Get the network |
Network |
nicType()
Get the nic |
Boolean |
primary()
Get the primary property: Whether this is a primary network interface on a virtual machine. |
Private |
privateEndpoint()
Get the private |
Private |
privateLinkService()
Get the private |
Provisioning |
provisioningState()
Get the provisioning |
String |
resourceGuid()
Get the resource |
List<Network |
tapConfigurations()
Get the tap |
Json |
toJson(JsonWriter jsonWriter) |
String |
type()
Get the type property: The type of the resource. |
void |
validate()
Validates the instance. |
Sub |
virtualMachine()
Get the virtual |
Boolean |
vnetEncryptionSupported()
Get the vnet |
Network |
withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)
Set the auxiliary |
Network |
withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)
Set the auxiliary |
Network |
withDisableTcpStateTracking(Boolean disableTcpStateTracking)
Set the disable |
Network |
withDnsSettings(NetworkInterfaceDnsSettings dnsSettings)
Set the dns |
Network |
withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)
Set the enable |
Network |
withEnableIpForwarding(Boolean enableIpForwarding)
Set the enable |
Network |
withExtendedLocation(ExtendedLocation extendedLocation)
Set the extended |
Network |
withId(String id)
Set the id property: Resource ID. |
Network |
withIpConfigurations(List<NetworkInterfaceIpConfigurationInner> ipConfigurations)
Set the ip |
Network |
withLocation(String location) |
Network |
withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)
Set the migration |
Network |
withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
Set the network |
Network |
withNicType(NetworkInterfaceNicType nicType)
Set the nic |
Network |
withPrivateLinkService(PrivateLinkServiceInner privateLinkService)
Set the private |
Network |
withTags(Map<String,String> tags) |
Network |
withWorkloadType(String workloadType)
Set the workload |
String |
workloadType()
Get the workload |
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:
auxiliarySku
public NetworkInterfaceAuxiliarySku auxiliarySku()
Get the auxiliarySku property: Auxiliary sku of Network Interface resource.
Returns:
disableTcpStateTracking
public Boolean disableTcpStateTracking()
Get the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.
Returns:
dnsSettings
public NetworkInterfaceDnsSettings dnsSettings()
Get the dnsSettings property: The DNS settings in network interface.
Returns:
dscpConfiguration
public SubResource dscpConfiguration()
Get the dscpConfiguration property: A reference to the dscp configuration to which the network interface is linked.
Returns:
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:
enableIpForwarding
public Boolean enableIpForwarding()
Get the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.
Returns:
etag
public String etag()
Get the etag property: A unique read-only string that changes whenever the resource is updated.
Returns:
extendedLocation
public ExtendedLocation extendedLocation()
Get the extendedLocation property: The extended location of the network interface.
Returns:
fromJson
public static NetworkInterfaceInner fromJson(JsonReader jsonReader)
Reads an instance of NetworkInterfaceInner from the JsonReader.
Parameters:
Returns:
Throws:
hostedWorkloads
public List
Get the hostedWorkloads property: A list of references to linked BareMetal resources.
Returns:
id
public String id()
Get the id property: Resource ID.
Overrides:
NetworkInterfaceInner.id()Returns:
ipConfigurations
public List
Get the ipConfigurations property: A list of IPConfigurations of the network interface.
Returns:
macAddress
public String macAddress()
Get the macAddress property: The MAC address of the network interface.
Returns:
migrationPhase
public NetworkInterfaceMigrationPhase migrationPhase()
Get the migrationPhase property: Migration phase of Network Interface resource.
Returns:
name
public String name()
Get the name property: The name of the resource.
Overrides:
NetworkInterfaceInner.name()Returns:
networkSecurityGroup
public NetworkSecurityGroupInner networkSecurityGroup()
Get the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
Returns:
nicType
public NetworkInterfaceNicType nicType()
Get the nicType property: Type of Network Interface resource.
Returns:
primary
public Boolean primary()
Get the primary property: Whether this is a primary network interface on a virtual machine.
Returns:
privateEndpoint
public PrivateEndpointInner privateEndpoint()
Get the privateEndpoint property: A reference to the private endpoint to which the network interface is linked.
Returns:
privateLinkService
public PrivateLinkServiceInner privateLinkService()
Get the privateLinkService property: Privatelinkservice of the network interface resource.
Returns:
provisioningState
public ProvisioningState provisioningState()
Get the provisioningState property: The provisioning state of the network interface resource.
Returns:
resourceGuid
public String resourceGuid()
Get the resourceGuid property: The resource GUID property of the network interface resource.
Returns:
tapConfigurations
public List
Get the tapConfigurations property: A list of TapConfigurations of the network interface.
Returns:
toJson
public JsonWriter toJson(JsonWriter jsonWriter)
Overrides:
NetworkInterfaceInner.toJson(JsonWriter jsonWriter)Parameters:
Throws:
type
public String type()
Get the type property: The type of the resource.
Overrides:
NetworkInterfaceInner.type()Returns:
validate
public void validate()
Validates the instance.
virtualMachine
public SubResource virtualMachine()
Get the virtualMachine property: The reference to a virtual machine.
Returns:
vnetEncryptionSupported
public Boolean vnetEncryptionSupported()
Get the vnetEncryptionSupported property: Whether the virtual machine this nic is attached to supports encryption.
Returns:
withAuxiliaryMode
public NetworkInterfaceInner withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)
Set the auxiliaryMode property: Auxiliary mode of Network Interface resource.
Parameters:
Returns:
withAuxiliarySku
public NetworkInterfaceInner withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)
Set the auxiliarySku property: Auxiliary sku of Network Interface resource.
Parameters:
Returns:
withDisableTcpStateTracking
public NetworkInterfaceInner withDisableTcpStateTracking(Boolean disableTcpStateTracking)
Set the disableTcpStateTracking property: Indicates whether to disable tcp state tracking.
Parameters:
Returns:
withDnsSettings
public NetworkInterfaceInner withDnsSettings(NetworkInterfaceDnsSettings dnsSettings)
Set the dnsSettings property: The DNS settings in network interface.
Parameters:
Returns:
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:
Returns:
withEnableIpForwarding
public NetworkInterfaceInner withEnableIpForwarding(Boolean enableIpForwarding)
Set the enableIpForwarding property: Indicates whether IP forwarding is enabled on this network interface.
Parameters:
Returns:
withExtendedLocation
public NetworkInterfaceInner withExtendedLocation(ExtendedLocation extendedLocation)
Set the extendedLocation property: The extended location of the network interface.
Parameters:
Returns:
withId
public NetworkInterfaceInner withId(String id)
Set the id property: Resource ID.
Parameters:
Returns:
withIpConfigurations
public NetworkInterfaceInner withIpConfigurations(List
Set the ipConfigurations property: A list of IPConfigurations of the network interface.
Parameters:
Returns:
withLocation
public NetworkInterfaceInner withLocation(String location)
Overrides:
NetworkInterfaceInner.withLocation(String location)Parameters:
withMigrationPhase
public NetworkInterfaceInner withMigrationPhase(NetworkInterfaceMigrationPhase migrationPhase)
Set the migrationPhase property: Migration phase of Network Interface resource.
Parameters:
Returns:
withNetworkSecurityGroup
public NetworkInterfaceInner withNetworkSecurityGroup(NetworkSecurityGroupInner networkSecurityGroup)
Set the networkSecurityGroup property: The reference to the NetworkSecurityGroup resource.
Parameters:
Returns:
withNicType
public NetworkInterfaceInner withNicType(NetworkInterfaceNicType nicType)
Set the nicType property: Type of Network Interface resource.
Parameters:
Returns:
withPrivateLinkService
public NetworkInterfaceInner withPrivateLinkService(PrivateLinkServiceInner privateLinkService)
Set the privateLinkService property: Privatelinkservice of the network interface resource.
Parameters:
Returns:
withTags
public NetworkInterfaceInner withTags(Map
Overrides:
NetworkInterfaceInner.withTags(Map<String,String> tags)Parameters:
withWorkloadType
public NetworkInterfaceInner withWorkloadType(String workloadType)
Set the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.
Parameters:
Returns:
workloadType
public String workloadType()
Get the workloadType property: WorkloadType of the NetworkInterface for BareMetal resources.
Returns:
Applies to
Azure SDK for Java