Record Class PullRequestDto
java.lang.Object
java.lang.Record
com.codebarrel.automation.api.devops.schema.PullRequestDto
public record PullRequestDto(String id, String title, URL url, String state, Instant updatedDate, int commentCount, BranchReferenceDto sourceBranch, BranchReferenceDto destinationBranch, Instant createdDate, UserReferenceDto author)
extends Record
Mirror class for com.atlassian.devops.schemas.pullrequest.PullRequest.
Used for Jackson 3 deserialization since the original library uses Jackson 2.
-
Constructor Summary
ConstructorsConstructorDescriptionPullRequestDto(String id, String title, URL url, String state, Instant updatedDate, int commentCount, BranchReferenceDto sourceBranch, BranchReferenceDto destinationBranch, Instant createdDate, UserReferenceDto author) Creates an instance of aPullRequestDtorecord class. -
Method Summary
Modifier and TypeMethodDescriptionauthor()Returns the value of theauthorrecord component.intReturns the value of thecommentCountrecord component.Returns the value of thecreatedDaterecord component.Returns the value of thedestinationBranchrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.id()Returns the value of theidrecord component.Returns the value of thesourceBranchrecord component.state()Returns the value of thestaterecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theupdatedDaterecord component.url()Returns the value of theurlrecord component.
-
Constructor Details
-
PullRequestDto
public PullRequestDto(String id, String title, URL url, String state, Instant updatedDate, int commentCount, BranchReferenceDto sourceBranch, BranchReferenceDto destinationBranch, Instant createdDate, UserReferenceDto author) Creates an instance of aPullRequestDtorecord class.- Parameters:
id- the value for theidrecord componenttitle- the value for thetitlerecord componenturl- the value for theurlrecord componentstate- the value for thestaterecord componentupdatedDate- the value for theupdatedDaterecord componentcommentCount- the value for thecommentCountrecord componentsourceBranch- the value for thesourceBranchrecord componentdestinationBranch- the value for thedestinationBranchrecord componentcreatedDate- the value for thecreatedDaterecord componentauthor- the value for theauthorrecord 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 '=='. -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
title
Returns the value of thetitlerecord component.- Returns:
- the value of the
titlerecord component
-
url
Returns the value of theurlrecord component.- Returns:
- the value of the
urlrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
updatedDate
Returns the value of theupdatedDaterecord component.- Returns:
- the value of the
updatedDaterecord component
-
commentCount
public int commentCount()Returns the value of thecommentCountrecord component.- Returns:
- the value of the
commentCountrecord component
-
sourceBranch
Returns the value of thesourceBranchrecord component.- Returns:
- the value of the
sourceBranchrecord component
-
destinationBranch
Returns the value of thedestinationBranchrecord component.- Returns:
- the value of the
destinationBranchrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
author
Returns the value of theauthorrecord component.- Returns:
- the value of the
authorrecord component
-