NetworkProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. NetworkProfile
- com.
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 Network |
Method Summary
| Modifier and Type | Method and Description |
|---|---|
|
static
Network |
fromJson(JsonReader jsonReader)
Reads an instance of Network |
|
Interconnect |
interconnectGroupProfile()
Get the interconnect |
|
Network |
networkApiVersion()
Get the network |
|
List<Virtual |
networkInterfaceConfigurations()
Get the network |
|
List<Network |
networkInterfaces()
Get the network |
|
Json |
toJson(JsonWriter jsonWriter) |
| void |
validate()
Validates the instance. |
|
Network |
withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile)
Set the interconnect |
|
Network |
withNetworkApiVersion(NetworkApiVersion networkApiVersion)
Set the network |
|
Network |
withNetworkInterfaceConfigurations(List<VirtualMachineNetworkInterfaceConfiguration> networkInterfaceConfigurations)
Set the network |
|
Network |
withNetworkInterfaces(List<NetworkInterfaceReference> networkInterfaces)
Set the network |
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:
Returns:
Throws:
interconnectGroupProfile
public InterconnectGroupProfile interconnectGroupProfile()
Get the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the virtual machine. Minimum api-version: 2026-03-01.
Returns:
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:
networkInterfaceConfigurations
public List<VirtualMachineNetworkInterfaceConfiguration> networkInterfaceConfigurations()
Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.
Returns:
networkInterfaces
public List<NetworkInterfaceReference> networkInterfaces()
Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
Returns:
toJson
validate
public void validate()
Validates the instance.
withInterconnectGroupProfile
public NetworkProfile withInterconnectGroupProfile(InterconnectGroupProfile interconnectGroupProfile)
Set the interconnectGroupProfile property: Specifies the interconnect group profile to associate with the virtual machine. Minimum api-version: 2026-03-01.
Parameters:
Returns:
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:
Returns:
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:
Returns:
withNetworkInterfaces
public NetworkProfile withNetworkInterfaces(List<NetworkInterfaceReference> networkInterfaces)
Set the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
Parameters:
Returns: