Class ImmutableReviewRequests.Builder

  • Enclosing class:
    ImmutableReviewRequests

    @NotThreadSafe
    public static final class ImmutableReviewRequests.Builder
    extends Object
    Builds instances of type ImmutableReviewRequests. 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 ImmutableReviewRequests.Builder from​(ReviewRequests instance)
        Fill a builder with attribute values from the provided ReviewRequests instance. Regular attribute values will be replaced with those from the given instance. Absent optional values will not replace present values. Collection elements and entries will be added, not replaced.
        Parameters:
        instance - The instance from which to copy values
        Returns:
        this builder for use in a chained invocation
      • addUsers

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addUsers​(User element)
        Adds one element to users list.
        Parameters:
        element - A users element
        Returns:
        this builder for use in a chained invocation
      • addUsers

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addUsers​(User... elements)
        Adds elements to users list.
        Parameters:
        elements - An array of users elements
        Returns:
        this builder for use in a chained invocation
      • users

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder users​(@Nullable
                                                           Iterable<? extends User> elements)
        Sets or replaces all elements for users list.
        Parameters:
        elements - An iterable of users elements
        Returns:
        this builder for use in a chained invocation
      • addAllUsers

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addAllUsers​(Iterable<? extends User> elements)
        Adds elements to users list.
        Parameters:
        elements - An iterable of users elements
        Returns:
        this builder for use in a chained invocation
      • addTeams

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addTeams​(Team element)
        Adds one element to teams list.
        Parameters:
        element - A teams element
        Returns:
        this builder for use in a chained invocation
      • addTeams

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addTeams​(Team... elements)
        Adds elements to teams list.
        Parameters:
        elements - An array of teams elements
        Returns:
        this builder for use in a chained invocation
      • teams

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder teams​(@Nullable
                                                           Iterable<? extends Team> elements)
        Sets or replaces all elements for teams list.
        Parameters:
        elements - An iterable of teams elements
        Returns:
        this builder for use in a chained invocation
      • addAllTeams

        @CanIgnoreReturnValue
        public final ImmutableReviewRequests.Builder addAllTeams​(Iterable<? extends Team> elements)
        Adds elements to teams list.
        Parameters:
        elements - An iterable of teams elements
        Returns:
        this builder for use in a chained invocation