Class GetUsersProfileRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<User,GetUsersProfileRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<User,GetUsersProfileRequest.Builder>
se.michaelthelin.spotify.requests.data.users_profile.GetUsersProfileRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<User,
GetUsersProfileRequest.Builder>
- Enclosing class:
GetUsersProfileRequest
public static final class GetUsersProfileRequest.Builder
extends AbstractDataRequest.Builder<User,GetUsersProfileRequest.Builder>
Builder class for building a
GetUsersProfileRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.protected GetUsersProfileRequest.Builder
self()
Return this instance to simulate a self-type.The user ID setter.Methods inherited from class se.michaelthelin.spotify.requests.AbstractRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newGetUsersProfileRequest.Builder
.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
user_id
The user ID setter.- Parameters:
user_id
- The user's Spotify user ID.- Returns:
- A
GetUsersProfileRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetUsersProfileRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<User,
GetUsersProfileRequest.Builder> - Returns:
- This instance.
-