Class Context.Builder
java.lang.Object
com.wrapper.spotify.model_objects.AbstractModelObject.Builder
com.wrapper.spotify.model_objects.specification.Context.Builder
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- Context
public static final class Context.Builder extends AbstractModelObject.Builder
Builder class for building
Context instances.-
Constructor Summary
Constructors Constructor Description Builder() -
Method Summary
Modifier and Type Method Description Contextbuild()Build a model object with the information set in the builder object.Context.BuildersetExternalUrls(ExternalUrl externalUrls)The external URLs setter.Context.BuildersetHref(String href)The context href setter.Context.BuildersetType(ModelObjectType type)The model object type setter.Context.BuildersetUri(String uri)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.BuilderBuild 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.
-