Class ImmutableOrganization.Builder

  • Enclosing class:
    ImmutableOrganization

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

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

        @CanIgnoreReturnValue
        public final ImmutableOrganization.Builder id​(@Nullable
                                                      Long 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
      • url

        @CanIgnoreReturnValue
        public final ImmutableOrganization.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
      • reposUrl

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

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

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

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

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