Class VirtualMachineScaleSetNetworkProfile
java.lang.Object
com.azure.resourcemanager.compute.models.VirtualMachineScaleSetNetworkProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkProfile>
public final class VirtualMachineScaleSetNetworkProfile
extends Object
implements com.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkProfile>
Describes a virtual machine scale set network profile.
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an instance of VirtualMachineScaleSetNetworkProfile class. -
Method Summary
Modifier and TypeMethodDescriptionfromJson(com.azure.json.JsonReader jsonReader) Reads an instance of VirtualMachineScaleSetNetworkProfile from the JsonReader.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.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'.Get the networkInterfaceConfigurations property: The list of network configurations.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.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.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'.withNetworkInterfaceConfigurations(List<VirtualMachineScaleSetNetworkConfiguration> networkInterfaceConfigurations) Set the networkInterfaceConfigurations property: The list of network configurations.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.azure.json.JsonSerializable
toJson, toJson, toJsonBytes, toJsonString
-
Constructor Details
-
VirtualMachineScaleSetNetworkProfile
public VirtualMachineScaleSetNetworkProfile()Creates an instance of VirtualMachineScaleSetNetworkProfile class.
-
-
Method Details
-
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
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 VirtualMachineScaleSetNetworkProfile object itself.
-
networkInterfaceConfigurations
Get the networkInterfaceConfigurations property: The list of network configurations.- Returns:
- the networkInterfaceConfigurations value.
-
withNetworkInterfaceConfigurations
public VirtualMachineScaleSetNetworkProfile withNetworkInterfaceConfigurations(List<VirtualMachineScaleSetNetworkConfiguration> networkInterfaceConfigurations) Set the networkInterfaceConfigurations property: The list of network configurations.- Parameters:
networkInterfaceConfigurations- the networkInterfaceConfigurations value to set.- Returns:
- the VirtualMachineScaleSetNetworkProfile object itself.
-
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 VirtualMachineScaleSetNetworkProfile 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 VirtualMachineScaleSetNetworkProfile object itself.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<VirtualMachineScaleSetNetworkProfile>- Throws:
IOException
-
fromJson
public static VirtualMachineScaleSetNetworkProfile fromJson(com.azure.json.JsonReader jsonReader) throws IOException Reads an instance of VirtualMachineScaleSetNetworkProfile from the JsonReader.- Parameters:
jsonReader- The JsonReader being read.- Returns:
- An instance of VirtualMachineScaleSetNetworkProfile 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 VirtualMachineScaleSetNetworkProfile.
-