Class SaveImageBody


  • public final class SaveImageBody
    extends Object
    Body for the save image POST.
    • Constructor Detail

      • SaveImageBody

        public SaveImageBody()
    • Method Detail

      • name

        public String name()
        Get the name property: The name for the image we create.
        Returns:
        the name value.
      • withName

        public SaveImageBody withName​(String name)
        Set the name property: The name for the image we create.
        Parameters:
        name - the name value to set.
        Returns:
        the SaveImageBody object itself.
      • labVirtualMachineId

        public String labVirtualMachineId()
        Get the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.
        Returns:
        the labVirtualMachineId value.
      • withLabVirtualMachineId

        public SaveImageBody withLabVirtualMachineId​(String labVirtualMachineId)
        Set the labVirtualMachineId property: The ID of the lab virtual machine you want to save an image from.
        Parameters:
        labVirtualMachineId - the labVirtualMachineId value to set.
        Returns:
        the SaveImageBody object itself.
      • validate

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