Class GetShowRequest.Builder
- java.lang.Object
-
- se.michaelthelin.spotify.requests.AbstractRequest.Builder<T,BT>
-
- 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 aGetShowRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder(String accessToken)Create a newGetShowRequest.Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetShowRequestbuild()The request build method.GetShowRequest.Builderid(String id)The show ID setter.GetShowRequest.Buildermarket(com.neovisionaries.i18n.CountryCode market)The market country code setter.protected GetShowRequest.Builderself()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 Detail
-
Builder
public Builder(String accessToken)
Create a newGetShowRequest.Builder.Reading the user’s resume points on episode objects requires the
user-read-playback-positionscope.- Parameters:
accessToken- Required. A valid access token from the Spotify Accounts service.
-
-
Method Detail
-
id
public GetShowRequest.Builder id(String id)
The show ID setter.- Parameters:
id- The Spotify ID for the show.- Returns:
- A
GetShowRequest.Builder. - See Also:
- Spotify: URIs & IDs
-
market
public GetShowRequest.Builder market(com.neovisionaries.i18n.CountryCode 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:
- Wikipedia: ISO 3166-1 alpha-2 country codes
-
build
public GetShowRequest build()
The request build method.- Returns:
- A custom
GetShowRequest.
-
self
protected GetShowRequest.Builder self()
Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<Show,GetShowRequest.Builder>- Returns:
- This instance.
-
-