Class HereTokenCredentials.Builder
java.lang.Object
com.here.platform.data.client.base.http.settings.HereTokenCredentials.Builder
- Enclosing class:
- HereTokenCredentials
Build a new here token credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newHereTokenCredentials.withHereToken(String token) Set here token.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds a newHereTokenCredentials.All properties are required.
All properties are tested for validity. If invalid a
IllegalArgumentExceptionis thrown.- Returns:
- the HereTokenCredentials object
- Throws:
IllegalArgumentException- if any properties are not valid
-
withHereToken
Set here token.- Parameters:
token- token value- Returns:
- this builder
-