Record Class WorkflowRunTerminal
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.WorkflowRunTerminal
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record WorkflowRunTerminal(String reason, Object failure, String error, String resultPreview, Object pauseInfo)
extends Record
Prompt-safe terminal workflow outcome.
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.failure()Returns the value of thefailurerecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thepauseInforecord component.reason()Returns the value of thereasonrecord component.Returns the value of theresultPreviewrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
WorkflowRunTerminal
public WorkflowRunTerminal(String reason, Object failure, String error, String resultPreview, Object pauseInfo) Creates an instance of aWorkflowRunTerminalrecord class.- Parameters:
reason- the value for thereasonrecord componentfailure- the value for thefailurerecord componenterror- the value for theerrorrecord componentresultPreview- the value for theresultPreviewrecord componentpauseInfo- the value for thepauseInforecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
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. All components in this record class are compared withObjects::equals(Object,Object). -
reason
Returns the value of thereasonrecord component.- Returns:
- the value of the
reasonrecord component
-
failure
Returns the value of thefailurerecord component.- Returns:
- the value of the
failurerecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-
resultPreview
Returns the value of theresultPreviewrecord component.- Returns:
- the value of the
resultPreviewrecord component
-
pauseInfo
Returns the value of thepauseInforecord component.- Returns:
- the value of the
pauseInforecord component
-