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