Class ExternalTerminalAction


  • public class ExternalTerminalAction
    extends Object
    ExternalTerminalAction
    • Constructor Detail

      • ExternalTerminalAction

        public ExternalTerminalAction()
    • Method Detail

      • actionType

        public ExternalTerminalAction actionType​(String actionType)
        The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**.
        Parameters:
        actionType -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getActionType

        public String getActionType()
        The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**.
        Returns:
        actionType
      • setActionType

        public void setActionType​(String actionType)
        The type of terminal action: **InstallAndroidApp**, **UninstallAndroidApp**, **InstallAndroidCertificate**, or **UninstallAndroidCertificate**.
        Parameters:
        actionType -
      • config

        public ExternalTerminalAction config​(String config)
        Technical information about the terminal action.
        Parameters:
        config -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getConfig

        public String getConfig()
        Technical information about the terminal action.
        Returns:
        config
      • setConfig

        public void setConfig​(String config)
        Technical information about the terminal action.
        Parameters:
        config -
      • confirmedAt

        public ExternalTerminalAction confirmedAt​(OffsetDateTime confirmedAt)
        The date and time when the action was carried out.
        Parameters:
        confirmedAt -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getConfirmedAt

        public OffsetDateTime getConfirmedAt()
        The date and time when the action was carried out.
        Returns:
        confirmedAt
      • setConfirmedAt

        public void setConfirmedAt​(OffsetDateTime confirmedAt)
        The date and time when the action was carried out.
        Parameters:
        confirmedAt -
      • id

        public ExternalTerminalAction id​(String id)
        The unique ID of the terminal action.
        Parameters:
        id -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getId

        public String getId()
        The unique ID of the terminal action.
        Returns:
        id
      • setId

        public void setId​(String id)
        The unique ID of the terminal action.
        Parameters:
        id -
      • result

        public ExternalTerminalAction result​(String result)
        The result message for the action.
        Parameters:
        result -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getResult

        public String getResult()
        The result message for the action.
        Returns:
        result
      • setResult

        public void setResult​(String result)
        The result message for the action.
        Parameters:
        result -
      • scheduledAt

        public ExternalTerminalAction scheduledAt​(OffsetDateTime scheduledAt)
        The date and time when the action was scheduled to happen.
        Parameters:
        scheduledAt -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getScheduledAt

        public OffsetDateTime getScheduledAt()
        The date and time when the action was scheduled to happen.
        Returns:
        scheduledAt
      • setScheduledAt

        public void setScheduledAt​(OffsetDateTime scheduledAt)
        The date and time when the action was scheduled to happen.
        Parameters:
        scheduledAt -
      • status

        public ExternalTerminalAction status​(String status)
        The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**.
        Parameters:
        status -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getStatus

        public String getStatus()
        The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**.
        Returns:
        status
      • setStatus

        public void setStatus​(String status)
        The status of the terminal action: **pending**, **successful**, **failed**, **cancelled**, or **tryLater**.
        Parameters:
        status -
      • terminalId

        public ExternalTerminalAction terminalId​(String terminalId)
        The unique ID of the terminal that the action applies to.
        Parameters:
        terminalId -
        Returns:
        the current ExternalTerminalAction instance, allowing for method chaining
      • getTerminalId

        public String getTerminalId()
        The unique ID of the terminal that the action applies to.
        Returns:
        terminalId
      • setTerminalId

        public void setTerminalId​(String terminalId)
        The unique ID of the terminal that the action applies to.
        Parameters:
        terminalId -
      • equals

        public boolean equals​(Object o)
        Return true if this ExternalTerminalAction object is equal to o.
        Overrides:
        equals in class Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object
      • fromJson

        public static ExternalTerminalAction fromJson​(String jsonString)
                                               throws com.fasterxml.jackson.core.JsonProcessingException
        Create an instance of ExternalTerminalAction given an JSON string
        Parameters:
        jsonString - JSON string
        Returns:
        An instance of ExternalTerminalAction
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException - if the JSON string is invalid with respect to ExternalTerminalAction
      • toJson

        public String toJson()
                      throws com.fasterxml.jackson.core.JsonProcessingException
        Convert an instance of ExternalTerminalAction to an JSON string
        Returns:
        JSON string
        Throws:
        com.fasterxml.jackson.core.JsonProcessingException