NetworkProfile Class
- java.
lang. Object - com.
azure. resourcemanager. compute. models. NetworkProfile
- com.
public final class 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 |
---|---|
Network |
networkApiVersion()
Get the network |
List<Virtual |
networkInterfaceConfigurations()
Get the network |
List<Network |
networkInterfaces()
Get the network |
void |
validate()
Validates the instance. |
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
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
Get the networkInterfaceConfigurations property: Specifies the networking configurations that will be used to create the virtual machine networking resources.
Returns:
networkInterfaces
public List
Get the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
Returns:
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:
Returns:
withNetworkInterfaceConfigurations
public NetworkProfile withNetworkInterfaceConfigurations(List
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
Set the networkInterfaces property: Specifies the list of resource Ids for the network interfaces associated with the virtual machine.
Parameters:
Returns:
Applies to
Azure SDK for Java
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for