Class NetworkInterfaceReferenceProperties


  • public final class NetworkInterfaceReferenceProperties
    extends Object
    Describes a network interface reference properties.
    • Constructor Detail

      • NetworkInterfaceReferenceProperties

        public NetworkInterfaceReferenceProperties()
    • Method Detail

      • primary

        public Boolean primary()
        Get the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
        Returns:
        the primary value.
      • withPrimary

        public NetworkInterfaceReferenceProperties withPrimary​(Boolean primary)
        Set the primary property: Specifies the primary network interface in case the virtual machine has more than 1 network interface.
        Parameters:
        primary - the primary value to set.
        Returns:
        the NetworkInterfaceReferenceProperties object itself.
      • deleteOption

        public DeleteOptions deleteOption()
        Get the deleteOption property: Specify what happens to the network interface when the VM is deleted.
        Returns:
        the deleteOption value.
      • withDeleteOption

        public NetworkInterfaceReferenceProperties withDeleteOption​(DeleteOptions deleteOption)
        Set the deleteOption property: Specify what happens to the network interface when the VM is deleted.
        Parameters:
        deleteOption - the deleteOption value to set.
        Returns:
        the NetworkInterfaceReferenceProperties object itself.
      • validate

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