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