Class GetShowRequest.Builder
java.lang.Object
se.michaelthelin.spotify.requests.AbstractRequest.Builder<Show,GetShowRequest.Builder>
se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<Show,GetShowRequest.Builder>
se.michaelthelin.spotify.requests.data.shows.GetShowRequest.Builder
- All Implemented Interfaces:
IRequest.Builder<Show,
GetShowRequest.Builder>
- Enclosing class:
GetShowRequest
public static final class GetShowRequest.Builder
extends AbstractDataRequest.Builder<Show,GetShowRequest.Builder>
Builder class for building a
GetShowRequest
.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
The request build method.The show ID setter.market
(com.neovisionaries.i18n.CountryCode market) The market country code setter.protected GetShowRequest.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 newGetShowRequest.Builder
.Reading the user’s resume points on episode objects requires the
user-read-playback-position
scope.- Parameters:
accessToken
- Required. A valid access token from the Spotify Accounts service.
-
-
Method Details
-
id
The show ID setter.- Parameters:
id
- The Spotify ID for the show.- Returns:
- A
GetShowRequest.Builder
. - See Also:
-
market
The market country code setter.If a country code is specified, only shows and episodes that are available in that market will be returned. If a valid user access token is specified in the request header, the country associated with the user account will take priority over this parameter. Note: If neither market or user country are provided, the content is considered unavailable for the client.
Users can view the country that is associated with their account in the account settings.
- Parameters:
market
- Optional. An ISO 3166-1 alpha-2 country code.- Returns:
- A
GetShowRequest.Builder
. - See Also:
-
build
The request build method.- Returns:
- A custom
GetShowRequest
.
-
self
Description copied from class:AbstractRequest.Builder
Return this instance to simulate a self-type.- Specified by:
self
in classAbstractRequest.Builder<Show,
GetShowRequest.Builder> - Returns:
- This instance.
-