Class GetSeveralShowsRequest.Builder
- java.lang.Object
-
- se.michaelthelin.spotify.requests.AbstractRequest.Builder<T,BT>
-
- se.michaelthelin.spotify.requests.data.AbstractDataRequest.Builder<ShowSimplified[],GetSeveralShowsRequest.Builder>
-
- se.michaelthelin.spotify.requests.data.shows.GetSeveralShowsRequest.Builder
-
- All Implemented Interfaces:
IRequest.Builder<ShowSimplified[],GetSeveralShowsRequest.Builder>
- Enclosing class:
- GetSeveralShowsRequest
public static final class GetSeveralShowsRequest.Builder extends AbstractDataRequest.Builder<ShowSimplified[],GetSeveralShowsRequest.Builder>
Builder class for building aGetSeveralShowsRequest.
-
-
Constructor Summary
Constructors Constructor Description Builder(String accessToken)Create a newGetSeveralShowsRequest.Builder.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GetSeveralShowsRequestbuild()The request build method.GetSeveralShowsRequest.Builderids(String ids)The show IDs setter.GetSeveralShowsRequest.Buildermarket(com.neovisionaries.i18n.CountryCode market)The market country code setter.protected GetSeveralShowsRequest.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 newGetSeveralShowsRequest.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
-
ids
public GetSeveralShowsRequest.Builder ids(String ids)
The show IDs setter.- Parameters:
ids- Required. A comma-separated list of the Spotify IDs for the shows. Maximum: 50 IDs.- Returns:
- A
GetSeveralShowsRequest.Builder. - See Also:
- Spotify: URIs & IDs
-
market
public GetSeveralShowsRequest.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
GetSeveralShowsRequest.Builder. - See Also:
- Wikipedia: ISO 3166-1 alpha-2 country codes
-
build
public GetSeveralShowsRequest build()
The request build method.- Returns:
- A custom
GetSeveralShowsRequest.
-
self
protected GetSeveralShowsRequest.Builder self()
Description copied from class:AbstractRequest.BuilderReturn this instance to simulate a self-type.- Specified by:
selfin classAbstractRequest.Builder<ShowSimplified[],GetSeveralShowsRequest.Builder>- Returns:
- This instance.
-
-