public static final class GetTokenByClientCredentialsResponse.Builder extends Object
GetTokenByClientCredentialsResponse.
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 GetTokenByClientCredentialsResponse.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 GetTokenByClientCredentialsResponse.Builder from(GetTokenByClientCredentialsResponse instance)
GetTokenByClientCredentialsResponse instance.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final GetTokenByClientCredentialsResponse.Builder accessToken(String accessToken)
accessToken attribute.accessToken - The value for accessTokenthis builder for use in a chained invocationpublic final GetTokenByClientCredentialsResponse.Builder expiresInSeconds(Integer expiresInSeconds)
expiresInSeconds attribute.expiresInSeconds - The value for expiresInSecondsthis builder for use in a chained invocationpublic final GetTokenByClientCredentialsResponse.Builder scopes(String scopes)
scopes attribute.scopes - The value for scopesthis builder for use in a chained invocationpublic final GetTokenByClientCredentialsResponse.Builder tokenId(String tokenId)
tokenId attribute.tokenId - The value for tokenIdthis builder for use in a chained invocationpublic final GetTokenByClientCredentialsResponse.Builder tokenType(String tokenType)
tokenType attribute.tokenType - The value for tokenTypethis builder for use in a chained invocationpublic GetTokenByClientCredentialsResponse build()
GetTokenByClientCredentialsResponse.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.