Class NetworkProfile


  • public final class NetworkProfile
    extends Object
    Specifies the network interfaces or the networking configuration of the virtual machine.
    • Constructor Detail

      • NetworkProfile

        public NetworkProfile()
    • Method Detail

      • 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:
        the networkInterfaces value.
      • 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:
        networkInterfaces - the networkInterfaces value to set.
        Returns:
        the NetworkProfile object itself.
      • 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.
      • 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.
      • 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:
        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.