Record Class PendingApprovalMcpTools.PendingApproval
java.lang.Object
java.lang.Record
io.jenkins.plugins.github_pr_approval.PendingApprovalMcpTools.PendingApproval
- Enclosing class:
PendingApprovalMcpTools
-
Constructor Summary
ConstructorsConstructorDescriptionPendingApproval(String jobFullName, int prNumber, String prAuthor, String currentPullHash, boolean requireApprovalForNewCommits, String url) Creates an instance of aPendingApprovalrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecurrentPullHashrecord 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.booleanReturns the value of therequireApprovalForNewCommitsrecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
PendingApproval
public PendingApproval(String jobFullName, int prNumber, String prAuthor, @CheckForNull String currentPullHash, boolean requireApprovalForNewCommits, String url) Creates an instance of aPendingApprovalrecord class.- Parameters:
jobFullName- the value for thejobFullNamerecord componentprNumber- the value for theprNumberrecord componentprAuthor- the value for theprAuthorrecord componentcurrentPullHash- the value for thecurrentPullHashrecord componentrequireApprovalForNewCommits- the value for therequireApprovalForNewCommitsrecord componenturl- the value for theurlrecord 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
-
currentPullHash
Returns the value of thecurrentPullHashrecord component.- Returns:
- the value of the
currentPullHashrecord component
-
requireApprovalForNewCommits
public boolean requireApprovalForNewCommits()Returns the value of therequireApprovalForNewCommitsrecord component.- Returns:
- the value of the
requireApprovalForNewCommitsrecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-