Class SearchEpisodesRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Paging<EpisodeSimplified>,SearchEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Paging<EpisodeSimplified>,SearchEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataPagingRequest.Builder<EpisodeSimplified,SearchEpisodesRequest.Builder>
se.michaelthelin.spotify.requests.data.search.simplified.SearchEpisodesRequest.Builder
- All Implemented Interfaces:
IPagingRequestBuilder<EpisodeSimplified,
,SearchEpisodesRequest.Builder> IRequest.Builder<Paging<EpisodeSimplified>,
SearchEpisodesRequest.Builder>
- Enclosing class:
SearchEpisodesRequest
public static final class SearchEpisodesRequest.Builder
extends AbstractDataPagingRequest.Builder<EpisodeSimplified,SearchEpisodesRequest.Builder>
Builder class for building a
SearchEpisodesRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.includeExternal
(String includeExternal) The include external setter.The limit setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.The offset setter.The search query setter.protected SearchEpisodesRequest.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
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface se.michaelthelin.spotify.requests.IRequest.Builder
setBody, setBodyParameter, setContentType, setDefaults, setHeader, setHost, setHttpManager, setPath, setPathParameter, setPort, setQueryParameter, setScheme
-
Constructor Details
-
Builder
Create a newSearchEpisodesRequest.Builder
.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
q
The search query setter.- Parameters:
q
- Required. The search query's keywords (and optional field filters and operators).- Returns:
- A
SearchEpisodesRequest.Builder
. - See Also:
-
market
The market country code setter.- Parameters:
market
- Optional. An ISO 3166-1 alpha-2 country code. If a country code is given, only artists, albums, and tracks with content playable in that market will be returned. (Playlist results are not affected by the market parameter.)- Returns:
- A
SearchEpisodesRequest.Builder
. - See Also:
-
limit
The limit setter.- Parameters:
limit
- Optional. The maximum number of results to return. Default: 20. Minimum: 1. Maximum: 50.- Returns:
- A
SearchEpisodesRequest.Builder
.
-
offset
The offset setter.- Parameters:
offset
- Optional. The index of the first result to return. Default: 0 (i.e., the first result). Maximum offset: 100.000. Use withlimit(Integer)
to get the next page of search results.- Returns:
- A
SearchEpisodesRequest.Builder
.
-
includeExternal
The include external setter.- Parameters:
includeExternal
- Optional. Possible values:audio
. Ifaudio
is set the response will include any relevant audio content that is hosted externally. By default external content is filtered out from responses.- Returns:
- A
SearchItemRequest.Builder
.
-
build
The request build method.- Returns:
- A
SearchEpisodesRequest.Builder
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Paging<EpisodeSimplified>,
SearchEpisodesRequest.Builder> - Returns:
- This instance.
-