public static final class GetTokenByAuthorizationCodeRequest.Builder extends Object
GetTokenByAuthorizationCodeRequest.
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 |
|---|---|
GetTokenByAuthorizationCodeRequest.Builder |
authorizationCode(String authorizationCode)
Initializes the value for the
authorizationCode attribute. |
GetTokenByAuthorizationCodeRequest |
build()
Builds a new
GetTokenByAuthorizationCodeRequest. |
GetTokenByAuthorizationCodeRequest.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
GetTokenByAuthorizationCodeRequest.Builder |
clientSecret(String clientSecret)
Initializes the value for the
clientSecret attribute. |
GetTokenByAuthorizationCodeRequest.Builder |
from(GetTokenByAuthorizationCodeRequest instance)
Fill a builder with attribute values from the provided
GetTokenByAuthorizationCodeRequest instance. |
GetTokenByAuthorizationCodeRequest.Builder |
redirectUri(String redirectUri)
Initializes the value for the
redirectUri attribute. |
GetTokenByAuthorizationCodeRequest.Builder |
tokenFormat(TokenFormat tokenFormat)
Initializes the value for the
tokenFormat attribute. |
public final GetTokenByAuthorizationCodeRequest.Builder from(GetTokenByAuthorizationCodeRequest instance)
GetTokenByAuthorizationCodeRequest 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 GetTokenByAuthorizationCodeRequest.Builder authorizationCode(String authorizationCode)
authorizationCode attribute.authorizationCode - The value for authorizationCodethis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeRequest.Builder clientId(String clientId)
clientId attribute.clientId - The value for clientIdthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeRequest.Builder clientSecret(String clientSecret)
clientSecret attribute.clientSecret - The value for clientSecretthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeRequest.Builder redirectUri(String redirectUri)
redirectUri attribute.redirectUri - The value for redirectUri (can be null)this builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeRequest.Builder tokenFormat(TokenFormat tokenFormat)
tokenFormat attribute.tokenFormat - The value for tokenFormat (can be null)this builder for use in a chained invocationpublic GetTokenByAuthorizationCodeRequest build()
GetTokenByAuthorizationCodeRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.