Record Class AutopilotObjectiveState
java.lang.Object
java.lang.Record
com.github.copilot.generated.rpc.AutopilotObjectiveState
@CopilotExperimental
@Generated("copilot-sdk-codegen")
public record AutopilotObjectiveState(Long id, String objective, AutopilotObjectiveStatus status, Long turnCount, String pauseReason, String completionSummary, String creditCountNanoAiu, AutopilotObjectiveCreditLimit creditLimit)
extends Record
Public, persistence-independent projection of an autopilot objective.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionAutopilotObjectiveState(Long id, String objective, AutopilotObjectiveStatus status, Long turnCount, String pauseReason, String completionSummary, String creditCountNanoAiu, AutopilotObjectiveCreditLimit creditLimit) Creates an instance of aAutopilotObjectiveStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecompletionSummaryrecord component.Returns the value of thecreditCountNanoAiurecord component.Returns the value of thecreditLimitrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of theobjectiverecord component.Returns the value of thepauseReasonrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theturnCountrecord component.
-
Constructor Details
-
AutopilotObjectiveState
public AutopilotObjectiveState(Long id, String objective, AutopilotObjectiveStatus status, Long turnCount, String pauseReason, String completionSummary, String creditCountNanoAiu, AutopilotObjectiveCreditLimit creditLimit) Creates an instance of aAutopilotObjectiveStaterecord class.- Parameters:
id- the value for theidrecord componentobjective- the value for theobjectiverecord componentstatus- the value for thestatusrecord componentturnCount- the value for theturnCountrecord componentpauseReason- the value for thepauseReasonrecord componentcompletionSummary- the value for thecompletionSummaryrecord componentcreditCountNanoAiu- the value for thecreditCountNanoAiurecord componentcreditLimit- the value for thecreditLimitrecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
objective
Returns the value of theobjectiverecord component.- Returns:
- the value of the
objectiverecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
turnCount
Returns the value of theturnCountrecord component.- Returns:
- the value of the
turnCountrecord component
-
pauseReason
Returns the value of thepauseReasonrecord component.- Returns:
- the value of the
pauseReasonrecord component
-
completionSummary
Returns the value of thecompletionSummaryrecord component.- Returns:
- the value of the
completionSummaryrecord component
-
creditCountNanoAiu
Returns the value of thecreditCountNanoAiurecord component.- Returns:
- the value of the
creditCountNanoAiurecord component
-
creditLimit
Returns the value of thecreditLimitrecord component.- Returns:
- the value of the
creditLimitrecord component
-