public static final class GetTokenByAuthorizationCodeResponse.Builder extends Object
GetTokenByAuthorizationCodeResponse.
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 |
|---|---|
GetTokenByAuthorizationCodeResponse.Builder |
accessToken(String accessToken)
Initializes the value for the
accessToken attribute. |
GetTokenByAuthorizationCodeResponse |
build()
Builds a new
GetTokenByAuthorizationCodeResponse. |
GetTokenByAuthorizationCodeResponse.Builder |
expiresInSeconds(Integer expiresInSeconds)
Initializes the value for the
expiresInSeconds attribute. |
GetTokenByAuthorizationCodeResponse.Builder |
from(org.cloudfoundry.uaa.tokens._GetTokenByAuthorizationCodeResponse instance)
Copy abstract value type
_GetTokenByAuthorizationCodeResponse instance into builder. |
GetTokenByAuthorizationCodeResponse.Builder |
from(AbstractToken instance)
Fill a builder with attribute values from the provided
org.cloudfoundry.uaa.tokens.AbstractToken instance. |
GetTokenByAuthorizationCodeResponse.Builder |
from(GetTokenByAuthorizationCodeResponse instance)
Fill a builder with attribute values from the provided
GetTokenByAuthorizationCodeResponse instance. |
GetTokenByAuthorizationCodeResponse.Builder |
openIdToken(String openIdToken)
Initializes the value for the
openIdToken attribute. |
GetTokenByAuthorizationCodeResponse.Builder |
refreshToken(String refreshToken)
Initializes the value for the
refreshToken attribute. |
GetTokenByAuthorizationCodeResponse.Builder |
scopes(String scopes)
Initializes the value for the
scopes attribute. |
GetTokenByAuthorizationCodeResponse.Builder |
tokenId(String tokenId)
Initializes the value for the
tokenId attribute. |
GetTokenByAuthorizationCodeResponse.Builder |
tokenType(String tokenType)
Initializes the value for the
tokenType attribute. |
public final GetTokenByAuthorizationCodeResponse.Builder from(GetTokenByAuthorizationCodeResponse instance)
GetTokenByAuthorizationCodeResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder from(org.cloudfoundry.uaa.tokens._GetTokenByAuthorizationCodeResponse instance)
_GetTokenByAuthorizationCodeResponse instance into builder.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder from(AbstractToken instance)
org.cloudfoundry.uaa.tokens.AbstractToken instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder accessToken(String accessToken)
accessToken attribute.accessToken - The value for accessTokenthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder expiresInSeconds(Integer expiresInSeconds)
expiresInSeconds attribute.expiresInSeconds - The value for expiresInSecondsthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder scopes(String scopes)
scopes attribute.scopes - The value for scopesthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder tokenId(String tokenId)
tokenId attribute.tokenId - The value for tokenIdthis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder tokenType(String tokenType)
tokenType attribute.tokenType - The value for tokenTypethis builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder openIdToken(String openIdToken)
openIdToken attribute.openIdToken - The value for openIdToken (can be null)this builder for use in a chained invocationpublic final GetTokenByAuthorizationCodeResponse.Builder refreshToken(String refreshToken)
refreshToken attribute.refreshToken - The value for refreshTokenthis builder for use in a chained invocationpublic GetTokenByAuthorizationCodeResponse build()
GetTokenByAuthorizationCodeResponse.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.