Class ImmutableSearchIssue

    • Method Detail

      • id

        @Nullable
        public Integer id()
        ID.
        Specified by:
        id in interface Issue
      • url

        @Nullable
        public URI url()
        URL.
        Specified by:
        url in interface Issue
      • labelsUrl

        @Nullable
        public String labelsUrl()
        Labels URL template.
        Specified by:
        labelsUrl in interface Issue
      • commentsUrl

        @Nullable
        public URI commentsUrl()
        Comments URL.
        Specified by:
        commentsUrl in interface Issue
      • htmlUrl

        @Nullable
        public URI htmlUrl()
        HTML URL.
        Specified by:
        htmlUrl in interface Issue
      • number

        @Nullable
        public Integer number()
        Number.
        Specified by:
        number in interface Issue
      • state

        @Nullable
        public String state()
        Indicates the state of the issues to return. Can be either open, closed, or all.
        Specified by:
        state in interface Issue
      • title

        @Nullable
        public String title()
        The title of the issue.
        Specified by:
        title in interface Issue
      • body

        @Nullable
        public Optional<String> body()
        The contents of the issue.
        Specified by:
        body in interface Issue
      • user

        @Nullable
        public User user()
        User.
        Specified by:
        user in interface Issue
      • labels

        @Nullable
        public List<Label> labels()
        A list of comma separated label names. Example: bug,ui,@highl.
        Specified by:
        labels in interface Issue
      • assignee

        public Optional<User> assignee()
        Login for the user that this issue should be assigned to.
        Specified by:
        assignee in interface Issue
      • locked

        @Nullable
        public Boolean locked()
        Is locked.
        Specified by:
        locked in interface Issue
      • comments

        @Nullable
        public Integer comments()
        Number of comments.
        Specified by:
        comments in interface Issue
      • score

        @Nullable
        public Float score()
        Score of item
        Specified by:
        score in interface SearchIssue
        Returns:
        float
      • withCreatedAt

        public final ImmutableSearchIssue withCreatedAt​(@Nullable
                                                        GitHubInstant value)
        Copy the current immutable object by setting a value for the createdAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for createdAt (can be null)
        Returns:
        A modified copy of the this object
      • withUpdatedAt

        public final ImmutableSearchIssue withUpdatedAt​(@Nullable
                                                        GitHubInstant value)
        Copy the current immutable object by setting a value for the updatedAt attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for updatedAt (can be null)
        Returns:
        A modified copy of the this object
      • withClosedAt

        public final ImmutableSearchIssue withClosedAt​(GitHubInstant value)
        Copy the current immutable object by setting a present value for the optional closedAt attribute.
        Parameters:
        value - The value for closedAt
        Returns:
        A modified copy of this object
      • withClosedAt

        public final ImmutableSearchIssue withClosedAt​(Optional<? extends GitHubInstant> optional)
        Copy the current immutable object by setting an optional value for the closedAt attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for closedAt
        Returns:
        A modified copy of this object
      • withId

        public final ImmutableSearchIssue withId​(@Nullable
                                                 Integer value)
        Copy the current immutable object by setting a value for the id attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for id (can be null)
        Returns:
        A modified copy of the this object
      • withUrl

        public final ImmutableSearchIssue withUrl​(@Nullable
                                                  URI value)
        Copy the current immutable object by setting a value for the url attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for url (can be null)
        Returns:
        A modified copy of the this object
      • withEventsUrl

        public final ImmutableSearchIssue withEventsUrl​(@Nullable
                                                        Optional<URI> value)
        Copy the current immutable object by setting a value for the eventsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for eventsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withRepositoryUrl

        public final ImmutableSearchIssue withRepositoryUrl​(@Nullable
                                                            Optional<URI> value)
        Copy the current immutable object by setting a value for the repositoryUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for repositoryUrl (can be null)
        Returns:
        A modified copy of the this object
      • withLabelsUrl

        public final ImmutableSearchIssue withLabelsUrl​(@Nullable
                                                        String value)
        Copy the current immutable object by setting a value for the labelsUrl attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for labelsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withCommentsUrl

        public final ImmutableSearchIssue withCommentsUrl​(@Nullable
                                                          URI value)
        Copy the current immutable object by setting a value for the commentsUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for commentsUrl (can be null)
        Returns:
        A modified copy of the this object
      • withHtmlUrl

        public final ImmutableSearchIssue withHtmlUrl​(@Nullable
                                                      URI value)
        Copy the current immutable object by setting a value for the htmlUrl attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for htmlUrl (can be null)
        Returns:
        A modified copy of the this object
      • withNumber

        public final ImmutableSearchIssue withNumber​(@Nullable
                                                     Integer value)
        Copy the current immutable object by setting a value for the number attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for number (can be null)
        Returns:
        A modified copy of the this object
      • withState

        public final ImmutableSearchIssue withState​(@Nullable
                                                    String value)
        Copy the current immutable object by setting a value for the state attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for state (can be null)
        Returns:
        A modified copy of the this object
      • withTitle

        public final ImmutableSearchIssue withTitle​(@Nullable
                                                    String value)
        Copy the current immutable object by setting a value for the title attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for title (can be null)
        Returns:
        A modified copy of the this object
      • withBody

        public final ImmutableSearchIssue withBody​(@Nullable
                                                   Optional<String> value)
        Copy the current immutable object by setting a value for the body attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for body (can be null)
        Returns:
        A modified copy of the this object
      • withUser

        public final ImmutableSearchIssue withUser​(@Nullable
                                                   User value)
        Copy the current immutable object by setting a value for the user attribute. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for user (can be null)
        Returns:
        A modified copy of the this object
      • withLabels

        public final ImmutableSearchIssue withLabels​(@Nullable
                                                     Label... elements)
        Copy the current immutable object with elements that replace the content of labels.
        Parameters:
        elements - The elements to set
        Returns:
        A modified copy of this object
      • withLabels

        public final ImmutableSearchIssue withLabels​(@Nullable
                                                     Iterable<? extends Label> elements)
        Copy the current immutable object with elements that replace the content of labels. A shallow reference equality check is used to prevent copying of the same value by returning this.
        Parameters:
        elements - An iterable of labels elements to set
        Returns:
        A modified copy of this object
      • withAssignee

        public final ImmutableSearchIssue withAssignee​(User value)
        Copy the current immutable object by setting a present value for the optional assignee attribute.
        Parameters:
        value - The value for assignee
        Returns:
        A modified copy of this object
      • withAssignee

        public final ImmutableSearchIssue withAssignee​(Optional<? extends User> optional)
        Copy the current immutable object by setting an optional value for the assignee attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for assignee
        Returns:
        A modified copy of this object
      • withMilestone

        public final ImmutableSearchIssue withMilestone​(Milestone value)
        Copy the current immutable object by setting a present value for the optional milestone attribute.
        Parameters:
        value - The value for milestone
        Returns:
        A modified copy of this object
      • withMilestone

        public final ImmutableSearchIssue withMilestone​(Optional<? extends Milestone> optional)
        Copy the current immutable object by setting an optional value for the milestone attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for milestone
        Returns:
        A modified copy of this object
      • withLocked

        public final ImmutableSearchIssue withLocked​(@Nullable
                                                     Boolean value)
        Copy the current immutable object by setting a value for the locked attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for locked (can be null)
        Returns:
        A modified copy of the this object
      • withComments

        public final ImmutableSearchIssue withComments​(@Nullable
                                                       Integer value)
        Copy the current immutable object by setting a value for the comments attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for comments (can be null)
        Returns:
        A modified copy of the this object
      • withPullRequest

        public final ImmutableSearchIssue withPullRequest​(PullRequest value)
        Copy the current immutable object by setting a present value for the optional pullRequest attribute.
        Parameters:
        value - The value for pullRequest
        Returns:
        A modified copy of this object
      • withPullRequest

        public final ImmutableSearchIssue withPullRequest​(Optional<? extends PullRequest> optional)
        Copy the current immutable object by setting an optional value for the pullRequest attribute. A shallow reference equality check is used on unboxed optional value to prevent copying of the same value by returning this.
        Parameters:
        optional - A value for pullRequest
        Returns:
        A modified copy of this object
      • withScore

        public final ImmutableSearchIssue withScore​(@Nullable
                                                    Float value)
        Copy the current immutable object by setting a value for the score attribute. An equals check used to prevent copying of the same value by returning this.
        Parameters:
        value - A new value for score (can be null)
        Returns:
        A modified copy of the this object
      • equals

        public boolean equals​(@Nullable
                              Object another)
        This instance is equal to all instances of ImmutableSearchIssue that have equal attribute values.
        Overrides:
        equals in class Object
        Returns:
        true if this is equal to another instance
      • hashCode

        public int hashCode()
        Computes a hash code from attributes: createdAt, updatedAt, closedAt, id, url, eventsUrl, repositoryUrl, labelsUrl, commentsUrl, htmlUrl, number, state, title, body, user, labels, assignee, milestone, locked, comments, pullRequest, score.
        Overrides:
        hashCode in class Object
        Returns:
        hashCode value
      • toString

        public String toString()
        Prints the immutable value SearchIssue with attribute values.
        Overrides:
        toString in class Object
        Returns:
        A string representation of the value
      • copyOf

        public static ImmutableSearchIssue copyOf​(SearchIssue instance)
        Creates an immutable copy of a SearchIssue 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 SearchIssue instance
      • builder

        public static ImmutableSearchIssue.Builder builder()
        Creates a builder for ImmutableSearchIssue.
         ImmutableSearchIssue.builder()
            .createdAt(com.spotify.github.GitHubInstant | null) // nullable createdAt
            .updatedAt(com.spotify.github.GitHubInstant | null) // nullable updatedAt
            .closedAt(com.spotify.github.GitHubInstant) // optional closedAt
            .id(Integer | null) // nullable id
            .url(java.net.URI | null) // nullable url
            .eventsUrl(Optional&lt;java.net.URI&gt; | null) // nullable eventsUrl
            .repositoryUrl(Optional&lt;java.net.URI&gt; | null) // nullable repositoryUrl
            .labelsUrl(String | null) // nullable labelsUrl
            .commentsUrl(java.net.URI | null) // nullable commentsUrl
            .htmlUrl(java.net.URI | null) // nullable htmlUrl
            .number(Integer | null) // nullable number
            .state(String | null) // nullable state
            .title(String | null) // nullable title
            .body(Optional&lt;String&gt; | null) // nullable body
            .user(com.spotify.github.v3.User | null) // nullable user
            .labels(List&lt;com.spotify.github.v3.issues.Label&gt; | null) // nullable labels
            .assignee(com.spotify.github.v3.User) // optional assignee
            .milestone(com.spotify.github.v3.Milestone) // optional milestone
            .locked(Boolean | null) // nullable locked
            .comments(Integer | null) // nullable comments
            .pullRequest(com.spotify.github.v3.issues.PullRequest) // optional pullRequest
            .score(Float | null) // nullable score
            .build();
         
        Returns:
        A new ImmutableSearchIssue builder