Record Class SkillPromoter.PromotionResult
java.lang.Object
java.lang.Record
io.agentscope.harness.agent.skill.curator.SkillPromoter.PromotionResult
- Enclosing class:
- SkillPromoter
public static record SkillPromoter.PromotionResult(SkillPromoter.PromotionResult.Status status, String message, List<String> environments, String reviewerId, SkillSecurityScanner.ScanResult scan)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionPromotionResult(SkillPromoter.PromotionResult.Status status, String message, List<String> environments, String reviewerId, SkillSecurityScanner.ScanResult scan) Creates an instance of aPromotionResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionapproved(String reviewerId, List<String> environments, SkillSecurityScanner.ScanResult scan) Returns the value of theenvironmentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.message()Returns the value of themessagerecord component.rejected(String reason, SkillSecurityScanner.ScanResult scan) Returns the value of thereviewerIdrecord component.scan()Returns the value of thescanrecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
PromotionResult
public PromotionResult(SkillPromoter.PromotionResult.Status status, String message, List<String> environments, String reviewerId, SkillSecurityScanner.ScanResult scan) Creates an instance of aPromotionResultrecord class.- Parameters:
status- the value for thestatusrecord componentmessage- the value for themessagerecord componentenvironments- the value for theenvironmentsrecord componentreviewerId- the value for thereviewerIdrecord componentscan- the value for thescanrecord component
-
-
Method Details
-
approved
public static SkillPromoter.PromotionResult approved(String reviewerId, List<String> environments, SkillSecurityScanner.ScanResult scan) -
deferred
-
rejected
public static SkillPromoter.PromotionResult rejected(String reason, SkillSecurityScanner.ScanResult scan) -
invalid
-
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. All components in this record class are compared withObjects::equals(Object,Object). -
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
message
Returns the value of themessagerecord component.- Returns:
- the value of the
messagerecord component
-
environments
Returns the value of theenvironmentsrecord component.- Returns:
- the value of the
environmentsrecord component
-
reviewerId
Returns the value of thereviewerIdrecord component.- Returns:
- the value of the
reviewerIdrecord component
-
scan
Returns the value of thescanrecord component.- Returns:
- the value of the
scanrecord component
-