Package com.spotify.github.v3.prs
Class ImmutablePullRequestLinks
- java.lang.Object
-
- com.spotify.github.v3.prs.ImmutablePullRequestLinks
-
- All Implemented Interfaces:
Links
,PullRequestLinks
@ParametersAreNonnullByDefault @Generated("org.immutables.processor.ProxyProcessor") @Immutable @CheckReturnValue public final class ImmutablePullRequestLinks extends Object implements PullRequestLinks
Immutable implementation ofPullRequestLinks
.Use the builder to create immutable instances:
ImmutablePullRequestLinks.builder()
.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ImmutablePullRequestLinks.Builder
Builds instances of typeImmutablePullRequestLinks
.-
Nested classes/interfaces inherited from interface com.spotify.github.Links
Links.Href<T>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ImmutablePullRequestLinks.Builder
builder()
Creates a builder forImmutablePullRequestLinks
.Links.Href<URI>
comments()
API link to the comments on this pull request.Links.Href<URI>
commits()
API link to the commits on this pull request.static ImmutablePullRequestLinks
copyOf(PullRequestLinks instance)
Creates an immutable copy of aPullRequestLinks
value.boolean
equals(Object another)
This instance is equal to all instances ofImmutablePullRequestLinks
that have equal attribute values.int
hashCode()
Computes a hash code from attributes:self
,html
,issue
,comments
,reviewComment
,reviewComments
,commits
,statuses
.Links.Href<URI>
html()
Link to the HTML representaion of this item.Links.Href<URI>
issue()
API link to the pull request.Links.Href<String>
reviewComment()
API link template to a specific review comments on this pull request.Links.Href<URI>
reviewComments()
API link to the review comments on this pull request.Links.Href<URI>
self()
Link to this entity in the API.Links.Href<URI>
statuses()
API link to the statuses on this pull request.String
toString()
Prints the immutable valuePullRequestLinks
with attribute values.ImmutablePullRequestLinks
withComments(Links.Href<URI> value)
Copy the current immutable object by setting a value for thecomments
attribute.ImmutablePullRequestLinks
withCommits(Links.Href<URI> value)
Copy the current immutable object by setting a value for thecommits
attribute.ImmutablePullRequestLinks
withHtml(Links.Href<URI> value)
Copy the current immutable object by setting a value for thehtml
attribute.ImmutablePullRequestLinks
withIssue(Links.Href<URI> value)
Copy the current immutable object by setting a value for theissue
attribute.ImmutablePullRequestLinks
withReviewComment(Links.Href<String> value)
Copy the current immutable object by setting a value for thereviewComment
attribute.ImmutablePullRequestLinks
withReviewComments(Links.Href<URI> value)
Copy the current immutable object by setting a value for thereviewComments
attribute.ImmutablePullRequestLinks
withSelf(Links.Href<URI> value)
Copy the current immutable object by setting a value for theself
attribute.ImmutablePullRequestLinks
withStatuses(Links.Href<URI> value)
Copy the current immutable object by setting a value for thestatuses
attribute.
-
-
-
Method Detail
-
self
@Nullable public Links.Href<URI> self()
Link to this entity in the API.
-
html
@Nullable public Links.Href<URI> html()
Link to the HTML representaion of this item.
-
issue
@Nullable public Links.Href<URI> issue()
API link to the pull request.- Specified by:
issue
in interfacePullRequestLinks
-
comments
@Nullable public Links.Href<URI> comments()
API link to the comments on this pull request.Comment
- Specified by:
comments
in interfacePullRequestLinks
-
reviewComment
@Nullable public Links.Href<String> reviewComment()
API link template to a specific review comments on this pull request.- Specified by:
reviewComment
in interfacePullRequestLinks
-
reviewComments
@Nullable public Links.Href<URI> reviewComments()
API link to the review comments on this pull request.Comment
- Specified by:
reviewComments
in interfacePullRequestLinks
-
commits
@Nullable public Links.Href<URI> commits()
API link to the commits on this pull request.CommitItem
- Specified by:
commits
in interfacePullRequestLinks
-
statuses
@Nullable public Links.Href<URI> statuses()
API link to the statuses on this pull request.Status
- Specified by:
statuses
in interfacePullRequestLinks
-
withSelf
public final ImmutablePullRequestLinks withSelf(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for theself
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for self (can benull
)- Returns:
- A modified copy of the
this
object
-
withHtml
public final ImmutablePullRequestLinks withHtml(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thehtml
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for html (can benull
)- Returns:
- A modified copy of the
this
object
-
withIssue
public final ImmutablePullRequestLinks withIssue(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for theissue
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for issue (can benull
)- Returns:
- A modified copy of the
this
object
-
withComments
public final ImmutablePullRequestLinks withComments(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thecomments
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for comments (can benull
)- Returns:
- A modified copy of the
this
object
-
withReviewComment
public final ImmutablePullRequestLinks withReviewComment(@Nullable Links.Href<String> value)
Copy the current immutable object by setting a value for thereviewComment
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for reviewComment (can benull
)- Returns:
- A modified copy of the
this
object
-
withReviewComments
public final ImmutablePullRequestLinks withReviewComments(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thereviewComments
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for reviewComments (can benull
)- Returns:
- A modified copy of the
this
object
-
withCommits
public final ImmutablePullRequestLinks withCommits(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thecommits
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for commits (can benull
)- Returns:
- A modified copy of the
this
object
-
withStatuses
public final ImmutablePullRequestLinks withStatuses(@Nullable Links.Href<URI> value)
Copy the current immutable object by setting a value for thestatuses
attribute. A shallow reference equality check is used to prevent copying of the same value by returningthis
.- Parameters:
value
- A new value for statuses (can benull
)- Returns:
- A modified copy of the
this
object
-
equals
public boolean equals(@Nullable Object another)
This instance is equal to all instances ofImmutablePullRequestLinks
that have equal attribute values.
-
hashCode
public int hashCode()
Computes a hash code from attributes:self
,html
,issue
,comments
,reviewComment
,reviewComments
,commits
,statuses
.
-
toString
public String toString()
Prints the immutable valuePullRequestLinks
with attribute values.
-
copyOf
public static ImmutablePullRequestLinks copyOf(PullRequestLinks instance)
Creates an immutable copy of aPullRequestLinks
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 PullRequestLinks instance
-
builder
public static ImmutablePullRequestLinks.Builder builder()
Creates a builder forImmutablePullRequestLinks
.ImmutablePullRequestLinks.builder() .self(com.spotify.github.Links.Href<java.net.URI> | null) // nullable
self
.html(com.spotify.github.Links.Href<java.net.URI> | null) // nullablehtml
.issue(com.spotify.github.Links.Href<java.net.URI> | null) // nullableissue
.comments(com.spotify.github.Links.Href<java.net.URI> | null) // nullablecomments
.reviewComment(com.spotify.github.Links.Href<String> | null) // nullablereviewComment
.reviewComments(com.spotify.github.Links.Href<java.net.URI> | null) // nullablereviewComments
.commits(com.spotify.github.Links.Href<java.net.URI> | null) // nullablecommits
.statuses(com.spotify.github.Links.Href<java.net.URI> | null) // nullablestatuses
.build();- Returns:
- A new ImmutablePullRequestLinks builder
-
-