public static final class CheckTokenRequest.Builder extends Object
CheckTokenRequest.
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 |
|---|---|
CheckTokenRequest.Builder |
addAllScopes(Iterable<String> elements)
Adds elements to
scopes list. |
CheckTokenRequest |
build()
Builds a new
CheckTokenRequest. |
CheckTokenRequest.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
CheckTokenRequest.Builder |
clientSecret(String clientSecret)
Initializes the value for the
clientSecret attribute. |
CheckTokenRequest.Builder |
from(CheckTokenRequest instance)
Fill a builder with attribute values from the provided
CheckTokenRequest instance. |
CheckTokenRequest.Builder |
scope(String... elements)
Adds elements to
scopes list. |
CheckTokenRequest.Builder |
scope(String element)
Adds one element to
scopes list. |
CheckTokenRequest.Builder |
scopes(Iterable<String> elements)
Sets or replaces all elements for
scopes list. |
CheckTokenRequest.Builder |
token(String token)
Initializes the value for the
token attribute. |
public final CheckTokenRequest.Builder from(CheckTokenRequest instance)
CheckTokenRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.
Collection elements and entries will be added, not replaced.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder clientId(String clientId)
clientId attribute.clientId - The value for clientIdthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder clientSecret(String clientSecret)
clientSecret attribute.clientSecret - The value for clientSecretthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder scope(String element)
scopes list.element - A scopes elementthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder scope(String... elements)
scopes list.elements - An array of scopes elementsthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder scopes(Iterable<String> elements)
scopes list.elements - An iterable of scopes elementsthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder addAllScopes(Iterable<String> elements)
scopes list.elements - An iterable of scopes elementsthis builder for use in a chained invocationpublic final CheckTokenRequest.Builder token(String token)
token attribute.token - The value for tokenthis builder for use in a chained invocationpublic CheckTokenRequest build()
CheckTokenRequest.IllegalStateException - if any required attributes are missingCopyright © 2017 Pivotal Software, Inc.. All rights reserved.