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.
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 © 2020. All rights reserved.