Class InstanceStatusEvent

    • Constructor Detail

      • InstanceStatusEvent

        public InstanceStatusEvent()
    • Method Detail

      • setCode

        public void setCode​(String code)

        The event code.

        Parameters:
        code - The event code.
        See Also:
        EventCode
      • getCode

        public String getCode()

        The event code.

        Returns:
        The event code.
        See Also:
        EventCode
      • withCode

        public InstanceStatusEvent withCode​(String code)

        The event code.

        Parameters:
        code - The event code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EventCode
      • setCode

        public void setCode​(EventCode code)

        The event code.

        Parameters:
        code - The event code.
        See Also:
        EventCode
      • withCode

        public InstanceStatusEvent withCode​(EventCode code)

        The event code.

        Parameters:
        code - The event code.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
        See Also:
        EventCode
      • setDescription

        public void setDescription​(String description)

        A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

        Parameters:
        description - A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

      • getDescription

        public String getDescription()

        A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

        Returns:
        A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

      • withDescription

        public InstanceStatusEvent withDescription​(String description)

        A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

        Parameters:
        description - A description of the event.

        After a scheduled event is completed, it can still be described for up to a week. If the event has been completed, this description starts with the following text: [Completed].

        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNotBefore

        public void setNotBefore​(Date notBefore)

        The earliest scheduled start time for the event.

        Parameters:
        notBefore - The earliest scheduled start time for the event.
      • getNotBefore

        public Date getNotBefore()

        The earliest scheduled start time for the event.

        Returns:
        The earliest scheduled start time for the event.
      • withNotBefore

        public InstanceStatusEvent withNotBefore​(Date notBefore)

        The earliest scheduled start time for the event.

        Parameters:
        notBefore - The earliest scheduled start time for the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • setNotAfter

        public void setNotAfter​(Date notAfter)

        The latest scheduled end time for the event.

        Parameters:
        notAfter - The latest scheduled end time for the event.
      • getNotAfter

        public Date getNotAfter()

        The latest scheduled end time for the event.

        Returns:
        The latest scheduled end time for the event.
      • withNotAfter

        public InstanceStatusEvent withNotAfter​(Date notAfter)

        The latest scheduled end time for the event.

        Parameters:
        notAfter - The latest scheduled end time for the event.
        Returns:
        Returns a reference to this object so that method calls can be chained together.
      • toString

        public String toString()
        Returns a string representation of this object; useful for testing and debugging.
        Overrides:
        toString in class Object
        Returns:
        A string representation of this object.
        See Also:
        Object.toString()
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object