Class NetworkProfile
java.lang.Object
com.azure.resourcemanager.compute.models.NetworkProfile
- All Implemented Interfaces:
com.azure.json.JsonSerializable<NetworkProfile>
public final class NetworkProfile
extends Object
implements com.azure.json.JsonSerializable<NetworkProfile>
Specifies the network interfaces or the networking configuration of the virtual machine.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NetworkProfilefromJson(com.azure.json.JsonReader jsonReader) Reads an instance of NetworkProfile from the JsonReader.Get the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.com.azure.json.JsonWritertoJson(com.azure.json.JsonWriter jsonWriter) voidvalidate()Validates the instance.withNetworkApiVersion(NetworkApiVersion networkApiVersion) Set the networkApiVersion property: specifies the Microsoft.Network API version used when creating networking resources in the Network Interface Configurations.withNetworkInterfaceConfigurations(List<VirtualMachineNetworkInterfaceConfiguration> networkInterfaceConfigurations) Set the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.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 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
-
NetworkProfile
public NetworkProfile()Creates an instance of NetworkProfile class.
-
-
Method Details
-
networkInterfaces
Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.- Returns:
- the networkInterfaces value.
-
withNetworkInterfaces
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.
-
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.
-
withNetworkApiVersion
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.
-
networkInterfaceConfigurations
Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.- Returns:
- the networkInterfaceConfigurations value.
-
withNetworkInterfaceConfigurations
public NetworkProfile withNetworkInterfaceConfigurations(List<VirtualMachineNetworkInterfaceConfiguration> 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.
-
validate
public void validate()Validates the instance.- Throws:
IllegalArgumentException- thrown if the instance is not valid.
-
toJson
- Specified by:
toJsonin interfacecom.azure.json.JsonSerializable<NetworkProfile>- Throws:
IOException
-
fromJson
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.
-