Class ImmutableMilestone.Builder

  • Enclosing class:
    ImmutableMilestone

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

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

        @CanIgnoreReturnValue
        public final ImmutableMilestone.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 ImmutableMilestone.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 ImmutableMilestone.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
      • closedAt

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder closedAt​(GitHubInstant closedAt)
        Initializes the optional value closedAt to closedAt.
        Parameters:
        closedAt - The value for closedAt
        Returns:
        this builder for chained invocation
      • closedAt

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder closedAt​(Optional<? extends GitHubInstant> closedAt)
        Initializes the optional value closedAt to closedAt.
        Parameters:
        closedAt - The value for closedAt
        Returns:
        this builder for use in a chained invocation
      • url

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder url​(@Nullable
                                                    URI url)
        Initializes the value for the url attribute.
        Parameters:
        url - The value for url (can be null)
        Returns:
        this builder for use in a chained invocation
      • htmlUrl

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder htmlUrl​(@Nullable
                                                        URI htmlUrl)
        Initializes the value for the htmlUrl attribute.
        Parameters:
        htmlUrl - The value for htmlUrl (can be null)
        Returns:
        this builder for use in a chained invocation
      • labelsUrl

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

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

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder number​(@Nullable
                                                       Integer number)
        Initializes the value for the number attribute.
        Parameters:
        number - The value for number (can be null)
        Returns:
        this builder for use in a chained invocation
      • state

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

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

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder description​(String description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for chained invocation
      • description

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder description​(Optional<String> description)
        Initializes the optional value description to description.
        Parameters:
        description - The value for description
        Returns:
        this builder for use in a chained invocation
      • creator

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

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder openIssues​(@Nullable
                                                           Integer openIssues)
        Initializes the value for the openIssues attribute.
        Parameters:
        openIssues - The value for openIssues (can be null)
        Returns:
        this builder for use in a chained invocation
      • closedIssues

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder closedIssues​(@Nullable
                                                             Integer closedIssues)
        Initializes the value for the closedIssues attribute.
        Parameters:
        closedIssues - The value for closedIssues (can be null)
        Returns:
        this builder for use in a chained invocation
      • dueOn

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder dueOn​(GitHubInstant dueOn)
        Initializes the optional value dueOn to dueOn.
        Parameters:
        dueOn - The value for dueOn
        Returns:
        this builder for chained invocation
      • dueOn

        @CanIgnoreReturnValue
        public final ImmutableMilestone.Builder dueOn​(Optional<? extends GitHubInstant> dueOn)
        Initializes the optional value dueOn to dueOn.
        Parameters:
        dueOn - The value for dueOn
        Returns:
        this builder for use in a chained invocation