Class ImmutablePullRequestLinks.Builder

  • Enclosing class:
    ImmutablePullRequestLinks

    @NotThreadSafe
    public static final class ImmutablePullRequestLinks.Builder
    extends Object
    Builds instances of type ImmutablePullRequestLinks. Initialize attributes and then invoke the build() method to create an immutable instance.

    Builder is not thread-safe and generally should not be stored in a field or collection, but instead used immediately to create instances.

    • Method Detail

      • from

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder from​(Links instance)
        Fill a builder with attribute values from the provided com.spotify.github.Links instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder from​(PullRequestLinks instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.prs.PullRequestLinks instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • self

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder self​(@Nullable
                                                            Links.Href<URI> self)
        Initializes the value for the self attribute.
        Parameters:
        self - The value for self (can be null)
        Returns:
        this builder for use in a chained invocation
      • html

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder html​(@Nullable
                                                            Links.Href<URI> html)
        Initializes the value for the html attribute.
        Parameters:
        html - The value for html (can be null)
        Returns:
        this builder for use in a chained invocation
      • issue

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder issue​(@Nullable
                                                             Links.Href<URI> issue)
        Initializes the value for the issue attribute.
        Parameters:
        issue - The value for issue (can be null)
        Returns:
        this builder for use in a chained invocation
      • comments

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder comments​(@Nullable
                                                                Links.Href<URI> comments)
        Initializes the value for the comments attribute.
        Parameters:
        comments - The value for comments (can be null)
        Returns:
        this builder for use in a chained invocation
      • reviewComment

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder reviewComment​(@Nullable
                                                                     Links.Href<String> reviewComment)
        Initializes the value for the reviewComment attribute.
        Parameters:
        reviewComment - The value for reviewComment (can be null)
        Returns:
        this builder for use in a chained invocation
      • reviewComments

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder reviewComments​(@Nullable
                                                                      Links.Href<URI> reviewComments)
        Initializes the value for the reviewComments attribute.
        Parameters:
        reviewComments - The value for reviewComments (can be null)
        Returns:
        this builder for use in a chained invocation
      • commits

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder commits​(@Nullable
                                                               Links.Href<URI> commits)
        Initializes the value for the commits attribute.
        Parameters:
        commits - The value for commits (can be null)
        Returns:
        this builder for use in a chained invocation
      • statuses

        @CanIgnoreReturnValue
        public final ImmutablePullRequestLinks.Builder statuses​(@Nullable
                                                                Links.Href<URI> statuses)
        Initializes the value for the statuses attribute.
        Parameters:
        statuses - The value for statuses (can be null)
        Returns:
        this builder for use in a chained invocation