VirtualMachineNetworkInterfaceConfiguration Class

  • java.lang.Object
    • com.azure.resourcemanager.compute.models.VirtualMachineNetworkInterfaceConfiguration

Implements

public final class VirtualMachineNetworkInterfaceConfiguration
implements JsonSerializable<VirtualMachineNetworkInterfaceConfiguration>

Describes a virtual machine network interface configurations.

Constructor Summary

Constructor Description
VirtualMachineNetworkInterfaceConfiguration()

Creates an instance of VirtualMachineNetworkInterfaceConfiguration class.

Method Summary

Modifier and Type Method and Description
NetworkInterfaceAuxiliaryMode auxiliaryMode()

Get the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.

NetworkInterfaceAuxiliarySku auxiliarySku()

Get the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.

DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.

Boolean disableTcpStateTracking()

Get the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.

VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings()

Get the dnsSettings property: The dns settings to be applied on the network interfaces.

SubResource dscpConfiguration()

Get the dscpConfiguration property: The dscpConfiguration property.

Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.

Boolean enableFpga()

Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.

Boolean enableIpForwarding()

Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.

static VirtualMachineNetworkInterfaceConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceConfiguration from the JsonReader.

List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations()

Get the ipConfigurations property: Specifies the IP configurations of the network interface.

String name()

Get the name property: The network interface configuration name.

SubResource networkSecurityGroup()

Get the networkSecurityGroup property: The network security group.

Boolean primary()

Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineNetworkInterfaceConfiguration withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)

Set the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.

VirtualMachineNetworkInterfaceConfiguration withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)

Set the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.

VirtualMachineNetworkInterfaceConfiguration withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.

VirtualMachineNetworkInterfaceConfiguration withDisableTcpStateTracking(Boolean disableTcpStateTracking)

Set the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.

VirtualMachineNetworkInterfaceConfiguration withDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)

Set the dnsSettings property: The dns settings to be applied on the network interfaces.

VirtualMachineNetworkInterfaceConfiguration withDscpConfiguration(SubResource dscpConfiguration)

Set the dscpConfiguration property: The dscpConfiguration property.

VirtualMachineNetworkInterfaceConfiguration withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.

VirtualMachineNetworkInterfaceConfiguration withEnableFpga(Boolean enableFpga)

Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.

VirtualMachineNetworkInterfaceConfiguration withEnableIpForwarding(Boolean enableIpForwarding)

Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.

VirtualMachineNetworkInterfaceConfiguration withIpConfigurations(List<VirtualMachineNetworkInterfaceIpConfiguration> ipConfigurations)

Set the ipConfigurations property: Specifies the IP configurations of the network interface.

VirtualMachineNetworkInterfaceConfiguration withName(String name)

Set the name property: The network interface configuration name.

VirtualMachineNetworkInterfaceConfiguration withNetworkSecurityGroup(SubResource networkSecurityGroup)

Set the networkSecurityGroup property: The network security group.

VirtualMachineNetworkInterfaceConfiguration withPrimary(Boolean primary)

Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineNetworkInterfaceConfiguration

public VirtualMachineNetworkInterfaceConfiguration()

Creates an instance of VirtualMachineNetworkInterfaceConfiguration class.

Method Details

auxiliaryMode

public NetworkInterfaceAuxiliaryMode auxiliaryMode()

Get the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.

Returns:

the auxiliaryMode value.

auxiliarySku

public NetworkInterfaceAuxiliarySku auxiliarySku()

Get the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.

Returns:

the auxiliarySku value.

deleteOption

public DeleteOptions deleteOption()

Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.

Returns:

the deleteOption value.

disableTcpStateTracking

public Boolean disableTcpStateTracking()

Get the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.

Returns:

the disableTcpStateTracking value.

dnsSettings

public VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings()

Get the dnsSettings property: The dns settings to be applied on the network interfaces.

Returns:

the dnsSettings value.

dscpConfiguration

public SubResource dscpConfiguration()

Get the dscpConfiguration property: The dscpConfiguration property.

Returns:

the dscpConfiguration value.

enableAcceleratedNetworking

public Boolean enableAcceleratedNetworking()

Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.

Returns:

the enableAcceleratedNetworking value.

enableFpga

public Boolean enableFpga()

Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.

Returns:

the enableFpga value.

enableIpForwarding

public Boolean enableIpForwarding()

Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.

Returns:

the enableIpForwarding value.

fromJson

public static VirtualMachineNetworkInterfaceConfiguration fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineNetworkInterfaceConfiguration from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of VirtualMachineNetworkInterfaceConfiguration 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.

ipConfigurations

public List ipConfigurations()

Get the ipConfigurations property: Specifies the IP configurations of the network interface.

Returns:

the ipConfigurations value.

name

public String name()

Get the name property: The network interface configuration name.

Returns:

the name value.

networkSecurityGroup

public SubResource networkSecurityGroup()

Get the networkSecurityGroup property: The network security group.

Returns:

the networkSecurityGroup value.

primary

public Boolean primary()

Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Returns:

the primary value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withAuxiliaryMode

public VirtualMachineNetworkInterfaceConfiguration withAuxiliaryMode(NetworkInterfaceAuxiliaryMode auxiliaryMode)

Set the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.

Parameters:

auxiliaryMode - the auxiliaryMode value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withAuxiliarySku

public VirtualMachineNetworkInterfaceConfiguration withAuxiliarySku(NetworkInterfaceAuxiliarySku auxiliarySku)

Set the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.

Parameters:

auxiliarySku - the auxiliarySku value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withDeleteOption

public VirtualMachineNetworkInterfaceConfiguration withDeleteOption(DeleteOptions deleteOption)

Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.

Parameters:

deleteOption - the deleteOption value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withDisableTcpStateTracking

public VirtualMachineNetworkInterfaceConfiguration withDisableTcpStateTracking(Boolean disableTcpStateTracking)

Set the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.

Parameters:

disableTcpStateTracking - the disableTcpStateTracking value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withDnsSettings

public VirtualMachineNetworkInterfaceConfiguration withDnsSettings(VirtualMachineNetworkInterfaceDnsSettingsConfiguration dnsSettings)

Set the dnsSettings property: The dns settings to be applied on the network interfaces.

Parameters:

dnsSettings - the dnsSettings value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withDscpConfiguration

public VirtualMachineNetworkInterfaceConfiguration withDscpConfiguration(SubResource dscpConfiguration)

Set the dscpConfiguration property: The dscpConfiguration property.

Parameters:

dscpConfiguration - the dscpConfiguration value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withEnableAcceleratedNetworking

public VirtualMachineNetworkInterfaceConfiguration withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking)

Set the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.

Parameters:

enableAcceleratedNetworking - the enableAcceleratedNetworking value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withEnableFpga

public VirtualMachineNetworkInterfaceConfiguration withEnableFpga(Boolean enableFpga)

Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.

Parameters:

enableFpga - the enableFpga value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withEnableIpForwarding

public VirtualMachineNetworkInterfaceConfiguration withEnableIpForwarding(Boolean enableIpForwarding)

Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.

Parameters:

enableIpForwarding - the enableIpForwarding value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withIpConfigurations

public VirtualMachineNetworkInterfaceConfiguration withIpConfigurations(List ipConfigurations)

Set the ipConfigurations property: Specifies the IP configurations of the network interface.

Parameters:

ipConfigurations - the ipConfigurations value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withName

public VirtualMachineNetworkInterfaceConfiguration withName(String name)

Set the name property: The network interface configuration name.

Parameters:

name - the name value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withNetworkSecurityGroup

public VirtualMachineNetworkInterfaceConfiguration withNetworkSecurityGroup(SubResource networkSecurityGroup)

Set the networkSecurityGroup property: The network security group.

Parameters:

networkSecurityGroup - the networkSecurityGroup value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

withPrimary

public VirtualMachineNetworkInterfaceConfiguration withPrimary(Boolean primary)

Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.

Parameters:

primary - the primary value to set.

Returns:

the VirtualMachineNetworkInterfaceConfiguration object itself.

Applies to