VirtualMachineScaleSetNetworkProfile Class

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

Implements

public final class VirtualMachineScaleSetNetworkProfile
implements JsonSerializable<VirtualMachineScaleSetNetworkProfile>

Describes a virtual machine scale set network profile.

Constructor Summary

Constructor Description
VirtualMachineScaleSetNetworkProfile()

Creates an instance of VirtualMachineScaleSetNetworkProfile class.

Method Summary

Modifier and Type Method and Description
static VirtualMachineScaleSetNetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of VirtualMachineScaleSetNetworkProfile from the JsonReader.

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.

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'.

List<VirtualMachineScaleSetNetworkConfiguration> networkInterfaceConfigurations()

Get the networkInterfaceConfigurations property: The list of network configurations.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

VirtualMachineScaleSetNetworkProfile 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.

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'.

VirtualMachineScaleSetNetworkProfile withNetworkInterfaceConfigurations(List<VirtualMachineScaleSetNetworkConfiguration> networkInterfaceConfigurations)

Set the networkInterfaceConfigurations property: The list of network configurations.

Methods inherited from java.lang.Object

Constructor Details

VirtualMachineScaleSetNetworkProfile

public VirtualMachineScaleSetNetworkProfile()

Creates an instance of VirtualMachineScaleSetNetworkProfile class.

Method Details

fromJson

public static VirtualMachineScaleSetNetworkProfile fromJson(JsonReader jsonReader)

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.

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.

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'.

Returns:

the networkApiVersion value.

networkInterfaceConfigurations

public List networkInterfaceConfigurations()

Get the networkInterfaceConfigurations property: The list of network configurations.

Returns:

the networkInterfaceConfigurations value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withHealthProbe

public VirtualMachineScaleSetNetworkProfile 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 VirtualMachineScaleSetNetworkProfile object itself.

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'.

Parameters:

networkApiVersion - the networkApiVersion value to set.

Returns:

the VirtualMachineScaleSetNetworkProfile object itself.

withNetworkInterfaceConfigurations

public VirtualMachineScaleSetNetworkProfile withNetworkInterfaceConfigurations(List networkInterfaceConfigurations)

Set the networkInterfaceConfigurations property: The list of network configurations.

Parameters:

networkInterfaceConfigurations - the networkInterfaceConfigurations value to set.

Returns:

the VirtualMachineScaleSetNetworkProfile object itself.

Applies to