Class HereAccountCredentials.Builder
java.lang.Object
com.here.platform.data.client.base.http.settings.HereAccountCredentials.Builder
- Enclosing class:
- HereAccountCredentials
Build a new here account credentials.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()Builds a newHereAccountCredentials.withHereAccessKeyId(String hereAccessKeyId) Set here access key id.withHereAccessKeySecret(String hereAccessKeySecret) Set here access key secret.withHereClientId(String hereClientId) Set here client id.withHereTokenEndpointUrl(String hereTokenEndpointUrl) Set here token endpoint url.withHereTokenScope(String hereTokenScope) Set here token scope.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
build
Builds a newHereAccountCredentials.All properties are required.
All properties are tested for validity. If invalid a
IllegalArgumentExceptionis thrown.- Returns:
- the HereAccountCredentials object
- Throws:
IllegalArgumentException- if any properties are not valid
-
withHereAccessKeyId
Set here access key id.- Parameters:
hereAccessKeyId- access key id- Returns:
- this builder
-
withHereAccessKeySecret
Set here access key secret.- Parameters:
hereAccessKeySecret- access secret key- Returns:
- this builder
-
withHereClientId
Set here client id.- Parameters:
hereClientId- client id- Returns:
- this builder
-
withHereTokenEndpointUrl
Set here token endpoint url.- Parameters:
hereTokenEndpointUrl- endpoint url- Returns:
- this builder
-
withHereTokenScope
Set here token scope.- Parameters:
hereTokenScope- token scope- Returns:
- this builder
-