Record Class PendingApprovalMcpTools.ApprovalResult
java.lang.Object
java.lang.Record
io.jenkins.plugins.github_pr_approval.PendingApprovalMcpTools.ApprovalResult
- Enclosing class:
PendingApprovalMcpTools
-
Constructor Summary
ConstructorsConstructorDescriptionApprovalResult(String jobFullName, int prNumber, String prAuthor, boolean approved, boolean authorAutoApprovalAdded) Creates an instance of aApprovalResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanapproved()Returns the value of theapprovedrecord component.booleanReturns the value of theauthorAutoApprovalAddedrecord 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 thejobFullNamerecord component.prAuthor()Returns the value of theprAuthorrecord component.intprNumber()Returns the value of theprNumberrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ApprovalResult
public ApprovalResult(String jobFullName, int prNumber, String prAuthor, boolean approved, boolean authorAutoApprovalAdded) Creates an instance of aApprovalResultrecord class.- Parameters:
jobFullName- the value for thejobFullNamerecord componentprNumber- the value for theprNumberrecord componentprAuthor- the value for theprAuthorrecord componentapproved- the value for theapprovedrecord componentauthorAutoApprovalAdded- the value for theauthorAutoApprovalAddedrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
jobFullName
Returns the value of thejobFullNamerecord component.- Returns:
- the value of the
jobFullNamerecord component
-
prNumber
public int prNumber()Returns the value of theprNumberrecord component.- Returns:
- the value of the
prNumberrecord component
-
prAuthor
Returns the value of theprAuthorrecord component.- Returns:
- the value of the
prAuthorrecord component
-
approved
public boolean approved()Returns the value of theapprovedrecord component.- Returns:
- the value of the
approvedrecord component
-
authorAutoApprovalAdded
public boolean authorAutoApprovalAdded()Returns the value of theauthorAutoApprovalAddedrecord component.- Returns:
- the value of the
authorAutoApprovalAddedrecord component
-