Interface PayPalTokenResponseOutput.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<PayPalTokenResponseOutput.Builder,,PayPalTokenResponseOutput> SdkBuilder<PayPalTokenResponseOutput.Builder,,PayPalTokenResponseOutput> SdkPojo
- Enclosing class:
PayPalTokenResponseOutput
@Mutable
@NotThreadSafe
public static interface PayPalTokenResponseOutput.Builder
extends SdkPojo, CopyableBuilder<PayPalTokenResponseOutput.Builder,PayPalTokenResponseOutput>
-
Method Summary
Modifier and TypeMethodDescriptionbearerToken(String bearerToken) Bearer credential for the Authorization header.environment(String environment) The provider's PayPal environment.environment(PayPalEnvironmentType environment) The provider's PayPal environment.Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.tokenExpiry(Long tokenExpiry) Unix timestamp (seconds) when the bearer token expires.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
bearerToken
Bearer credential for the Authorization header. A short-lived OAuth2 access token minted from the merchant's clientId/clientSecret. The caller applies it as
Authorization: Bearer <bearerToken>.- Parameters:
bearerToken- Bearer credential for the Authorization header. A short-lived OAuth2 access token minted from the merchant's clientId/clientSecret. The caller applies it asAuthorization: Bearer <bearerToken>.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
tokenExpiry
Unix timestamp (seconds) when the bearer token expires.
- Parameters:
tokenExpiry- Unix timestamp (seconds) when the bearer token expires.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
scope
Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.
- Parameters:
scope- Space-delimited OAuth2 scopes granted to the token, when PayPal returns them.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
environment
The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.
- Parameters:
environment- The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
environment
The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.
- Parameters:
environment- The provider's PayPal environment. The bearer is valid only against this environment's API: https://api-m.paypal.com for LIVE, https://api-m.sandbox.paypal.com for SANDBOX.- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-