Class ImageTemplateLastRunStatus


  • public final class ImageTemplateLastRunStatus
    extends Object
    Describes the latest status of running an image template.
    • Constructor Detail

      • ImageTemplateLastRunStatus

        public ImageTemplateLastRunStatus()
    • Method Detail

      • startTime

        public OffsetDateTime startTime()
        Get the startTime property: Start time of the last run (UTC).
        Returns:
        the startTime value.
      • withStartTime

        public ImageTemplateLastRunStatus withStartTime​(OffsetDateTime startTime)
        Set the startTime property: Start time of the last run (UTC).
        Parameters:
        startTime - the startTime value to set.
        Returns:
        the ImageTemplateLastRunStatus object itself.
      • endTime

        public OffsetDateTime endTime()
        Get the endTime property: End time of the last run (UTC).
        Returns:
        the endTime value.
      • withEndTime

        public ImageTemplateLastRunStatus withEndTime​(OffsetDateTime endTime)
        Set the endTime property: End time of the last run (UTC).
        Parameters:
        endTime - the endTime value to set.
        Returns:
        the ImageTemplateLastRunStatus object itself.
      • runState

        public RunState runState()
        Get the runState property: State of the last run.
        Returns:
        the runState value.
      • withRunState

        public ImageTemplateLastRunStatus withRunState​(RunState runState)
        Set the runState property: State of the last run.
        Parameters:
        runState - the runState value to set.
        Returns:
        the ImageTemplateLastRunStatus object itself.
      • runSubState

        public RunSubState runSubState()
        Get the runSubState property: Sub-state of the last run.
        Returns:
        the runSubState value.
      • withRunSubState

        public ImageTemplateLastRunStatus withRunSubState​(RunSubState runSubState)
        Set the runSubState property: Sub-state of the last run.
        Parameters:
        runSubState - the runSubState value to set.
        Returns:
        the ImageTemplateLastRunStatus object itself.
      • message

        public String message()
        Get the message property: Verbose information about the last run state.
        Returns:
        the message value.
      • withMessage

        public ImageTemplateLastRunStatus withMessage​(String message)
        Set the message property: Verbose information about the last run state.
        Parameters:
        message - the message value to set.
        Returns:
        the ImageTemplateLastRunStatus object itself.
      • validate

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