Record Class AhpSessionResumeRequest
java.lang.Object
java.lang.Record
com.github.copilot.AhpSessionResumeRequest
- Record Components:
sessionId- durable session identity to resumeconfig- host-selected resume settingscancellation- completes normally when the participation ends
@CopilotExperimental
public record AhpSessionResumeRequest(String sessionId, ResumeSessionConfig config, CompletionStage<Void> cancellation)
extends Record
An application-owned durable AHP session resume request. Reattach application
callbacks using the supplied settings, or return the exact retained session.
-
Constructor Summary
ConstructorsConstructorDescriptionAhpSessionResumeRequest(String sessionId, ResumeSessionConfig config, CompletionStage<Void> cancellation) Creates an instance of aAhpSessionResumeRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecancellationrecord component.config()Returns the value of theconfigrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AhpSessionResumeRequest
public AhpSessionResumeRequest(String sessionId, ResumeSessionConfig config, CompletionStage<Void> cancellation) Creates an instance of aAhpSessionResumeRequestrecord class.- Parameters:
sessionId- the value for thesessionIdrecord componentconfig- the value for theconfigrecord componentcancellation- the value for thecancellationrecord 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). -
sessionId
-
config
-
cancellation
Returns the value of thecancellationrecord component.- Returns:
- the value of the
cancellationrecord component
-