Record Class CollaborationClient.RuntimeApprovalDecision
java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.transport.CollaborationClient.RuntimeApprovalDecision
- Enclosing class:
- CollaborationClient
-
Constructor Summary
ConstructorsConstructorDescriptionRuntimeApprovalDecision(String approvalId, long decisionVersion, boolean allow, String denyMessage) Creates an instance of aRuntimeApprovalDecisionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanallow()Returns the value of theallowrecord component.Returns the value of theapprovalIdrecord component.longReturns the value of thedecisionVersionrecord component.Returns the value of thedenyMessagerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RuntimeApprovalDecision
public RuntimeApprovalDecision(String approvalId, long decisionVersion, boolean allow, String denyMessage) Creates an instance of aRuntimeApprovalDecisionrecord class.- Parameters:
approvalId- the value for theapprovalIdrecord componentdecisionVersion- the value for thedecisionVersionrecord componentallow- the value for theallowrecord componentdenyMessage- the value for thedenyMessagerecord component
-
-
Method Details
-
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. -
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. -
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
approvalId
Returns the value of theapprovalIdrecord component.- Returns:
- the value of the
approvalIdrecord component
-
decisionVersion
public long decisionVersion()Returns the value of thedecisionVersionrecord component.- Returns:
- the value of the
decisionVersionrecord component
-
allow
public boolean allow()Returns the value of theallowrecord component.- Returns:
- the value of the
allowrecord component
-
denyMessage
Returns the value of thedenyMessagerecord component.- Returns:
- the value of the
denyMessagerecord component
-