Package com.spotify.github.v3.prs
Class ImmutablePullRequestItem
- java.lang.Object
-
- com.spotify.github.v3.prs.ImmutablePullRequestItem
-
- All Implemented Interfaces:
CloseTracking,UpdateTracking,PullRequestItem
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePullRequestItem extends Object implements PullRequestItem
Immutable implementation ofPullRequestItem.Use the builder to create immutable instances:
ImmutablePullRequestItem.builder().
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classImmutablePullRequestItem.BuilderBuilds instances of typeImmutablePullRequestItem.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<User>assignee()Assignee.Optional<List<User>>assignees()Assignees.PullRequestRefbase()Base reference.Optional<String>body()The contents of the pull request.static ImmutablePullRequestItem.Builderbuilder()Creates a builder forImmutablePullRequestItem.Optional<GitHubInstant>closedAt()Closed date.URIcommentsUrl()Comments API URL.URIcommitsUrl()Commits URL.static ImmutablePullRequestItemcopyOf(PullRequestItem instance)Creates an immutable copy of aPullRequestItemvalue.GitHubInstantcreatedAt()Created dateURIdiffUrl()Diff URL.booleanequals(Object another)This instance is equal to all instances ofImmutablePullRequestItemthat have equal attribute values.inthashCode()Computes a hash code from attributes:createdAt,updatedAt,closedAt,id,url,htmlUrl,diffUrl,patchUrl,issueUrl,commitsUrl,number,state,title,body,assignee,assignees,milestone,locked,mergedAt,head,base,user,statusesUrl,reviewCommentsUrl,reviewCommentUrl,commentsUrl,links,requestedReviewers,requestedTeams,mergeCommitSha.PullRequestRefhead()Head reference.URIhtmlUrl()HTML URL.Longid()ID.URIissueUrl()Issue URL.PullRequestLinkslinks()Link references.Booleanlocked()Is it locked.Optional<String>mergeCommitSha()Optional<GitHubInstant>mergedAt()Merged date.Optional<Milestone>milestone()Milestone.Integernumber()Number.URIpatchUrl()Patch URL.List<User>requestedReviewers()Requested reviewers (users)List<User>requestedTeams()Requested reviewers (teams)URIreviewCommentsUrl()Review comments API URL.StringreviewCommentUrl()Review comment API URL template.Stringstate()Either open, closed, or all to filter by state.URIstatusesUrl()Statuses API URL.Stringtitle()The title of the pull request.StringtoString()Prints the immutable valuePullRequestItemwith attribute values.GitHubInstantupdatedAt()Updated dateURIurl()URL.Useruser()User.ImmutablePullRequestItemwithAssignee(User value)Copy the current immutable object by setting a present value for the optionalassigneeattribute.ImmutablePullRequestItemwithAssignee(Optional<? extends User> optional)Copy the current immutable object by setting an optional value for theassigneeattribute.ImmutablePullRequestItemwithAssignees(List<User> value)Copy the current immutable object by setting a present value for the optionalassigneesattribute.ImmutablePullRequestItemwithAssignees(Optional<? extends List<User>> optional)Copy the current immutable object by setting an optional value for theassigneesattribute.ImmutablePullRequestItemwithBase(PullRequestRef value)Copy the current immutable object by setting a value for thebaseattribute.ImmutablePullRequestItemwithBody(String value)Copy the current immutable object by setting a present value for the optionalbodyattribute.ImmutablePullRequestItemwithBody(Optional<String> optional)Copy the current immutable object by setting an optional value for thebodyattribute.ImmutablePullRequestItemwithClosedAt(GitHubInstant value)Copy the current immutable object by setting a present value for the optionalclosedAtattribute.ImmutablePullRequestItemwithClosedAt(Optional<? extends GitHubInstant> optional)Copy the current immutable object by setting an optional value for theclosedAtattribute.ImmutablePullRequestItemwithCommentsUrl(URI value)Copy the current immutable object by setting a value for thecommentsUrlattribute.ImmutablePullRequestItemwithCommitsUrl(URI value)Copy the current immutable object by setting a value for thecommitsUrlattribute.ImmutablePullRequestItemwithCreatedAt(GitHubInstant value)Copy the current immutable object by setting a value for thecreatedAtattribute.ImmutablePullRequestItemwithDiffUrl(URI value)Copy the current immutable object by setting a value for thediffUrlattribute.ImmutablePullRequestItemwithHead(PullRequestRef value)Copy the current immutable object by setting a value for theheadattribute.ImmutablePullRequestItemwithHtmlUrl(URI value)Copy the current immutable object by setting a value for thehtmlUrlattribute.ImmutablePullRequestItemwithId(Long value)Copy the current immutable object by setting a value for theidattribute.ImmutablePullRequestItemwithIssueUrl(URI value)Copy the current immutable object by setting a value for theissueUrlattribute.ImmutablePullRequestItemwithLinks(PullRequestLinks value)Copy the current immutable object by setting a value for thelinksattribute.ImmutablePullRequestItemwithLocked(Boolean value)Copy the current immutable object by setting a value for thelockedattribute.ImmutablePullRequestItemwithMergeCommitSha(String value)Copy the current immutable object by setting a present value for the optionalmergeCommitShaattribute.ImmutablePullRequestItemwithMergeCommitSha(Optional<String> optional)Copy the current immutable object by setting an optional value for themergeCommitShaattribute.ImmutablePullRequestItemwithMergedAt(GitHubInstant value)Copy the current immutable object by setting a present value for the optionalmergedAtattribute.ImmutablePullRequestItemwithMergedAt(Optional<? extends GitHubInstant> optional)Copy the current immutable object by setting an optional value for themergedAtattribute.ImmutablePullRequestItemwithMilestone(Milestone value)Copy the current immutable object by setting a present value for the optionalmilestoneattribute.ImmutablePullRequestItemwithMilestone(Optional<? extends Milestone> optional)Copy the current immutable object by setting an optional value for themilestoneattribute.ImmutablePullRequestItemwithNumber(Integer value)Copy the current immutable object by setting a value for thenumberattribute.ImmutablePullRequestItemwithPatchUrl(URI value)Copy the current immutable object by setting a value for thepatchUrlattribute.ImmutablePullRequestItemwithRequestedReviewers(User... elements)Copy the current immutable object with elements that replace the content ofrequestedReviewers.ImmutablePullRequestItemwithRequestedReviewers(Iterable<? extends User> elements)Copy the current immutable object with elements that replace the content ofrequestedReviewers.ImmutablePullRequestItemwithRequestedTeams(User... elements)Copy the current immutable object with elements that replace the content ofrequestedTeams.ImmutablePullRequestItemwithRequestedTeams(Iterable<? extends User> elements)Copy the current immutable object with elements that replace the content ofrequestedTeams.ImmutablePullRequestItemwithReviewCommentsUrl(URI value)Copy the current immutable object by setting a value for thereviewCommentsUrlattribute.ImmutablePullRequestItemwithReviewCommentUrl(String value)Copy the current immutable object by setting a value for thereviewCommentUrlattribute.ImmutablePullRequestItemwithState(String value)Copy the current immutable object by setting a value for thestateattribute.ImmutablePullRequestItemwithStatusesUrl(URI value)Copy the current immutable object by setting a value for thestatusesUrlattribute.ImmutablePullRequestItemwithTitle(String value)Copy the current immutable object by setting a value for thetitleattribute.ImmutablePullRequestItemwithUpdatedAt(GitHubInstant value)Copy the current immutable object by setting a value for theupdatedAtattribute.ImmutablePullRequestItemwithUrl(URI value)Copy the current immutable object by setting a value for theurlattribute.ImmutablePullRequestItemwithUser(User value)Copy the current immutable object by setting a value for theuserattribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAtin interfaceUpdateTracking- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAtin interfaceUpdateTracking- Returns:
- The date when the issue was updated
-
closedAt
public Optional<GitHubInstant> closedAt()
Closed date.- Specified by:
closedAtin interfaceCloseTracking- Returns:
- The date when the issue was closed
-
id
@Nullable public Long id()
ID.- Specified by:
idin interfacePullRequestItem
-
url
@Nullable public URI url()
URL.- Specified by:
urlin interfacePullRequestItem
-
htmlUrl
@Nullable public URI htmlUrl()
HTML URL.- Specified by:
htmlUrlin interfacePullRequestItem
-
diffUrl
@Nullable public URI diffUrl()
Diff URL.- Specified by:
diffUrlin interfacePullRequestItem
-
patchUrl
@Nullable public URI patchUrl()
Patch URL.- Specified by:
patchUrlin interfacePullRequestItem
-
issueUrl
@Nullable public URI issueUrl()
Issue URL.- Specified by:
issueUrlin interfacePullRequestItem
-
commitsUrl
@Nullable public URI commitsUrl()
Commits URL.- Specified by:
commitsUrlin interfacePullRequestItem
-
number
@Nullable public Integer number()
Number.- Specified by:
numberin interfacePullRequestItem
-
state
@Nullable public String state()
Either open, closed, or all to filter by state. Default: open.- Specified by:
statein interfacePullRequestItem
-
title
@Nullable public String title()
The title of the pull request.- Specified by:
titlein interfacePullRequestItem
-
body
public Optional<String> body()
The contents of the pull request.- Specified by:
bodyin interfacePullRequestItem
-
assignee
public Optional<User> assignee()
Assignee.- Specified by:
assigneein interfacePullRequestItem
-
assignees
public Optional<List<User>> assignees()
Assignees.- Specified by:
assigneesin interfacePullRequestItem
-
milestone
public Optional<Milestone> milestone()
Milestone.- Specified by:
milestonein interfacePullRequestItem
-
locked
@Nullable public Boolean locked()
Is it locked.- Specified by:
lockedin interfacePullRequestItem
-
mergedAt
public Optional<GitHubInstant> mergedAt()
Merged date.- Specified by:
mergedAtin interfacePullRequestItem
-
head
@Nullable public PullRequestRef head()
Head reference.- Specified by:
headin interfacePullRequestItem
-
base
@Nullable public PullRequestRef base()
Base reference.- Specified by:
basein interfacePullRequestItem
-
user
@Nullable public User user()
User.- Specified by:
userin interfacePullRequestItem
-
statusesUrl
@Nullable public URI statusesUrl()
Statuses API URL.- Specified by:
statusesUrlin interfacePullRequestItem
-
reviewCommentsUrl
@Nullable public URI reviewCommentsUrl()
Review comments API URL.- Specified by:
reviewCommentsUrlin interfacePullRequestItem
-
reviewCommentUrl
@Nullable public String reviewCommentUrl()
Review comment API URL template.- Specified by:
reviewCommentUrlin interfacePullRequestItem
-
commentsUrl
@Nullable public URI commentsUrl()
Comments API URL.- Specified by:
commentsUrlin interfacePullRequestItem
-
links
@Nullable public PullRequestLinks links()
Link references.- Specified by:
linksin interfacePullRequestItem
-
requestedReviewers
@Nullable public List<User> requestedReviewers()
Requested reviewers (users)- Specified by:
requestedReviewersin interfacePullRequestItem
-
requestedTeams
@Nullable public List<User> requestedTeams()
Requested reviewers (teams)- Specified by:
requestedTeamsin interfacePullRequestItem
-
mergeCommitSha
public Optional<String> mergeCommitSha()
- Specified by:
mergeCommitShain interfacePullRequestItem
-
withCreatedAt
public final ImmutablePullRequestItem withCreatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for createdAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withUpdatedAt
public final ImmutablePullRequestItem withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAtattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for updatedAt (can benull)- Returns:
- A modified copy of the
thisobject
-
withClosedAt
public final ImmutablePullRequestItem withClosedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalclosedAtattribute.- Parameters:
value- The value for closedAt- Returns:
- A modified copy of
thisobject
-
withClosedAt
public final ImmutablePullRequestItem withClosedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for theclosedAtattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for closedAt- Returns:
- A modified copy of
thisobject
-
withId
public final ImmutablePullRequestItem withId(@Nullable Long value)
Copy the current immutable object by setting a value for theidattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for id (can benull)- Returns:
- A modified copy of the
thisobject
-
withUrl
public final ImmutablePullRequestItem withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for url (can benull)- Returns:
- A modified copy of the
thisobject
-
withHtmlUrl
public final ImmutablePullRequestItem withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for htmlUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withDiffUrl
public final ImmutablePullRequestItem withDiffUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thediffUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for diffUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withPatchUrl
public final ImmutablePullRequestItem withPatchUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thepatchUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for patchUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withIssueUrl
public final ImmutablePullRequestItem withIssueUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theissueUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for issueUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommitsUrl
public final ImmutablePullRequestItem withCommitsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecommitsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commitsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withNumber
public final ImmutablePullRequestItem withNumber(@Nullable Integer value)
Copy the current immutable object by setting a value for thenumberattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for number (can benull)- Returns:
- A modified copy of the
thisobject
-
withState
public final ImmutablePullRequestItem withState(@Nullable String value)
Copy the current immutable object by setting a value for thestateattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for state (can benull)- Returns:
- A modified copy of the
thisobject
-
withTitle
public final ImmutablePullRequestItem withTitle(@Nullable String value)
Copy the current immutable object by setting a value for thetitleattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for title (can benull)- Returns:
- A modified copy of the
thisobject
-
withBody
public final ImmutablePullRequestItem withBody(String value)
Copy the current immutable object by setting a present value for the optionalbodyattribute.- Parameters:
value- The value for body- Returns:
- A modified copy of
thisobject
-
withBody
public final ImmutablePullRequestItem withBody(Optional<String> optional)
Copy the current immutable object by setting an optional value for thebodyattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for body- Returns:
- A modified copy of
thisobject
-
withAssignee
public final ImmutablePullRequestItem withAssignee(User value)
Copy the current immutable object by setting a present value for the optionalassigneeattribute.- Parameters:
value- The value for assignee- Returns:
- A modified copy of
thisobject
-
withAssignee
public final ImmutablePullRequestItem withAssignee(Optional<? extends User> optional)
Copy the current immutable object by setting an optional value for theassigneeattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for assignee- Returns:
- A modified copy of
thisobject
-
withAssignees
public final ImmutablePullRequestItem withAssignees(List<User> value)
Copy the current immutable object by setting a present value for the optionalassigneesattribute.- Parameters:
value- The value for assignees- Returns:
- A modified copy of
thisobject
-
withAssignees
public final ImmutablePullRequestItem withAssignees(Optional<? extends List<User>> optional)
Copy the current immutable object by setting an optional value for theassigneesattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for assignees- Returns:
- A modified copy of
thisobject
-
withMilestone
public final ImmutablePullRequestItem withMilestone(Milestone value)
Copy the current immutable object by setting a present value for the optionalmilestoneattribute.- Parameters:
value- The value for milestone- Returns:
- A modified copy of
thisobject
-
withMilestone
public final ImmutablePullRequestItem withMilestone(Optional<? extends Milestone> optional)
Copy the current immutable object by setting an optional value for themilestoneattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for milestone- Returns:
- A modified copy of
thisobject
-
withLocked
public final ImmutablePullRequestItem withLocked(@Nullable Boolean value)
Copy the current immutable object by setting a value for thelockedattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for locked (can benull)- Returns:
- A modified copy of the
thisobject
-
withMergedAt
public final ImmutablePullRequestItem withMergedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalmergedAtattribute.- Parameters:
value- The value for mergedAt- Returns:
- A modified copy of
thisobject
-
withMergedAt
public final ImmutablePullRequestItem withMergedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for themergedAtattribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for mergedAt- Returns:
- A modified copy of
thisobject
-
withHead
public final ImmutablePullRequestItem withHead(@Nullable PullRequestRef value)
Copy the current immutable object by setting a value for theheadattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for head (can benull)- Returns:
- A modified copy of the
thisobject
-
withBase
public final ImmutablePullRequestItem withBase(@Nullable PullRequestRef value)
Copy the current immutable object by setting a value for thebaseattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for base (can benull)- Returns:
- A modified copy of the
thisobject
-
withUser
public final ImmutablePullRequestItem withUser(@Nullable User value)
Copy the current immutable object by setting a value for theuserattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for user (can benull)- Returns:
- A modified copy of the
thisobject
-
withStatusesUrl
public final ImmutablePullRequestItem withStatusesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thestatusesUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for statusesUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withReviewCommentsUrl
public final ImmutablePullRequestItem withReviewCommentsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thereviewCommentsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reviewCommentsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withReviewCommentUrl
public final ImmutablePullRequestItem withReviewCommentUrl(@Nullable String value)
Copy the current immutable object by setting a value for thereviewCommentUrlattribute. An equals check used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for reviewCommentUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withCommentsUrl
public final ImmutablePullRequestItem withCommentsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecommentsUrlattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for commentsUrl (can benull)- Returns:
- A modified copy of the
thisobject
-
withLinks
public final ImmutablePullRequestItem withLinks(@Nullable PullRequestLinks value)
Copy the current immutable object by setting a value for thelinksattribute. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
value- A new value for links (can benull)- Returns:
- A modified copy of the
thisobject
-
withRequestedReviewers
public final ImmutablePullRequestItem withRequestedReviewers(@Nullable User... elements)
Copy the current immutable object with elements that replace the content ofrequestedReviewers.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequestedReviewers
public final ImmutablePullRequestItem withRequestedReviewers(@Nullable Iterable<? extends User> elements)
Copy the current immutable object with elements that replace the content ofrequestedReviewers. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requestedReviewers elements to set- Returns:
- A modified copy of
thisobject
-
withRequestedTeams
public final ImmutablePullRequestItem withRequestedTeams(@Nullable User... elements)
Copy the current immutable object with elements that replace the content ofrequestedTeams.- Parameters:
elements- The elements to set- Returns:
- A modified copy of
thisobject
-
withRequestedTeams
public final ImmutablePullRequestItem withRequestedTeams(@Nullable Iterable<? extends User> elements)
Copy the current immutable object with elements that replace the content ofrequestedTeams. A shallow reference equality check is used to prevent copying of the same value by returningthis.- Parameters:
elements- An iterable of requestedTeams elements to set- Returns:
- A modified copy of
thisobject
-
withMergeCommitSha
public final ImmutablePullRequestItem withMergeCommitSha(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitShaattribute.- Parameters:
value- The value for mergeCommitSha- Returns:
- A modified copy of
thisobject
-
withMergeCommitSha
public final ImmutablePullRequestItem withMergeCommitSha(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitShaattribute. An equality check is used on inner nullable value to prevent copying of the same value by returningthis.- Parameters:
optional- A value for mergeCommitSha- Returns:
- A modified copy of
thisobject
-
equals
public boolean equals(@Nullable Object another)This instance is equal to all instances ofImmutablePullRequestItemthat have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:createdAt,updatedAt,closedAt,id,url,htmlUrl,diffUrl,patchUrl,issueUrl,commitsUrl,number,state,title,body,assignee,assignees,milestone,locked,mergedAt,head,base,user,statusesUrl,reviewCommentsUrl,reviewCommentUrl,commentsUrl,links,requestedReviewers,requestedTeams,mergeCommitSha.
-
toString
public String toString()
Prints the immutable valuePullRequestItemwith attribute values.
-
copyOf
public static ImmutablePullRequestItem copyOf(PullRequestItem instance)
Creates an immutable copy of aPullRequestItemvalue. Uses accessors to get values to initialize the new immutable instance. If an instance is already immutable, it is returned as is.- Parameters:
instance- The instance to copy- Returns:
- A copied immutable PullRequestItem instance
-
builder
public static ImmutablePullRequestItem.Builder builder()
Creates a builder forImmutablePullRequestItem.ImmutablePullRequestItem.builder() .createdAt(com.spotify.github.GitHubInstant | null) // nullablecreatedAt.updatedAt(com.spotify.github.GitHubInstant | null) // nullableupdatedAt.closedAt(com.spotify.github.GitHubInstant) // optionalclosedAt.id(Long | null) // nullableid.url(java.net.URI | null) // nullableurl.htmlUrl(java.net.URI | null) // nullablehtmlUrl.diffUrl(java.net.URI | null) // nullablediffUrl.patchUrl(java.net.URI | null) // nullablepatchUrl.issueUrl(java.net.URI | null) // nullableissueUrl.commitsUrl(java.net.URI | null) // nullablecommitsUrl.number(Integer | null) // nullablenumber.state(String | null) // nullablestate.title(String | null) // nullabletitle.body(String) // optionalbody.assignee(com.spotify.github.v3.User) // optionalassignee.assignees(List<com.spotify.github.v3.User>) // optionalassignees.milestone(com.spotify.github.v3.Milestone) // optionalmilestone.locked(Boolean | null) // nullablelocked.mergedAt(com.spotify.github.GitHubInstant) // optionalmergedAt.head(com.spotify.github.v3.prs.PullRequestRef | null) // nullablehead.base(com.spotify.github.v3.prs.PullRequestRef | null) // nullablebase.user(com.spotify.github.v3.User | null) // nullableuser.statusesUrl(java.net.URI | null) // nullablestatusesUrl.reviewCommentsUrl(java.net.URI | null) // nullablereviewCommentsUrl.reviewCommentUrl(String | null) // nullablereviewCommentUrl.commentsUrl(java.net.URI | null) // nullablecommentsUrl.links(com.spotify.github.v3.prs.PullRequestLinks | null) // nullablelinks.requestedReviewers(List<com.spotify.github.v3.User> | null) // nullablerequestedReviewers.requestedTeams(List<com.spotify.github.v3.User> | null) // nullablerequestedTeams.mergeCommitSha(String) // optionalmergeCommitSha.build();- Returns:
- A new ImmutablePullRequestItem builder
-
-