Class GetAudioFeaturesForTrackRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<AudioFeatures,GetAudioFeaturesForTrackRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<AudioFeatures,GetAudioFeaturesForTrackRequest.Builder>
se.michaelthelin.spotify.requests.data.tracks.GetAudioFeaturesForTrackRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<AudioFeatures,
GetAudioFeaturesForTrackRequest.Builder>
- Enclosing class:
GetAudioFeaturesForTrackRequest
public static final class GetAudioFeaturesForTrackRequest.Builder
extends AbstractDataRequest.Builder<AudioFeatures,GetAudioFeaturesForTrackRequest.Builder>
Builder class for building a
GetAudioFeaturesForTrackRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The track ID setter.protected GetAudioFeaturesForTrackRequest.Builder
self()
Return this instance to simulate a self-type.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 newGetAudioFeaturesForTrackRequest.Builder
.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
id
The track ID setter.- Parameters:
id
- Required. The Spotify ID for the track.- Returns:
- A
GetAudioFeaturesForTrackRequest.Builder
.. - See Also:
-
build
The request build method.- Returns:
- A custom
GetAudioFeaturesForTrackRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<AudioFeatures,
GetAudioFeaturesForTrackRequest.Builder> - Returns:
- This instance.
-