Class CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder
java.lang.Object
software.amazon.awscdk.services.appflow.CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder
- All Implemented Interfaces:
software.amazon.jsii.Builder<CfnConnectorProfile.SlackConnectorProfileCredentialsProperty>
- Enclosing interface:
- CfnConnectorProfile.SlackConnectorProfileCredentialsProperty
@Stability(Stable)
public static final class CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder
extends Object
implements software.amazon.jsii.Builder<CfnConnectorProfile.SlackConnectorProfileCredentialsProperty>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionaccessToken
(String accessToken) build()
Builds the configured instance.clientSecret
(String clientSecret) connectorOAuthRequest
(IResolvable connectorOAuthRequest) connectorOAuthRequest
(CfnConnectorProfile.ConnectorOAuthRequestProperty connectorOAuthRequest)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
clientId
@Stability(Stable) public CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder clientId(String clientId) - Parameters:
clientId
- The identifier for the client. This parameter is required.- Returns:
this
-
clientSecret
@Stability(Stable) public CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder clientSecret(String clientSecret) - Parameters:
clientSecret
- The client secret used by the OAuth client to authenticate to the authorization server. This parameter is required.- Returns:
this
-
accessToken
@Stability(Stable) public CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder accessToken(String accessToken) - Parameters:
accessToken
- The credentials used to access protected Slack resources.- Returns:
this
-
connectorOAuthRequest
@Stability(Stable) public CfnConnectorProfile.SlackConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(IResolvable connectorOAuthRequest) Sets the value ofCfnConnectorProfile.SlackConnectorProfileCredentialsProperty.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.SlackConnectorProfileCredentialsProperty.Builder connectorOAuthRequest(CfnConnectorProfile.ConnectorOAuthRequestProperty connectorOAuthRequest) Sets the value ofCfnConnectorProfile.SlackConnectorProfileCredentialsProperty.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
-
build
Builds the configured instance.- Specified by:
build
in interfacesoftware.amazon.jsii.Builder<CfnConnectorProfile.SlackConnectorProfileCredentialsProperty>
- Returns:
- a new instance of
CfnConnectorProfile.SlackConnectorProfileCredentialsProperty
- Throws:
NullPointerException
- if any required attribute was not provided
-