IModelObject.Builderpublic static final class User.Builder extends AbstractModelObject.Builder
User instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
User |
build() |
Build a model object with the information set in the builder object.
|
User.Builder |
setBirthdate(String birthdate) |
Set the birthday of the user object to be built.
|
User.Builder |
setCountry(com.neovisionaries.i18n.CountryCode country) |
Set the home country of the user object to be built.
|
User.Builder |
setDisplayName(String displayName) |
Set the display name of the user to be built.
|
User.Builder |
setEmail(String email) |
Set the email address of the user to be built.
|
User.Builder |
setExternalUrls(ExternalUrl externalUrls) |
Set external urls of the user to be built.
|
User.Builder |
setFollowers(Followers followers) |
Set the followers object of the user to be built.
|
User.Builder |
setHref(String href) |
Set href of Spotify api endpoint of the user to be built.
|
User.Builder |
setId(String id) |
Set user ID of the user to be built.
|
User.Builder |
setImages(Image... images) |
Set the profile image of the user to be built.
|
User.Builder |
setProduct(ProductType product) |
Set the product type of the user to be built.
|
User.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
User.Builder |
setUri(String uri) |
Set the Spotify URI of the user to be built.
|
public User.Builder setBirthdate(String birthdate)
birthdate - The user's date-of-birth.User.Builder.public User.Builder setCountry(com.neovisionaries.i18n.CountryCode country)
country - An ISO 3166-1 alpha-2 country code.User.Builder.public User.Builder setDisplayName(String displayName)
null instead.displayName - The name displayed on the user's profile. null if not available.User.Builder.public User.Builder setEmail(String email)
email - The user's email address, as entered by the user when creating their account.User.Builder.public User.Builder setExternalUrls(ExternalUrl externalUrls)
externalUrls - Known external URLs for this user.User.Builder.public User.Builder setFollowers(Followers followers)
followers - Information about the followers of the user.User.Builder.public User.Builder setHref(String href)
href - A link to the Spotify Web API endpoint for this user.User.Builder.public User.Builder setId(String id)
id - The Spotify user ID
for the user.User.Builder.public User.Builder setImages(Image... images)
images - The user's profile image.User.Builder.public User.Builder setProduct(ProductType product)
product - The user's Spotify subscription level: "premium", "free", etc.User.Builder.public User.Builder setType(ModelObjectType type)
type - The object type: "user"User.Builder.public User.Builder setUri(String uri)
uri - The Spotify URI for the user.User.Builder.public User build()
IModelObject.BuilderCopyright © 2019. All rights reserved.