Class ImmutableCommentReaction.Builder

  • Enclosing class:
    ImmutableCommentReaction

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

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

        @CanIgnoreReturnValue
        public final ImmutableCommentReaction.Builder createdAt​(@Nullable
                                                                GitHubInstant createdAt)
        Initializes the value for the createdAt attribute.
        Parameters:
        createdAt - The value for createdAt (can be null)
        Returns:
        this builder for use in a chained invocation
      • updatedAt

        @CanIgnoreReturnValue
        public final ImmutableCommentReaction.Builder updatedAt​(@Nullable
                                                                GitHubInstant updatedAt)
        Initializes the value for the updatedAt attribute.
        Parameters:
        updatedAt - The value for updatedAt (can be null)
        Returns:
        this builder for use in a chained invocation
      • id

        @CanIgnoreReturnValue
        public final ImmutableCommentReaction.Builder id​(long id)
        Initializes the value for the id attribute.
        Parameters:
        id - The value for id
        Returns:
        this builder for use in a chained invocation
      • user

        @CanIgnoreReturnValue
        public final ImmutableCommentReaction.Builder user​(User user)
        Initializes the value for the user attribute.
        Parameters:
        user - The value for user
        Returns:
        this builder for use in a chained invocation