Class VirtualMachineNetworkInterfaceConfiguration

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

public final class VirtualMachineNetworkInterfaceConfiguration extends Object
Describes a virtual machine network interface configurations.
  • Constructor Details

    • VirtualMachineNetworkInterfaceConfiguration

      public VirtualMachineNetworkInterfaceConfiguration()
      Creates an instance of VirtualMachineNetworkInterfaceConfiguration class.
  • Method Details

    • name

      public String name()
      Get the name property: The network interface configuration name.
      Returns:
      the name value.
    • withName

      Set the name property: The network interface configuration name.
      Parameters:
      name - the name value to set.
      Returns:
      the VirtualMachineNetworkInterfaceConfiguration object itself.
    • 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.
    • withPrimary

      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.
    • deleteOption

      public DeleteOptions deleteOption()
      Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
      Returns:
      the deleteOption value.
    • 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.
    • enableAcceleratedNetworking

      public Boolean enableAcceleratedNetworking()
      Get the enableAcceleratedNetworking property: Specifies whether the network interface is accelerated networking-enabled.
      Returns:
      the enableAcceleratedNetworking value.
    • 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.
    • disableTcpStateTracking

      public Boolean disableTcpStateTracking()
      Get the disableTcpStateTracking property: Specifies whether the network interface is disabled for tcp state tracking.
      Returns:
      the disableTcpStateTracking value.
    • 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.
    • enableFpga

      public Boolean enableFpga()
      Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.
      Returns:
      the enableFpga value.
    • 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.
    • enableIpForwarding

      public Boolean enableIpForwarding()
      Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.
      Returns:
      the enableIpForwarding value.
    • 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.
    • networkSecurityGroup

      public com.azure.core.management.SubResource networkSecurityGroup()
      Get the networkSecurityGroup property: The network security group.
      Returns:
      the networkSecurityGroup value.
    • withNetworkSecurityGroup

      public VirtualMachineNetworkInterfaceConfiguration withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup)
      Set the networkSecurityGroup property: The network security group.
      Parameters:
      networkSecurityGroup - the networkSecurityGroup value to set.
      Returns:
      the VirtualMachineNetworkInterfaceConfiguration object itself.
    • dnsSettings

      Get the dnsSettings property: The dns settings to be applied on the network interfaces.
      Returns:
      the dnsSettings value.
    • withDnsSettings

      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.
    • ipConfigurations

      Get the ipConfigurations property: Specifies the IP configurations of the network interface.
      Returns:
      the ipConfigurations value.
    • withIpConfigurations

      Set the ipConfigurations property: Specifies the IP configurations of the network interface.
      Parameters:
      ipConfigurations - the ipConfigurations value to set.
      Returns:
      the VirtualMachineNetworkInterfaceConfiguration object itself.
    • dscpConfiguration

      public com.azure.core.management.SubResource dscpConfiguration()
      Get the dscpConfiguration property: The dscpConfiguration property.
      Returns:
      the dscpConfiguration value.
    • withDscpConfiguration

      public VirtualMachineNetworkInterfaceConfiguration withDscpConfiguration(com.azure.core.management.SubResource dscpConfiguration)
      Set the dscpConfiguration property: The dscpConfiguration property.
      Parameters:
      dscpConfiguration - the dscpConfiguration value to set.
      Returns:
      the VirtualMachineNetworkInterfaceConfiguration object itself.
    • auxiliaryMode

      public NetworkInterfaceAuxiliaryMode auxiliaryMode()
      Get the auxiliaryMode property: Specifies whether the Auxiliary mode is enabled for the Network Interface resource.
      Returns:
      the auxiliaryMode value.
    • withAuxiliaryMode

      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.
    • auxiliarySku

      public NetworkInterfaceAuxiliarySku auxiliarySku()
      Get the auxiliarySku property: Specifies whether the Auxiliary sku is enabled for the Network Interface resource.
      Returns:
      the auxiliarySku value.
    • withAuxiliarySku

      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.
    • validate

      public void validate()
      Validates the instance.
      Throws:
      IllegalArgumentException - thrown if the instance is not valid.