Class ClientCredentials.Builder
- java.lang.Object
-
- com.wrapper.spotify.model_objects.AbstractModelObject.Builder
-
- com.wrapper.spotify.model_objects.credentials.ClientCredentials.Builder
-
- All Implemented Interfaces:
IModelObject.Builder
- Enclosing class:
- ClientCredentials
public static final class ClientCredentials.Builder extends AbstractModelObject.Builder
Builder class for buildingClientCredentialsinstances.
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ClientCredentialsbuild()Build a model object with the information set in the builder object.ClientCredentials.BuildersetAccessToken(String accessToken)The access token setter.ClientCredentials.BuildersetExpiresIn(Integer expiresIn)The expiration time setter.ClientCredentials.BuildersetTokenType(String tokenType)The access token type setter.
-
-
-
Method Detail
-
setAccessToken
public ClientCredentials.Builder setAccessToken(String accessToken)
The access token setter.- Parameters:
accessToken- An access token that can be provided in subsequent calls, for example to Spotify Web API services.- Returns:
- A
ClientCredentials.Builder.
-
setTokenType
public ClientCredentials.Builder setTokenType(String tokenType)
The access token type setter.- Parameters:
tokenType- How the access token may be used: always "Bearer".- Returns:
- A
ClientCredentials.Builder.
-
setExpiresIn
public ClientCredentials.Builder setExpiresIn(Integer expiresIn)
The expiration time setter.- Parameters:
expiresIn- The time period (in seconds) for which the access token is valid.- Returns:
- A
ClientCredentials.Builder.
-
build
public ClientCredentials 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.
-
-