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 class
ImmutablePullRequestItem.Builder
Builds 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.PullRequestRef
base()
Base reference.Optional<String>
body()
The contents of the pull request.static ImmutablePullRequestItem.Builder
builder()
Creates a builder forImmutablePullRequestItem
.Optional<GitHubInstant>
closedAt()
Closed date.URI
commentsUrl()
Comments API URL.URI
commitsUrl()
Commits URL.static ImmutablePullRequestItem
copyOf(PullRequestItem instance)
Creates an immutable copy of aPullRequestItem
value.GitHubInstant
createdAt()
Created dateURI
diffUrl()
Diff URL.boolean
equals(Object another)
This instance is equal to all instances ofImmutablePullRequestItem
that have equal attribute values.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
.PullRequestRef
head()
Head reference.URI
htmlUrl()
HTML URL.Integer
id()
ID.URI
issueUrl()
Issue URL.PullRequestLinks
links()
Link references.Boolean
locked()
Is it locked.Optional<String>
mergeCommitSha()
Optional<GitHubInstant>
mergedAt()
Merged date.Optional<Milestone>
milestone()
Milestone.Integer
number()
Number.URI
patchUrl()
Patch URL.List<User>
requestedReviewers()
Requested reviewers (users)List<User>
requestedTeams()
Requested reviewers (teams)URI
reviewCommentsUrl()
Review comments API URL.String
reviewCommentUrl()
Review comment API URL template.String
state()
Either open, closed, or all to filter by state.URI
statusesUrl()
Statuses API URL.String
title()
The title of the pull request.String
toString()
Prints the immutable valuePullRequestItem
with attribute values.GitHubInstant
updatedAt()
Updated dateURI
url()
URL.User
user()
User.ImmutablePullRequestItem
withAssignee(User value)
Copy the current immutable object by setting a present value for the optionalassignee
attribute.ImmutablePullRequestItem
withAssignee(Optional<? extends User> optional)
Copy the current immutable object by setting an optional value for theassignee
attribute.ImmutablePullRequestItem
withAssignees(List<User> value)
Copy the current immutable object by setting a present value for the optionalassignees
attribute.ImmutablePullRequestItem
withAssignees(Optional<? extends List<User>> optional)
Copy the current immutable object by setting an optional value for theassignees
attribute.ImmutablePullRequestItem
withBase(PullRequestRef value)
Copy the current immutable object by setting a value for thebase
attribute.ImmutablePullRequestItem
withBody(String value)
Copy the current immutable object by setting a present value for the optionalbody
attribute.ImmutablePullRequestItem
withBody(Optional<String> optional)
Copy the current immutable object by setting an optional value for thebody
attribute.ImmutablePullRequestItem
withClosedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalclosedAt
attribute.ImmutablePullRequestItem
withClosedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for theclosedAt
attribute.ImmutablePullRequestItem
withCommentsUrl(URI value)
Copy the current immutable object by setting a value for thecommentsUrl
attribute.ImmutablePullRequestItem
withCommitsUrl(URI value)
Copy the current immutable object by setting a value for thecommitsUrl
attribute.ImmutablePullRequestItem
withCreatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute.ImmutablePullRequestItem
withDiffUrl(URI value)
Copy the current immutable object by setting a value for thediffUrl
attribute.ImmutablePullRequestItem
withHead(PullRequestRef value)
Copy the current immutable object by setting a value for thehead
attribute.ImmutablePullRequestItem
withHtmlUrl(URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute.ImmutablePullRequestItem
withId(Integer value)
Copy the current immutable object by setting a value for theid
attribute.ImmutablePullRequestItem
withIssueUrl(URI value)
Copy the current immutable object by setting a value for theissueUrl
attribute.ImmutablePullRequestItem
withLinks(PullRequestLinks value)
Copy the current immutable object by setting a value for thelinks
attribute.ImmutablePullRequestItem
withLocked(Boolean value)
Copy the current immutable object by setting a value for thelocked
attribute.ImmutablePullRequestItem
withMergeCommitSha(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitSha
attribute.ImmutablePullRequestItem
withMergeCommitSha(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitSha
attribute.ImmutablePullRequestItem
withMergedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalmergedAt
attribute.ImmutablePullRequestItem
withMergedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for themergedAt
attribute.ImmutablePullRequestItem
withMilestone(Milestone value)
Copy the current immutable object by setting a present value for the optionalmilestone
attribute.ImmutablePullRequestItem
withMilestone(Optional<? extends Milestone> optional)
Copy the current immutable object by setting an optional value for themilestone
attribute.ImmutablePullRequestItem
withNumber(Integer value)
Copy the current immutable object by setting a value for thenumber
attribute.ImmutablePullRequestItem
withPatchUrl(URI value)
Copy the current immutable object by setting a value for thepatchUrl
attribute.ImmutablePullRequestItem
withRequestedReviewers(User... elements)
Copy the current immutable object with elements that replace the content ofrequestedReviewers
.ImmutablePullRequestItem
withRequestedReviewers(Iterable<? extends User> elements)
Copy the current immutable object with elements that replace the content ofrequestedReviewers
.ImmutablePullRequestItem
withRequestedTeams(User... elements)
Copy the current immutable object with elements that replace the content ofrequestedTeams
.ImmutablePullRequestItem
withRequestedTeams(Iterable<? extends User> elements)
Copy the current immutable object with elements that replace the content ofrequestedTeams
.ImmutablePullRequestItem
withReviewCommentsUrl(URI value)
Copy the current immutable object by setting a value for thereviewCommentsUrl
attribute.ImmutablePullRequestItem
withReviewCommentUrl(String value)
Copy the current immutable object by setting a value for thereviewCommentUrl
attribute.ImmutablePullRequestItem
withState(String value)
Copy the current immutable object by setting a value for thestate
attribute.ImmutablePullRequestItem
withStatusesUrl(URI value)
Copy the current immutable object by setting a value for thestatusesUrl
attribute.ImmutablePullRequestItem
withTitle(String value)
Copy the current immutable object by setting a value for thetitle
attribute.ImmutablePullRequestItem
withUpdatedAt(GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute.ImmutablePullRequestItem
withUrl(URI value)
Copy the current immutable object by setting a value for theurl
attribute.ImmutablePullRequestItem
withUser(User value)
Copy the current immutable object by setting a value for theuser
attribute.
-
-
-
Method Detail
-
createdAt
@Nullable public GitHubInstant createdAt()
Created date- Specified by:
createdAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was created
-
updatedAt
@Nullable public GitHubInstant updatedAt()
Updated date- Specified by:
updatedAt
in interfaceUpdateTracking
- Returns:
- The date when the issue was updated
-
closedAt
public Optional<GitHubInstant> closedAt()
Closed date.- Specified by:
closedAt
in interfaceCloseTracking
- Returns:
- The date when the issue was closed
-
id
@Nullable public Integer id()
ID.- Specified by:
id
in interfacePullRequestItem
-
url
@Nullable public URI url()
URL.- Specified by:
url
in interfacePullRequestItem
-
htmlUrl
@Nullable public URI htmlUrl()
HTML URL.- Specified by:
htmlUrl
in interfacePullRequestItem
-
diffUrl
@Nullable public URI diffUrl()
Diff URL.- Specified by:
diffUrl
in interfacePullRequestItem
-
patchUrl
@Nullable public URI patchUrl()
Patch URL.- Specified by:
patchUrl
in interfacePullRequestItem
-
issueUrl
@Nullable public URI issueUrl()
Issue URL.- Specified by:
issueUrl
in interfacePullRequestItem
-
commitsUrl
@Nullable public URI commitsUrl()
Commits URL.- Specified by:
commitsUrl
in interfacePullRequestItem
-
number
@Nullable public Integer number()
Number.- Specified by:
number
in interfacePullRequestItem
-
state
@Nullable public String state()
Either open, closed, or all to filter by state. Default: open.- Specified by:
state
in interfacePullRequestItem
-
title
@Nullable public String title()
The title of the pull request.- Specified by:
title
in interfacePullRequestItem
-
body
public Optional<String> body()
The contents of the pull request.- Specified by:
body
in interfacePullRequestItem
-
assignee
public Optional<User> assignee()
Assignee.- Specified by:
assignee
in interfacePullRequestItem
-
assignees
public Optional<List<User>> assignees()
Assignees.- Specified by:
assignees
in interfacePullRequestItem
-
milestone
public Optional<Milestone> milestone()
Milestone.- Specified by:
milestone
in interfacePullRequestItem
-
locked
@Nullable public Boolean locked()
Is it locked.- Specified by:
locked
in interfacePullRequestItem
-
mergedAt
public Optional<GitHubInstant> mergedAt()
Merged date.- Specified by:
mergedAt
in interfacePullRequestItem
-
head
@Nullable public PullRequestRef head()
Head reference.- Specified by:
head
in interfacePullRequestItem
-
base
@Nullable public PullRequestRef base()
Base reference.- Specified by:
base
in interfacePullRequestItem
-
user
@Nullable public User user()
User.- Specified by:
user
in interfacePullRequestItem
-
statusesUrl
@Nullable public URI statusesUrl()
Statuses API URL.- Specified by:
statusesUrl
in interfacePullRequestItem
-
reviewCommentsUrl
@Nullable public URI reviewCommentsUrl()
Review comments API URL.- Specified by:
reviewCommentsUrl
in interfacePullRequestItem
-
reviewCommentUrl
@Nullable public String reviewCommentUrl()
Review comment API URL template.- Specified by:
reviewCommentUrl
in interfacePullRequestItem
-
commentsUrl
@Nullable public URI commentsUrl()
Comments API URL.- Specified by:
commentsUrl
in interfacePullRequestItem
-
links
@Nullable public PullRequestLinks links()
Link references.- Specified by:
links
in interfacePullRequestItem
-
requestedReviewers
@Nullable public List<User> requestedReviewers()
Requested reviewers (users)- Specified by:
requestedReviewers
in interfacePullRequestItem
-
requestedTeams
@Nullable public List<User> requestedTeams()
Requested reviewers (teams)- Specified by:
requestedTeams
in interfacePullRequestItem
-
mergeCommitSha
public Optional<String> mergeCommitSha()
- Specified by:
mergeCommitSha
in interfacePullRequestItem
-
withCreatedAt
public final ImmutablePullRequestItem withCreatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for thecreatedAt
attribute. 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
this
object
-
withUpdatedAt
public final ImmutablePullRequestItem withUpdatedAt(@Nullable GitHubInstant value)
Copy the current immutable object by setting a value for theupdatedAt
attribute. 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
this
object
-
withClosedAt
public final ImmutablePullRequestItem withClosedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalclosedAt
attribute.- Parameters:
value
- The value for closedAt- Returns:
- A modified copy of
this
object
-
withClosedAt
public final ImmutablePullRequestItem withClosedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for theclosedAt
attribute. 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
this
object
-
withId
public final ImmutablePullRequestItem withId(@Nullable Integer value)
Copy the current immutable object by setting a value for theid
attribute. 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
this
object
-
withUrl
public final ImmutablePullRequestItem withUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theurl
attribute. 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
this
object
-
withHtmlUrl
public final ImmutablePullRequestItem withHtmlUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thehtmlUrl
attribute. 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
this
object
-
withDiffUrl
public final ImmutablePullRequestItem withDiffUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thediffUrl
attribute. 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
this
object
-
withPatchUrl
public final ImmutablePullRequestItem withPatchUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thepatchUrl
attribute. 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
this
object
-
withIssueUrl
public final ImmutablePullRequestItem withIssueUrl(@Nullable URI value)
Copy the current immutable object by setting a value for theissueUrl
attribute. 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
this
object
-
withCommitsUrl
public final ImmutablePullRequestItem withCommitsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecommitsUrl
attribute. 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
this
object
-
withNumber
public final ImmutablePullRequestItem withNumber(@Nullable Integer value)
Copy the current immutable object by setting a value for thenumber
attribute. 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
this
object
-
withState
public final ImmutablePullRequestItem withState(@Nullable String value)
Copy the current immutable object by setting a value for thestate
attribute. 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
this
object
-
withTitle
public final ImmutablePullRequestItem withTitle(@Nullable String value)
Copy the current immutable object by setting a value for thetitle
attribute. 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
this
object
-
withBody
public final ImmutablePullRequestItem withBody(String value)
Copy the current immutable object by setting a present value for the optionalbody
attribute.- Parameters:
value
- The value for body- Returns:
- A modified copy of
this
object
-
withBody
public final ImmutablePullRequestItem withBody(Optional<String> optional)
Copy the current immutable object by setting an optional value for thebody
attribute. 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
this
object
-
withAssignee
public final ImmutablePullRequestItem withAssignee(User value)
Copy the current immutable object by setting a present value for the optionalassignee
attribute.- Parameters:
value
- The value for assignee- Returns:
- A modified copy of
this
object
-
withAssignee
public final ImmutablePullRequestItem withAssignee(Optional<? extends User> optional)
Copy the current immutable object by setting an optional value for theassignee
attribute. 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
this
object
-
withAssignees
public final ImmutablePullRequestItem withAssignees(List<User> value)
Copy the current immutable object by setting a present value for the optionalassignees
attribute.- Parameters:
value
- The value for assignees- Returns:
- A modified copy of
this
object
-
withAssignees
public final ImmutablePullRequestItem withAssignees(Optional<? extends List<User>> optional)
Copy the current immutable object by setting an optional value for theassignees
attribute. 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
this
object
-
withMilestone
public final ImmutablePullRequestItem withMilestone(Milestone value)
Copy the current immutable object by setting a present value for the optionalmilestone
attribute.- Parameters:
value
- The value for milestone- Returns:
- A modified copy of
this
object
-
withMilestone
public final ImmutablePullRequestItem withMilestone(Optional<? extends Milestone> optional)
Copy the current immutable object by setting an optional value for themilestone
attribute. 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
this
object
-
withLocked
public final ImmutablePullRequestItem withLocked(@Nullable Boolean value)
Copy the current immutable object by setting a value for thelocked
attribute. 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
this
object
-
withMergedAt
public final ImmutablePullRequestItem withMergedAt(GitHubInstant value)
Copy the current immutable object by setting a present value for the optionalmergedAt
attribute.- Parameters:
value
- The value for mergedAt- Returns:
- A modified copy of
this
object
-
withMergedAt
public final ImmutablePullRequestItem withMergedAt(Optional<? extends GitHubInstant> optional)
Copy the current immutable object by setting an optional value for themergedAt
attribute. 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
this
object
-
withHead
public final ImmutablePullRequestItem withHead(@Nullable PullRequestRef value)
Copy the current immutable object by setting a value for thehead
attribute. 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
this
object
-
withBase
public final ImmutablePullRequestItem withBase(@Nullable PullRequestRef value)
Copy the current immutable object by setting a value for thebase
attribute. 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
this
object
-
withUser
public final ImmutablePullRequestItem withUser(@Nullable User value)
Copy the current immutable object by setting a value for theuser
attribute. 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
this
object
-
withStatusesUrl
public final ImmutablePullRequestItem withStatusesUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thestatusesUrl
attribute. 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
this
object
-
withReviewCommentsUrl
public final ImmutablePullRequestItem withReviewCommentsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thereviewCommentsUrl
attribute. 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
this
object
-
withReviewCommentUrl
public final ImmutablePullRequestItem withReviewCommentUrl(@Nullable String value)
Copy the current immutable object by setting a value for thereviewCommentUrl
attribute. 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
this
object
-
withCommentsUrl
public final ImmutablePullRequestItem withCommentsUrl(@Nullable URI value)
Copy the current immutable object by setting a value for thecommentsUrl
attribute. 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
this
object
-
withLinks
public final ImmutablePullRequestItem withLinks(@Nullable PullRequestLinks value)
Copy the current immutable object by setting a value for thelinks
attribute. 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
this
object
-
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
this
object
-
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
this
object
-
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
this
object
-
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
this
object
-
withMergeCommitSha
public final ImmutablePullRequestItem withMergeCommitSha(String value)
Copy the current immutable object by setting a present value for the optionalmergeCommitSha
attribute.- Parameters:
value
- The value for mergeCommitSha- Returns:
- A modified copy of
this
object
-
withMergeCommitSha
public final ImmutablePullRequestItem withMergeCommitSha(Optional<String> optional)
Copy the current immutable object by setting an optional value for themergeCommitSha
attribute. 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
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutablePullRequestItem
that 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 valuePullRequestItem
with attribute values.
-
copyOf
public static ImmutablePullRequestItem copyOf(PullRequestItem instance)
Creates an immutable copy of aPullRequestItem
value. 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) // nullable
createdAt
.updatedAt(com.spotify.github.GitHubInstant | null) // nullableupdatedAt
.closedAt(com.spotify.github.GitHubInstant) // optionalclosedAt
.id(Integer | 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
-
-