Record Class ApprovalService.Decision
java.lang.Object
java.lang.Record
zeroecho.pki.server.ApprovalService.Decision
- Record Components:
principalId- deciding principal identifierchoice- approval or rejectionjustification- bounded operator justificationdecidedAt- server-authoritative decision time
- Enclosing class:
ApprovalService
public static record ApprovalService.Decision(String principalId, ApprovalService.Choice choice, String justification, Instant decidedAt)
extends Record
One attributable immutable decision.
-
Constructor Summary
ConstructorsConstructorDescriptionDecision(String principalId, ApprovalService.Choice choice, String justification, Instant decidedAt) Validates the decision. -
Method Summary
Modifier and TypeMethodDescriptionchoice()Returns the value of thechoicerecord component.Returns the value of thedecidedAtrecord 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 thejustificationrecord component.Returns the value of theprincipalIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Decision
public Decision(String principalId, ApprovalService.Choice choice, String justification, Instant decidedAt) Validates the decision.
-
-
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). -
principalId
Returns the value of theprincipalIdrecord component.- Returns:
- the value of the
principalIdrecord component
-
choice
-
justification
Returns the value of thejustificationrecord component.- Returns:
- the value of the
justificationrecord component
-
decidedAt
-