Class ImmutableIssueCommentEvent.Builder

  • Enclosing class:
    ImmutableIssueCommentEvent

    @NotThreadSafe
    public static final class ImmutableIssueCommentEvent.Builder
    extends Object
    Builds instances of type ImmutableIssueCommentEvent. 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 ImmutableIssueCommentEvent.Builder from​(IssueCommentEvent instance)
        Fill a builder with attribute values from the provided com.spotify.github.v3.activity.events.IssueCommentEvent instance.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • from

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

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder repository​(@Nullable
                                                                   Repository repository)
        Initializes the value for the repository attribute.
        Parameters:
        repository - The value for repository (can be null)
        Returns:
        this builder for use in a chained invocation
      • sender

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder sender​(@Nullable
                                                               User sender)
        Initializes the value for the sender attribute.
        Parameters:
        sender - The value for sender (can be null)
        Returns:
        this builder for use in a chained invocation
      • eventInstallation

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder eventInstallation​(@Nullable
                                                                          EventInstallation eventInstallation)
        Initializes the value for the eventInstallation attribute.
        Parameters:
        eventInstallation - The value for eventInstallation (can be null)
        Returns:
        this builder for use in a chained invocation
      • action

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder action​(@Nullable
                                                               String action)
        Initializes the value for the action attribute.
        Parameters:
        action - The value for action (can be null)
        Returns:
        this builder for use in a chained invocation
      • changes

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder changes​(Changes changes)
        Initializes the optional value changes to changes.
        Parameters:
        changes - The value for changes
        Returns:
        this builder for chained invocation
      • issue

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder issue​(@Nullable
                                                              Issue 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
      • comment

        @CanIgnoreReturnValue
        public final ImmutableIssueCommentEvent.Builder comment​(@Nullable
                                                                Comment comment)
        Initializes the value for the comment attribute.
        Parameters:
        comment - The value for comment (can be null)
        Returns:
        this builder for use in a chained invocation