public static final class RefreshTokenRequest.Builder extends Object
RefreshTokenRequest.
Initialize attributes and then invoke the build() method to create an
immutable instance.
Builder is not thread-safe and generally should not be stored in a field or collection,
but instead used immediately to create instances.
| Modifier and Type | Method and Description |
|---|---|
RefreshTokenRequest |
build()
Builds a new
RefreshTokenRequest. |
RefreshTokenRequest.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
RefreshTokenRequest.Builder |
clientSecret(String clientSecret)
Initializes the value for the
clientSecret attribute. |
RefreshTokenRequest.Builder |
from(RefreshTokenRequest instance)
Fill a builder with attribute values from the provided
RefreshTokenRequest instance. |
RefreshTokenRequest.Builder |
refreshToken(String refreshToken)
Initializes the value for the
refreshToken attribute. |
RefreshTokenRequest.Builder |
tokenFormat(TokenFormat tokenFormat)
Initializes the value for the
tokenFormat attribute. |
public final RefreshTokenRequest.Builder from(RefreshTokenRequest instance)
RefreshTokenRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final RefreshTokenRequest.Builder clientId(String clientId)
clientId attribute.clientId - The value for clientIdthis builder for use in a chained invocationpublic final RefreshTokenRequest.Builder clientSecret(String clientSecret)
clientSecret attribute.clientSecret - The value for clientSecretthis builder for use in a chained invocationpublic final RefreshTokenRequest.Builder refreshToken(String refreshToken)
refreshToken attribute.refreshToken - The value for refreshTokenthis builder for use in a chained invocationpublic final RefreshTokenRequest.Builder tokenFormat(TokenFormat tokenFormat)
tokenFormat attribute.tokenFormat - The value for tokenFormat (can be null)this builder for use in a chained invocationpublic RefreshTokenRequest build()
RefreshTokenRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.