Class CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appflow.CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuthCredentialsProperty>
- Enclosing interface:
CfnConnectorProfilePropsMixin.OAuthCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuthCredentialsProperty>
A builder for
CfnConnectorProfilePropsMixin.OAuthCredentialsProperty-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getAccessToken()build()Builds the configured instance.Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getClientId()clientSecret(String clientSecret) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getClientSecret()connectorOAuthRequest(CfnConnectorProfilePropsMixin.ConnectorOAuthRequestProperty connectorOAuthRequest) connectorOAuthRequest(IResolvable connectorOAuthRequest) refreshToken(String refreshToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getRefreshToken()
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder accessToken(String accessToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getAccessToken()- Parameters:
accessToken- The access token used to access protected SAPOData resources.- Returns:
this
-
clientId
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder clientId(String clientId) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getClientId()- Parameters:
clientId- The identifier for the desired client.- Returns:
this
-
clientSecret
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder clientSecret(String clientSecret) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getClientSecret()- Parameters:
clientSecret- The client secret used by the OAuth client to authenticate to the authorization server.- Returns:
this
-
connectorOAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder connectorOAuthRequest(IResolvable connectorOAuthRequest) - Parameters:
connectorOAuthRequest- the value to be set.- Returns:
this
-
connectorOAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder connectorOAuthRequest(CfnConnectorProfilePropsMixin.ConnectorOAuthRequestProperty connectorOAuthRequest) - Parameters:
connectorOAuthRequest- the value to be set.- Returns:
this
-
refreshToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.OAuthCredentialsProperty.Builder refreshToken(String refreshToken) Sets the value ofCfnConnectorProfilePropsMixin.OAuthCredentialsProperty.getRefreshToken()- Parameters:
refreshToken- The refresh token used to refresh expired access token.- Returns:
this
-
build
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.OAuthCredentialsProperty>- Returns:
- a new instance of
CfnConnectorProfilePropsMixin.OAuthCredentialsProperty - Throws:
NullPointerException- if any required attribute was not provided
-