IModelObject.Builderpublic static final class AudioFeatures.Builder extends AbstractModelObject.Builder
AudioFeatures instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
AudioFeatures |
build() |
Build a model object with the information set in the builder object.
|
AudioFeatures.Builder |
setAcousticness(Float acousticness) |
Set the acousticness of the audio features object to be built.
|
AudioFeatures.Builder |
setAnalysisUrl(String analysisUrl) |
Set the Spotify Web API audio analysis endpoint URL of the audio features object to be built.
|
AudioFeatures.Builder |
setDanceability(Float danceability) |
Set the danceability of the audio features object to be built.
|
AudioFeatures.Builder |
setDurationMs(Integer durationMs) |
Set the duration in milliseconds of the audio features object to be built.
|
AudioFeatures.Builder |
setEnergy(Float energy) |
Set the energy of the audio features object to be built.
|
AudioFeatures.Builder |
setId(String id) |
Set the Spotify track ID of the audio features object to be built.
|
AudioFeatures.Builder |
setInstrumentalness(Float instrumentalness) |
Set the instrumentalness of the audio features object to be built.
|
AudioFeatures.Builder |
setKey(Integer key) |
Set the key of the audio features object to be built.
|
AudioFeatures.Builder |
setLiveness(Float liveness) |
Set the liveness of the audio features object to be built.
|
AudioFeatures.Builder |
setLoudness(Float loudness) |
Set the loudness of the audio features object to be built.
|
AudioFeatures.Builder |
setMode(Modality mode) |
Set the mode of the audio features object to be built.
|
AudioFeatures.Builder |
setSpeechiness(Float speechiness) |
Set the speechiness of the audio features object to be built.
|
AudioFeatures.Builder |
setTempo(Float tempo) |
Set the tempo of the audio features object to be built.
|
AudioFeatures.Builder |
setTimeSignature(Integer timeSignature) |
Set the time signature of the audio features object to be built.
|
AudioFeatures.Builder |
setTrackHref(String trackHref) |
Set the track href to the Spotify Web API endpoint of the audio features object to be built.
|
AudioFeatures.Builder |
setType(ModelObjectType type) |
Set the type of the model object.
|
AudioFeatures.Builder |
setUri(String uri) |
Set the Spotify URI
of the audio feature objects track to be built.
|
AudioFeatures.Builder |
setValence(Float valence) |
Set the valence of the audio features object to be built.
|
public AudioFeatures.Builder setAcousticness(Float acousticness)
acousticness - Acousticness value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setAnalysisUrl(String analysisUrl)
analysisUrl - Spotify Web API endpoint URL.AudioFeatures.Builder.public AudioFeatures.Builder setDanceability(Float danceability)
danceability - Danceability value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setDurationMs(Integer durationMs)
durationMs - Duration in milliseconds.AudioFeatures.Builder.public AudioFeatures.Builder setEnergy(Float energy)
energy - Energy value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setId(String id)
id - Spotify track ID.AudioFeatures.Builder.public AudioFeatures.Builder setInstrumentalness(Float instrumentalness)
instrumentalness - Instrumentalness value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setKey(Integer key)
key - Track key.AudioFeatures.Builder.public AudioFeatures.Builder setLiveness(Float liveness)
liveness - Liveness value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setLoudness(Float loudness)
loudness - Loudness value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setMode(Modality mode)
mode - Track mode.AudioFeatures.Builder.public AudioFeatures.Builder setSpeechiness(Float speechiness)
speechiness - Speechiness value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures.Builder setTempo(Float tempo)
tempo - Tempo value in beats per minute.AudioFeatures.Builder.public AudioFeatures.Builder setTimeSignature(Integer timeSignature)
timeSignature - Time signature of the track.AudioFeatures.Builder.public AudioFeatures.Builder setTrackHref(String trackHref)
trackHref - Spotify Web API endpoint URL.AudioFeatures.Builder.public AudioFeatures.Builder setType(ModelObjectType type)
type - The ModelObjectType.AudioFeatures.Builder.public AudioFeatures.Builder setUri(String uri)
uri - The Spotify track URI.AudioFeatures.Builder.public AudioFeatures.Builder setValence(Float valence)
valence - Valence value between 0.0 and 1.0.AudioFeatures.Builder.public AudioFeatures build()
IModelObject.BuilderCopyright © 2019. All rights reserved.