Class CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.cfnpropertymixins.services.appflow.CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty>
- Enclosing interface:
CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken(String accessToken) build()Builds the configured instance.clientCredentialsArn(String clientCredentialsArn) connectorOAuthRequest(CfnConnectorProfilePropsMixin.ConnectorOAuthRequestProperty connectorOAuthRequest) connectorOAuthRequest(IResolvable connectorOAuthRequest) oAuth2GrantType(String oAuth2GrantType) refreshToken(String refreshToken)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder accessToken(String accessToken) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getAccessToken()- Parameters:
accessToken- The credentials used to access protected Salesforce resources.- Returns:
this
-
clientCredentialsArn
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder clientCredentialsArn(String clientCredentialsArn) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getClientCredentialsArn()- Parameters:
clientCredentialsArn- The secret manager ARN, which contains the client ID and client secret of the connected app.- Returns:
this
-
connectorOAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(IResolvable connectorOAuthRequest) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getConnectorOAuthRequest()- Parameters:
connectorOAuthRequest- Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.- Returns:
this
-
connectorOAuthRequest
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(CfnConnectorProfilePropsMixin.ConnectorOAuthRequestProperty connectorOAuthRequest) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getConnectorOAuthRequest()- Parameters:
connectorOAuthRequest- Used by select connectors for which the OAuth workflow is supported, such as Salesforce, Google Analytics, Marketo, Zendesk, and Slack.- Returns:
this
-
jwtToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder jwtToken(String jwtToken) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getJwtToken()- Parameters:
jwtToken- A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.- Returns:
this
-
oAuth2GrantType
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder oAuth2GrantType(String oAuth2GrantType) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getOAuth2GrantType()- Parameters:
oAuth2GrantType- Specifies the OAuth 2.0 grant type that Amazon AppFlow uses when it requests an access token from Salesforce. Amazon AppFlow requires an access token each time it attempts to access your Salesforce records. You can specify one of the following values:- AUTHORIZATION_CODE - Amazon AppFlow passes an authorization code when it requests the access token from Salesforce. Amazon AppFlow receives the authorization code from Salesforce after you log in to your Salesforce account and authorize Amazon AppFlow to access your records.
- JWT_BEARER - Amazon AppFlow passes a JSON web token (JWT) when it requests the access token from Salesforce. You provide the JWT to Amazon AppFlow when you define the connection to your Salesforce account. When you use this grant type, you don't need to log in to your Salesforce account to authorize Amazon AppFlow to access your records.
The CLIENT_CREDENTIALS value is not supported for Salesforce.
- Returns:
this
-
refreshToken
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.Builder refreshToken(String refreshToken) Sets the value ofCfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty.getRefreshToken()- Parameters:
refreshToken- The credentials used to acquire new access tokens.- Returns:
this
-
build
@Stability(Stable) public CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty build()Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty>- Returns:
- a new instance of
CfnConnectorProfilePropsMixin.SalesforceConnectorProfileCredentialsProperty - Throws:
NullPointerException- if any required attribute was not provided
-