Class CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appflow.CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty>
- Enclosing interface:
CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty>
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) build()
Builds the configured instance.clientCredentialsArn
(String clientCredentialsArn) connectorOAuthRequest
(IResolvable connectorOAuthRequest) connectorOAuthRequest
(CfnConnectorProfile.ConnectorOAuthRequestProperty connectorOAuthRequest) oAuth2GrantType
(String oAuth2GrantType) refreshToken
(String refreshToken)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
accessToken
@Stability(Stable) public CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder accessToken(String accessToken) Sets the value ofCfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.getAccessToken()
- Parameters:
accessToken
- The credentials used to access protected Salesforce resources.- Returns:
this
-
clientCredentialsArn
@Stability(Stable) public CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder clientCredentialsArn(String clientCredentialsArn) Sets the value ofCfnConnectorProfile.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 CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(IResolvable connectorOAuthRequest) Sets the value ofCfnConnectorProfile.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 CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(CfnConnectorProfile.ConnectorOAuthRequestProperty connectorOAuthRequest) Sets the value ofCfnConnectorProfile.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 CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder jwtToken(String jwtToken) - Parameters:
jwtToken
- A JSON web token (JWT) that authorizes Amazon AppFlow to access your Salesforce records.- Returns:
this
-
oAuth2GrantType
@Stability(Stable) public CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder oAuth2GrantType(String oAuth2GrantType) Sets the value ofCfnConnectorProfile.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 CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder refreshToken(String refreshToken) Sets the value ofCfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.getRefreshToken()
- Parameters:
refreshToken
- The credentials used to acquire new access tokens.- Returns:
this
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty>
- Returns:
- a new instance of
CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-