Class NetworkInterface


  • public final class NetworkInterface
    extends Object
    The network interface definition.
    • Constructor Detail

      • NetworkInterface

        public NetworkInterface()
    • Method Detail

      • id

        public String id()
        Get the id property: The ARM resource id in the form of /subscriptions/{SubscriptionId}/resourceGroups/{ResourceGroupName}/...
        Returns:
        the id value.
      • privateIpAddress

        public String privateIpAddress()
        Get the privateIpAddress property: Private Ip address of the interface.
        Returns:
        the privateIpAddress value.
      • withPrivateIpAddress

        public NetworkInterface withPrivateIpAddress​(String privateIpAddress)
        Set the privateIpAddress property: Private Ip address of the interface.
        Parameters:
        privateIpAddress - the privateIpAddress value to set.
        Returns:
        the NetworkInterface object itself.
      • validate

        public void validate()
        Validates the instance.
        Throws:
        IllegalArgumentException - thrown if the instance is not valid.