Class VirtualMachineScaleSetNetworkConfigurationProperties

java.lang.Object
com.azure.resourcemanager.compute.fluent.models.VirtualMachineScaleSetNetworkConfigurationProperties
All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkConfigurationProperties>

public final class VirtualMachineScaleSetNetworkConfigurationProperties extends Object implements com.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkConfigurationProperties>
Describes a virtual machine scale set network profile's IP configuration.
  • Constructor Details

    • VirtualMachineScaleSetNetworkConfigurationProperties

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

    • 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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties object itself.
    • enableFpga

      public Boolean enableFpga()
      Get the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.
      Returns:
      the enableFpga value.
    • withEnableFpga

      Set the enableFpga property: Specifies whether the network interface is FPGA networking-enabled.
      Parameters:
      enableFpga - the enableFpga value to set.
      Returns:
      the VirtualMachineScaleSetNetworkConfigurationProperties object itself.
    • networkSecurityGroup

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

      public VirtualMachineScaleSetNetworkConfigurationProperties withNetworkSecurityGroup(com.azure.core.management.SubResource networkSecurityGroup)
      Set the networkSecurityGroup property: The network security group.
      Parameters:
      networkSecurityGroup - the networkSecurityGroup value to set.
      Returns:
      the VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties object itself.
    • ipConfigurations

      public List<VirtualMachineScaleSetIpConfiguration> 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 VirtualMachineScaleSetNetworkConfigurationProperties object itself.
    • enableIpForwarding

      public Boolean enableIpForwarding()
      Get the enableIpForwarding property: Whether IP forwarding enabled on this NIC.
      Returns:
      the enableIpForwarding value.
    • withEnableIpForwarding

      public VirtualMachineScaleSetNetworkConfigurationProperties withEnableIpForwarding(Boolean enableIpForwarding)
      Set the enableIpForwarding property: Whether IP forwarding enabled on this NIC.
      Parameters:
      enableIpForwarding - the enableIpForwarding value to set.
      Returns:
      the VirtualMachineScaleSetNetworkConfigurationProperties 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

      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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties 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 VirtualMachineScaleSetNetworkConfigurationProperties object itself.
    • validate

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

      public com.azure.json.JsonWriter toJson(com.azure.json.JsonWriter jsonWriter) throws IOException
      Specified by:
      toJson in interface com.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkConfigurationProperties>
      Throws:
      IOException
    • fromJson

      public static VirtualMachineScaleSetNetworkConfigurationProperties fromJson(com.azure.json.JsonReader jsonReader) throws IOException
      Reads an instance of VirtualMachineScaleSetNetworkConfigurationProperties from the JsonReader.
      Parameters:
      jsonReader - The JsonReader being read.
      Returns:
      An instance of VirtualMachineScaleSetNetworkConfigurationProperties if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.
      Throws:
      IllegalStateException - If the deserialized JSON object was missing any required properties.
      IOException - If an error occurs while reading the VirtualMachineScaleSetNetworkConfigurationProperties.