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