NetworkProfile Class

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

Implements

public final class NetworkProfile
implements JsonSerializable<NetworkProfile>

Specifies the network interfaces or the networking configuration of the virtual machine.

Constructor Summary

Constructor Description
NetworkProfile()

Creates an instance of NetworkProfile class.

Method Summary

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

Reads an instance of NetworkProfile from the JsonReader.

NetworkApiVersion networkApiVersion()

Get the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.

List<VirtualMachineNetworkInterfaceConfiguration> networkInterfaceConfigurations()

Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.

List<NetworkInterfaceReference> networkInterfaces()

Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

NetworkProfile withNetworkApiVersion(NetworkApiVersion networkApiVersion)

Set the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.

NetworkProfile withNetworkInterfaceConfigurations(List<VirtualMachineNetworkInterfaceConfiguration> networkInterfaceConfigurations)

Set the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.

NetworkProfile withNetworkInterfaces(List<NetworkInterfaceReference> networkInterfaces)

Set the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.

Methods inherited from java.lang.Object

Constructor Details

NetworkProfile

public NetworkProfile()

Creates an instance of NetworkProfile class.

Method Details

fromJson

public static NetworkProfile fromJson(JsonReader jsonReader)

Reads an instance of NetworkProfile from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of NetworkProfile 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 NetworkProfile.

networkApiVersion

public NetworkApiVersion networkApiVersion()

Get the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.

Returns:

the networkApiVersion value.

networkInterfaceConfigurations

public List networkInterfaceConfigurations()

Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.

Returns:

the networkInterfaceConfigurations value.

networkInterfaces

public List networkInterfaces()

Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.

Returns:

the networkInterfaces value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withNetworkApiVersion

public NetworkProfile withNetworkApiVersion(NetworkApiVersion networkApiVersion)

Set the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.

Parameters:

networkApiVersion - the networkApiVersion value to set.

Returns:

the NetworkProfile object itself.

withNetworkInterfaceConfigurations

public NetworkProfile withNetworkInterfaceConfigurations(List networkInterfaceConfigurations)

Set the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.

Parameters:

networkInterfaceConfigurations - the networkInterfaceConfigurations value to set.

Returns:

the NetworkProfile object itself.

withNetworkInterfaces

public NetworkProfile withNetworkInterfaces(List networkInterfaces)

Set the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.

Parameters:

networkInterfaces - the networkInterfaces value to set.

Returns:

the NetworkProfile object itself.

Applies to