Record Class CodePoolExecutorService.TaskResponse

java.lang.Object
java.lang.Record
com.alibaba.cloud.ai.service.code.CodePoolExecutorService.TaskResponse
Enclosing interface:
CodePoolExecutorService

public static record CodePoolExecutorService.TaskResponse(boolean isSuccess, String stdOut, String stdErr, String exceptionMsg) extends Record
  • Constructor Details

    • TaskResponse

      public TaskResponse(boolean isSuccess, String stdOut, String stdErr, String exceptionMsg)
      Creates an instance of a TaskResponse record class.
      Parameters:
      isSuccess - the value for the isSuccess record component
      stdOut - the value for the stdOut record component
      stdErr - the value for the stdErr record component
      exceptionMsg - the value for the exceptionMsg record component
  • Method Details

    • error

      public static CodePoolExecutorService.TaskResponse error(String msg)
    • toString

      public String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • isSuccess

      public boolean isSuccess()
      Returns the value of the isSuccess record component.
      Returns:
      the value of the isSuccess record component
    • stdOut

      public String stdOut()
      Returns the value of the stdOut record component.
      Returns:
      the value of the stdOut record component
    • stdErr

      public String stdErr()
      Returns the value of the stdErr record component.
      Returns:
      the value of the stdErr record component
    • exceptionMsg

      public String exceptionMsg()
      Returns the value of the exceptionMsg record component.
      Returns:
      the value of the exceptionMsg record component