Class VirtualMachineScaleSetUpdateNetworkProfile

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

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

    • VirtualMachineScaleSetUpdateNetworkProfile

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

    • healthProbe

      public ApiEntityReference healthProbe()
      Get the healthProbe property: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
      Returns:
      the healthProbe value.
    • withHealthProbe

      public VirtualMachineScaleSetUpdateNetworkProfile withHealthProbe(ApiEntityReference healthProbe)
      Set the healthProbe property: A reference to a load balancer probe used to determine the health of an instance in the virtual machine scale set. The reference will be in the form: '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/loadBalancers/{loadBalancerName}/probes/{probeName}'.
      Parameters:
      healthProbe - the healthProbe value to set.
      Returns:
      the VirtualMachineScaleSetUpdateNetworkProfile object itself.
    • networkInterfaceConfigurations

      public List<VirtualMachineScaleSetUpdateNetworkConfiguration> networkInterfaceConfigurations()
      Get the networkInterfaceConfigurations property: The list of network configurations.
      Returns:
      the networkInterfaceConfigurations value.
    • withNetworkInterfaceConfigurations

      public VirtualMachineScaleSetUpdateNetworkProfile withNetworkInterfaceConfigurations(List<VirtualMachineScaleSetUpdateNetworkConfiguration> networkInterfaceConfigurations)
      Set the networkInterfaceConfigurations property: The list of network configurations.
      Parameters:
      networkInterfaceConfigurations - the networkInterfaceConfigurations value to set.
      Returns:
      the VirtualMachineScaleSetUpdateNetworkProfile object itself.
    • networkApiVersion

      public NetworkApiVersion networkApiVersion()
      Get the networkApiVersion property: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'.
      Returns:
      the networkApiVersion value.
    • withNetworkApiVersion

      public VirtualMachineScaleSetUpdateNetworkProfile withNetworkApiVersion(NetworkApiVersion networkApiVersion)
      Set the networkApiVersion property: Specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations for Virtual Machine Scale Set with orchestration mode 'Flexible'. For support of all network properties, use '2022-11-01'.
      Parameters:
      networkApiVersion - the networkApiVersion value to set.
      Returns:
      the VirtualMachineScaleSetUpdateNetworkProfile 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<VirtualMachineScaleSetUpdateNetworkProfile>
      Throws:
      IOException
    • fromJson

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