Interface OAuthCredentials.Builder
-
- All Superinterfaces:
Buildable,CopyableBuilder<OAuthCredentials.Builder,OAuthCredentials>,SdkBuilder<OAuthCredentials.Builder,OAuthCredentials>,SdkPojo
- Enclosing class:
- OAuthCredentials
public static interface OAuthCredentials.Builder extends SdkPojo, CopyableBuilder<OAuthCredentials.Builder,OAuthCredentials>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description OAuthCredentials.BuilderaccessToken(String accessToken)The access token used to access protected SAPOData resources.OAuthCredentials.BuilderclientId(String clientId)The identifier for the desired client.OAuthCredentials.BuilderclientSecret(String clientSecret)The client secret used by the OAuth client to authenticate to the authorization server.default OAuthCredentials.BuilderoAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)The OAuth requirement needed to request security tokens from the connector endpoint.OAuthCredentials.BuilderoAuthRequest(ConnectorOAuthRequest oAuthRequest)The OAuth requirement needed to request security tokens from the connector endpoint.OAuthCredentials.BuilderrefreshToken(String refreshToken)The refresh token used to refresh expired access token.-
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
-
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
-
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFields
-
-
-
-
Method Detail
-
clientId
OAuthCredentials.Builder clientId(String clientId)
The identifier for the desired client.
- Parameters:
clientId- The identifier for the desired client.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
clientSecret
OAuthCredentials.Builder clientSecret(String clientSecret)
The client secret used by the OAuth client to authenticate to the authorization server.
- Parameters:
clientSecret- The client secret used by the OAuth client to authenticate to the authorization server.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
accessToken
OAuthCredentials.Builder accessToken(String accessToken)
The access token used to access protected SAPOData resources.
- Parameters:
accessToken- The access token used to access protected SAPOData resources.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
refreshToken
OAuthCredentials.Builder refreshToken(String refreshToken)
The refresh token used to refresh expired access token.
- Parameters:
refreshToken- The refresh token used to refresh expired access token.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oAuthRequest
OAuthCredentials.Builder oAuthRequest(ConnectorOAuthRequest oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
- Parameters:
oAuthRequest- The OAuth requirement needed to request security tokens from the connector endpoint.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
oAuthRequest
default OAuthCredentials.Builder oAuthRequest(Consumer<ConnectorOAuthRequest.Builder> oAuthRequest)
The OAuth requirement needed to request security tokens from the connector endpoint.
This is a convenience method that creates an instance of theConnectorOAuthRequest.Builderavoiding the need to create one manually viaConnectorOAuthRequest.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed tooAuthRequest(ConnectorOAuthRequest).- Parameters:
oAuthRequest- a consumer that will call methods onConnectorOAuthRequest.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
oAuthRequest(ConnectorOAuthRequest)
-
-