Class Output


  • public class Output
    extends Input
    A class stores the generic inference results.
    • Constructor Detail

      • Output

        public Output()
        Constructs a Output instance.
      • Output

        public Output​(int code,
                      java.lang.String message)
        Constructs a Output with specified requestId, code and message.
        Parameters:
        code - the status code of the output
        message - the status message of the output
    • Method Detail

      • getCode

        public int getCode()
        Returns the status code of the output.
        Returns:
        the status code of the output
      • setCode

        public void setCode​(int code)
        Sets the status code of the output.
        Parameters:
        code - the status code of the output
      • getMessage

        public java.lang.String getMessage()
        Returns the status code of the output.
        Returns:
        the status code of the output
      • setMessage

        public void setMessage​(java.lang.String message)
        Sets the status message of the output.
        Parameters:
        message - the status message of the output