IModelObject.Builderpublic static final class ClientCredentials.Builder extends AbstractModelObject.Builder
ClientCredentials instances.| Constructor | Description |
|---|---|
Builder() |
| Modifier and Type | Method | Description |
|---|---|---|
ClientCredentials |
build() |
Build a model object with the information set in the builder object.
|
ClientCredentials.Builder |
setAccessToken(String accessToken) |
The access token setter.
|
ClientCredentials.Builder |
setExpiresIn(Integer expiresIn) |
The expiration time setter.
|
ClientCredentials.Builder |
setTokenType(String tokenType) |
The access token type setter.
|
public ClientCredentials.Builder setAccessToken(String accessToken)
accessToken - An access token that can be provided in subsequent calls,
for example to Spotify Web API services.ClientCredentials.Builder.public ClientCredentials.Builder setTokenType(String tokenType)
tokenType - How the access token may be used: always "Bearer".ClientCredentials.Builder.public ClientCredentials.Builder setExpiresIn(Integer expiresIn)
expiresIn - The time period (in seconds) for which the access token is valid.ClientCredentials.Builder.public ClientCredentials build()
IModelObject.BuilderCopyright © 2019. All rights reserved.