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
-
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
-CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.JwtToken
.- Returns:
this
-
oAuth2GrantType
@Stability(Stable) public CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.Builder oAuth2GrantType(String oAuth2GrantType) Sets the value ofCfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.getOAuth2GrantType()
- Parameters:
oAuth2GrantType
-CfnConnectorProfile.SalesforceConnectorProfileCredentialsProperty.OAuth2GrantType
.- 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
-