Class UserProfile.UserProfileBuilder<C extends UserProfile, B extends UserProfile.UserProfileBuilder<C,B>>

java.lang.Object
com.amilesend.discogs.model.Resource.ResourceBuilder<Long, UserProfile, C, B>
com.amilesend.discogs.model.identity.type.UserProfile.UserProfileBuilder<C,B>
Direct Known Subclasses:
EditUserProfileResponse.EditUserProfileResponseBuilder, GetUserProfileResponse.GetUserProfileResponseBuilder
Enclosing class:
UserProfile

public abstract static class UserProfile.UserProfileBuilder<C extends UserProfile, B extends UserProfile.UserProfileBuilder<C,B>> extends Resource.ResourceBuilder<Long, UserProfile, C, B>
  • Constructor Details

    • UserProfileBuilder

      public UserProfileBuilder()
  • Method Details

    • profile

      public B profile(String profile)
      User profile description.
      Returns:
      this.
    • wantListUrl

      public B wantListUrl(String wantListUrl)
      The URL to the user's want list.
      Returns:
      this.
    • rank

      public B rank(Integer rank)
      The user's contributor rank stat.
      Returns:
      this.
    • numPending

      public B numPending(Integer numPending)
      The number of pending transactions.
      Returns:
      this.
    • numForSale

      public B numForSale(Integer numForSale)
      The number of items for sale.
      Returns:
      this.
    • homePage

      public B homePage(String homePage)
      URL for the user's home page.
      Returns:
      this.
    • location

      public B location(String location)
      Description of the user's location.
      Returns:
      this.
    • collectionFoldersUrl

      public B collectionFoldersUrl(String collectionFoldersUrl)
      URL for the user's collection folders.
      Returns:
      this.
    • username

      public B username(String username)
      The username .
      Returns:
      this.
    • email

      public B email(String email)
      The email if the user profile matches the authenticated user.
      Returns:
      this.
    • collectionFieldsUrl

      public B collectionFieldsUrl(String collectionFieldsUrl)
      URL for the user's collection fields.
      Returns:
      this.
    • releasesContributed

      public B releasesContributed(Integer releasesContributed)
      The number of contributed releases.
      Returns:
      this.
    • registered

      public B registered(LocalDateTime registered)
      The user's registration timestamp.
      Returns:
      this.
    • ratingAvg

      public B ratingAvg(Double ratingAvg)
      The overage rating.
      Returns:
      this.
    • numCollection

      public B numCollection(Integer numCollection)
      The number of collections if the user profile matches the authenticated user.
      Returns:
      this.
    • name

      public B name(String name)
      The user's name.
      Returns:
      this.
    • numWantList

      public B numWantList(Integer numWantList)
      The number of items in the user's want list if the user profile matches the authenticated user.
      Returns:
      this.
    • inventoryUrl

      public B inventoryUrl(String inventoryUrl)
      URL for the user's inventory.
      Returns:
      this.
    • avatarUrl

      public B avatarUrl(String avatarUrl)
      URL for the user's avatar image.
      Returns:
      this.
    • bannerUrl

      public B bannerUrl(String bannerUrl)
      URL for the user's banner image.
      Returns:
      this.
    • uri

      public B uri(String uri)
      URL for the user's profile.
      Returns:
      this.
    • buyerRating

      public B buyerRating(Double buyerRating)
      The user's buyer rating.
      Returns:
      this.
    • buyerRatingStars

      public B buyerRatingStars(Integer buyerRatingStars)
      The user's star rating.
      Returns:
      this.
    • buyerNumRatings

      public B buyerNumRatings(Integer buyerNumRatings)
      The number of total buyer ratings.
      Returns:
      this.
    • sellerRating

      public B sellerRating(Double sellerRating)
      The user's seller rating.
      Returns:
      this.
    • sellerRatingStars

      public B sellerRatingStars(Integer sellerRatingStars)
      The user's seller star rating.
      Returns:
      this.
    • sellerNumRatings

      public B sellerNumRatings(Integer sellerNumRatings)
      The number of total seller ratings.
      Returns:
      this.
    • currAbbr

      public B currAbbr(String currAbbr)
      The user's configured currency type (e.g., "USD" or "EUR").
      Returns:
      this.
    • build

      public abstract C build()
      Specified by:
      build in class Resource.ResourceBuilder<Long, UserProfile, C extends UserProfile, B extends UserProfile.UserProfileBuilder<C,B>>
    • toString

      public String toString()
      Overrides:
      toString in class Resource.ResourceBuilder<Long, UserProfile, C extends UserProfile, B extends UserProfile.UserProfileBuilder<C,B>>