public static final class AuthorizeByAuthorizationCodeGrantApiRequest.Builder extends Object
AuthorizeByAuthorizationCodeGrantApiRequest.
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 |
|---|---|
AuthorizeByAuthorizationCodeGrantApiRequest |
build()
Builds a new
AuthorizeByAuthorizationCodeGrantApiRequest. |
AuthorizeByAuthorizationCodeGrantApiRequest.Builder |
clientId(String clientId)
Initializes the value for the
clientId attribute. |
AuthorizeByAuthorizationCodeGrantApiRequest.Builder |
from(AuthorizeByAuthorizationCodeGrantApiRequest instance)
Fill a builder with attribute values from the provided
AuthorizeByAuthorizationCodeGrantApiRequest instance. |
AuthorizeByAuthorizationCodeGrantApiRequest.Builder |
redirectUri(String redirectUri)
Initializes the value for the
redirectUri attribute. |
AuthorizeByAuthorizationCodeGrantApiRequest.Builder |
state(String state)
Initializes the value for the
state attribute. |
public final AuthorizeByAuthorizationCodeGrantApiRequest.Builder from(AuthorizeByAuthorizationCodeGrantApiRequest instance)
AuthorizeByAuthorizationCodeGrantApiRequest instance.
Regular attribute values will be replaced with those from the given instance.
Absent optional values will not replace present values.instance - The instance from which to copy valuesthis builder for use in a chained invocationpublic final AuthorizeByAuthorizationCodeGrantApiRequest.Builder clientId(String clientId)
clientId attribute.clientId - The value for clientIdthis builder for use in a chained invocationpublic final AuthorizeByAuthorizationCodeGrantApiRequest.Builder redirectUri(String redirectUri)
redirectUri attribute.redirectUri - The value for redirectUri (can be null)this builder for use in a chained invocationpublic final AuthorizeByAuthorizationCodeGrantApiRequest.Builder state(String state)
state attribute.state - The value for state (can be null)this builder for use in a chained invocationpublic AuthorizeByAuthorizationCodeGrantApiRequest build()
AuthorizeByAuthorizationCodeGrantApiRequest.IllegalStateException - if any required attributes are missingCopyright © 2020. All rights reserved.