Class Context.Builder
java.lang.Object
se.michaelthelin.spotify.model_objects.AbstractModelObject.Builder
se.michaelthelin.spotify.model_objects.specification.Context.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
Context
Builder class for building
Context
instances.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build a model object with the information set in the builder object.setExternalUrls
(ExternalUrl externalUrls) The external URLs setter.The context href setter.setType
(ModelObjectType type) The model object type setter.The Spotify URI setter.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setType
The model object type setter.- Parameters:
type
- TheModelObjectType
.- Returns:
- A
Context.Builder
.
-
setHref
The context href setter.- Parameters:
href
- A link to the Spotify Web API endpoint providing full details of the track.- Returns:
- A
Context.Builder
.
-
setExternalUrls
The external URLs setter.- Parameters:
externalUrls
- External URLs for this context.- Returns:
- A
Context.Builder
.
-
setUri
The Spotify URI setter.- Parameters:
uri
- Spotify URI for this context.- Returns:
- A
Context.Builder
.
-
build
Description copied from interface:IModelObject.Builder
Build a model object with the information set in the builder object.
The type of the model object and its methods depend on its corresponding implementation.- Returns:
- A model object.
-